mirror of
https://github.com/cheat/cheat.git
synced 2024-11-26 16:01:35 +01:00
Merge pull request #343 from Mic92/patch-13
openssl: add fingerprint method
This commit is contained in:
commit
c540a600b2
@ -15,6 +15,9 @@ openssl req -text -noout -in server.csr
|
|||||||
# To show certificate information for generated certificate
|
# To show certificate information for generated certificate
|
||||||
openssl x509 -text -noout -in server.crt
|
openssl x509 -text -noout -in server.crt
|
||||||
|
|
||||||
|
# To get the sha256 fingerprint of a certificate
|
||||||
|
openssl x509 -in server.crt -noout -sha256 -fingerprint
|
||||||
|
|
||||||
# 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-----/' | \
|
||||||
|
Loading…
Reference in New Issue
Block a user