wiki:openssl_commands
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:openssl_commands [2022/10/24 13:48] – add See also antisa | wiki:openssl_commands [2025/10/16 08:46] (current) – add CSR check command and fix indent antisa | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ====== Openssl commands ====== | ====== Openssl commands ====== | ||
| + | ===== Check CSR ===== | ||
| + | openssl req -text -noout -verify -in google.com.csr | ||
| + | | ||
| ===== Get cert expiration date from cert file ===== | ===== Get cert expiration date from cert file ===== | ||
| - | openssl x509 -enddate -noout -in / | + | |
| ===== Verfiy certs ===== | ===== Verfiy certs ===== | ||
| - | openssl verify -CAfile certs/ | + | |
| - | openssl verify -CAfile certs/ | + | |
| ===== Query site for expiration date ===== | ===== Query site for expiration date ===== | ||
| Line 35: | Line 38: | ||
| ===== Get cert file from site ===== | ===== Get cert file from site ===== | ||
| - | openssl s_client -connect example.com: | + | openssl s_client -connect example.com: |
| + | |||
| + | <WRAP center round info 60%> | ||
| + | -connect can be the IP address of a server and is not necessarily the same as the -servername. Use -servername when sharing multiple SSL hosts on a single IP address, | ||
| + | </ | ||
| ===== Get OCSP stapling info ===== | ===== Get OCSP stapling info ===== | ||
| Line 107: | Line 114: | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
wiki/openssl_commands.1666619309.txt.gz · Last modified: by antisa
