User Tools

Site Tools


wiki:openssl_commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
wiki:openssl_commands [2022/10/21 17:14] – add Additional commands that can be used to inspect Certificates antisawiki:openssl_commands [2023/03/14 15:28] – [Get cert file from site] update Get cert file from site command antisa
Line 35: Line 35:
 ===== Get cert file from site ===== ===== Get cert file from site =====
  
-  openssl s_client -connect example.com:443 -servername example.com:443 < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > public.crt+  openssl s_client -connect example.com:443 -servername example.com:443 < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | openssl x509 -in - -text -noout
  
 ===== Get OCSP stapling info ===== ===== Get OCSP stapling info =====
Line 99: Line 99:
  
   openssl x509 -in google.com-cert -noout -ext authorityKeyIdentifier   openssl x509 -in google.com-cert -noout -ext authorityKeyIdentifier
 +
 +
 +====== See also ======
 +  * [[wiki:creating_ca_and_signing_server_and_client_certs_with_openssl|Creating CA and signing server and client certs with openssl]]
 +
 ====== References ====== ====== References ======
   * https://www.xolphin.com/support/OpenSSL/Frequently_used_OpenSSL_Commands   * https://www.xolphin.com/support/OpenSSL/Frequently_used_OpenSSL_Commands
   * https://www.namecheap.com/support/knowledgebase/article.aspx/9781/2238/nginx-ssl-error0b080074x509-certificate-routines-x509checkprivatekeykey-values-mismatch   * https://www.namecheap.com/support/knowledgebase/article.aspx/9781/2238/nginx-ssl-error0b080074x509-certificate-routines-x509checkprivatekeykey-values-mismatch
wiki/openssl_commands.txt · Last modified: 2023/03/17 16:11 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki