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
wiki:openssl_commands [2023/03/17 16:11] – [Get cert file from site] add info box antisawiki:openssl_commands [2024/06/12 14:21] (current) – [References] add using-openssl-to-get-the-certificate-from-a-server 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' | openssl x509 -in - -text -noout+  openssl s_client -connect example.com:443 -servername example.com < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | openssl x509 -text -noout
  
 <WRAP center round info 60%> <WRAP center round info 60%>
--connect can be the IP address of a server and is not necessarily the same as the -servername +-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,
 </WRAP> </WRAP>
  
Line 111: Line 111:
   * 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
 +  * https://stackoverflow.com/questions/7885785/using-openssl-to-get-the-certificate-from-a-server
wiki/openssl_commands.txt · Last modified: 2024/06/12 14:21 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