mirror of
https://github.com/Erreur32/cheat.git
synced 2025-03-13 20:18:47 +01:00
Fixed a small typo in the openssl cheatsheet.
This commit is contained in:
parent
4d6bc270cf
commit
8fde16689d
1 changed files with 2 additions and 2 deletions
|
@ -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.)
|
# (The above commands may be run in sequence to generate a self-signed SSL certificate.)
|
||||||
|
|
||||||
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-----/' | \
|
||||||
openssl x509 -noout -enddate
|
openssl x509 -noout -enddate
|
||||||
|
|
Loading…
Reference in a new issue