본문 바로가기
Programming/Etc

linux SSL 인증서 만료일 확인하기

by guru_k 2021. 11. 10.
728x90
반응형

pem 혹은 crt 파일의 만료일을 아래 명령어를 사용해서 확인 할 수 있다.

만료일 확인

$ openssl x509 -enddate -noout -in /etc/pki/ca.crt
notAfter=Jan 27 02:17:07 2030 GMT

인증서 전체 유효기간 확인

$ openssl x509 -dates -in /etc/kubernetes/pki/ca.crt
notBefore=Jan 30 02:17:07 2020 GMT
notAfter=Jan 27 02:17:07 2030 GMT

 

728x90
반응형

댓글