diff --git a/cheatsheets/openssl b/cheatsheets/openssl index f2900c2..b020c85 100644 --- a/cheatsheets/openssl +++ b/cheatsheets/openssl @@ -9,7 +9,7 @@ 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.) -To view certificate expiration: -+echo | openssl s_client -connect :443 2> /dev/null | \ +# To view certificate expiration: +echo | openssl s_client -connect :443 2> /dev/null | \ awk '/-----BEGIN/,/END CERTIFICATE-----/' | \ openssl x509 -noout -enddate