mirror of
https://github.com/cheat/cheat.git
synced 2024-11-16 00:48:29 +01:00
Merge pull request #120 from Mic92/patch-2
openssl: command to show certificate infos
This commit is contained in:
commit
e81088d379
1 changed files with 6 additions and 0 deletions
|
@ -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.)
|
||||
|
||||
# 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:
|
||||
echo | openssl s_client -connect <hostname>:443 2> /dev/null | \
|
||||
awk '/-----BEGIN/,/END CERTIFICATE-----/' | \
|
||||
|
|
Loading…
Reference in a new issue