オレオレ証明書 作り方
以下、3つのコマンドを順に実行すると作成できる
code:sh
openssl genrsa 2048 > server.key
openssl req -new -key server.key > server.csr
openssl x509 -in server.csr -days 365000 -req -signkey server.key > server.crt
2行目例
何も入れなくても作るだけならできる
検証等に必要な情報だけ入れれば良さそう
code:csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) XX: State or Province Name (full name) []:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:default.example.com
Email Address []:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []: