Skip to content

Instantly share code, notes, and snippets.

@negima1976
Created August 19, 2015 09:16
Show Gist options
  • Select an option

  • Save negima1976/782dee3515996da8e757 to your computer and use it in GitHub Desktop.

Select an option

Save negima1976/782dee3515996da8e757 to your computer and use it in GitHub Desktop.
opensslでの各種チェックコマンド
#証明書ファイルの内容を確認
$openssl x509 -text -noout -in /etc/pki/tls/certs/server.crt
#秘密鍵ファイルの内容を確認
$openssl rsa -text -noout -in /etc/pki/tls/private/server.key
#CSRファイルの内容を確認
$openssl req -text -noout -in /home/hoge/ssl/server.csr
#簡易サーバを立てての確認
$openssl s_server -accept 10443 -cert server.crt -key server.key -CAfile server.ca -WWW
$curl -v https://localhost:10443/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment