Site icon 지락문화예술공작단

[OPENSSL] How To Check SSL Certificate Expiration with OpenSSL

openssl 명령어를 이용해서 시작일&만료일 확인 하기

 

1. 로컬 인증서 확인


openssl x509 -in jirak.net.crt -noout -dates
notBefore=Dec 9 00:00:00 2022 GMT
notAfter=Jan 8 23:59:59 2023 GMT

 


openssl x509 -in jirak.net.crt -noout -startdate
notBefore=Dec 9 00:00:00 2022 GMT

 


openssl x509 -in jirak.net.crt -noout -enddate
notAfter=Jan 8 23:59:59 2023 GMT

 

 

2. 원격 인증서 확인


openssl s_client -servername jirak.net -connect 192.168.100.200:443 2>/dev/null | openssl x509 -noout -dates
notBefore=Dec 9 00:00:00 2022 GMT
notAfter=Jan 8 23:59:59 2023 GMT

 

 

3. 로컬확인 VS 원격확인

 

Exit mobile version