Created
July 30, 2019 08:29
-
-
Save akilab/7295dbbea4b17ff83a93d931dcf011be to your computer and use it in GitHub Desktop.
自己署名証明書
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 秘密鍵作成 | |
| openssl genrsa 2048 > private.key | |
| # CSR作成 | |
| openssl req -new -key private.key > server.csr | |
| # 色々聞かれる | |
| # CNは必須 | |
| # 自分で署名 | |
| openssl x509 -req -days 3650 -signkey private.key < server.csr > server.crt | |
| # 確認 | |
| openssl x509 -text < server.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment