Difference between revisions of "Openssl s client"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
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>
  
* <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>
+
* <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>
  
 
  depth=0 C = XX, ST = YY, L = XXXXX, O = ORGA, OU = RND, CN = YOUR_DOMAIN.COM
 
  depth=0 C = XX, ST = YY, L = XXXXX, O = ORGA, OU = RND, CN = YOUR_DOMAIN.COM

Revision as of 10:19, 21 February 2023

  • openssl s_client -showcerts -connect YOUR_DOMAIN.COM:443
depth=0 C = XX, ST = YY, L = XXXXX, O = ORGA, OU = RND, CN = YOUR_DOMAIN.COM
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 C = XX, ST = YY, L = XXXXX, O = ORGA, OU = RND, CN = YOUR_DOMAIN.COM
verify error:num=21:unable to verify the first certificate
verify return:1
DONE

Related terms

See also

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