Skip to content

Instantly share code, notes, and snippets.

@akilab
Created July 30, 2019 08:29
Show Gist options
  • Select an option

  • Save akilab/7295dbbea4b17ff83a93d931dcf011be to your computer and use it in GitHub Desktop.

Select an option

Save akilab/7295dbbea4b17ff83a93d931dcf011be to your computer and use it in GitHub Desktop.
自己署名証明書
# 秘密鍵作成
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