Openssl

From DikapediaV2
Revision as of 14:17, 11 September 2024 by Ardika Sulistija (talk | contribs) (Created page with "====How to test SSL connectivity ==== ---- openssl s_client -showcerts -connect <ip>:<port> # force tls1.2: openssl s_client -tls1_2 -showcerts -connect <ip>:<port> ==== How to check if SSL certificate on an instance has expired==== ---- openssl s_client -connect ec2-x-x-x-x.eu-west-2.compute.amazonaws.com:443 -servername dikapedia.com 2>/dev/null | openssl x509 -noout -dates -issuer -subject notBefore=Oct 1 11:59:06 2021 GMT notAfter=Dec 30 11:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

How to test SSL connectivity


openssl s_client -showcerts -connect <ip>:<port>

# force tls1.2:
openssl s_client -tls1_2 -showcerts -connect <ip>:<port>


How to check if SSL certificate on an instance has expired


openssl s_client -connect ec2-x-x-x-x.eu-west-2.compute.amazonaws.com:443 -servername dikapedia.com 2>/dev/null | openssl x509 -noout -dates -issuer -subject
       notBefore=Oct  1 11:59:06 2021 GMT
       notAfter=Dec 30 11:59:05 2021 GMT
       issuer= /C=US/O=Let's Encrypt/CN=R3
       subject= /CN=dikapedia.com