Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 712 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 712 Bytes

Build Status

CertTime

Determine time left on a certificate. This code is a compilation of a couple of things I saw on the internet and stack overflow for extracting the time left on a certificate. Here I added printing the serial number, issued to entity, and take multiple certs on the command line. Should work with either python2 or python3.

Example usage:

	% ./cert_decode.py testcert.pem 
	Cert A53B46070E3B110D issued to 'www.example.com' is valid for 3649 more days

Notes

The function

	ssl._ssl._test_decode_cert()

is undocumented and not guarenteed to exist?