mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 18:55:06 +01:00
openssl: command to show certificate infos
Did you ever was on a server, but did not remember, what the certificate is for?
This commit is contained in:
parent
c6441524b0
commit
b848b2a607
@ -7,6 +7,12 @@ openssl req -new -key server.key -out server.csr
|
|||||||
# To sign a certificate using a private key and CSR:
|
# To sign a certificate using a private key and CSR:
|
||||||
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
|
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
# (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:
|
||||||
|
Loading…
Reference in New Issue
Block a user