Merge pull request #120 from Mic92/patch-2

openssl: command to show certificate infos
This commit is contained in:
Chris Lane 2013-11-03 10:54:34 -08:00
commit e81088d379

View file

@ -9,6 +9,12 @@ openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
# (The above commands may be run in sequence to generate a self-signed SSL certificate.) # (The above commands may be run in sequence to generate a self-signed SSL certificate.)
# To show certificate information for a certificate signing request
openssl req -text -noout -in server.csr
# To show certificate information for generated certificate
openssl x509 -text -noout -in server.crt
# To view certificate expiration: # To view certificate expiration:
echo | openssl s_client -connect <hostname>:443 2> /dev/null | \ echo | openssl s_client -connect <hostname>:443 2> /dev/null | \
awk '/-----BEGIN/,/END CERTIFICATE-----/' | \ awk '/-----BEGIN/,/END CERTIFICATE-----/' | \