It’s some easy thing to do, but not explained anywhere. Python certificate support is inexistant, coding your own SSL
wrapper kinda sucks.. well, there’s openssl anyways!
The thing is, openssl man page is kinda long and obscure, so here’s a snippet that’ll do it, since I will forget about
the options in 2 days from now … :p
Usage: ./check_expiration www.verisign.com
[-] Certificate for www.verisign.com has not expired yet: May 8 23:59:59 2009 GMT