Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
318 views
in Technique[技术] by (71.8m points)

lets encrypt - Read SSL PEM generated file to get certificate expiry date

I'm using https://github.com/fszlin/certes to generate an SSL PEM file and private key, but throughout the process I can't seem to see where to get the certificates expiry date (or even if it's in there). I have found the order expiry date which is 7 days from now. Does anyone know if it's a property I can extract in some method or maybe later read the PEM to get the data out from there? I know I can get it from the https url once the certificate is installed, or just simply add on 90 days onto the created date, but it would be handy to get it from the certificate itself in some form during the creation process.

question from:https://stackoverflow.com/questions/65869442/read-ssl-pem-generated-file-to-get-certificate-expiry-date

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...