Difference between revisions of "Openssl s client"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
* <code>openssl s_client -showcerts -connect YOUR_DOMAIN.COM:443</code>
 
* <code>openssl s_client -showcerts -connect YOUR_DOMAIN.COM:443</code>
  
* echo -n | openssl s_client -connect HOST:PORTNUMBER | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/$SERVERNAME.cert <ref>https://serverfault.com/questions/139728/how-to-download-the-ssl-certificate-from-a-website</ref>
+
* <code>echo -n | openssl s_client -connect HOST:PORTNUMBER | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/$SERVERNAME.cert</code> <ref>https://serverfault.com/questions/139728/how-to-download-the-ssl-certificate-from-a-website</ref>
  
  

Revision as of 07:08, 6 October 2020

  • openssl s_client -showcerts -connect YOUR_DOMAIN.COM:443
  • echo -n | openssl s_client -connect HOST:PORTNUMBER | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/$SERVERNAME.cert [1]


See also

  • https://serverfault.com/questions/139728/how-to-download-the-ssl-certificate-from-a-website
  • Advertising: