Skip to content

Instantly share code, notes, and snippets.

View bretwalker's full-sized avatar

Bret Walker bretwalker

View GitHub Profile
@bretwalker
bretwalker / gist:9799139
Created March 27, 2014 02:54
keybase.md
### Keybase proof
I hereby claim:
* I am bretwalker on github.
* I am bretw (https://keybase.io/bretw) on keybase.
* I have a public key whose fingerprint is 971B F2FA BEF3 E233 117D 7D8C 0F65 149A F6D8 E897
To claim this, I am signing this object:
@bretwalker
bretwalker / gist:9798430
Created March 27, 2014 02:01
keybase.md
### Keybase proof
I hereby claim:
* I am bretwalker on github.
* I am bretw (https://keybase.io/bretw) on keybase.
* I have a public key whose fingerprint is E33F CF66 89E7 9213 4E31 27D6 32D6 09F5 7736 E218
To claim this, I am signing this object:
@bretwalker
bretwalker / ssl_validator.py
Last active January 28, 2024 12:02
A Python script that uses M2Crypto to check the validity of an SSL certificate.
from M2Crypto import SSL
from M2Crypto.SSL.Checker import SSLVerificationError, NoCertificate, WrongCertificate, WrongHost
import socket, re
from datetime import datetime
import pytz
class ValidationResults:
def __init__(self):
self.connection_error = False