Skip to content

Instantly share code, notes, and snippets.

@jbowes
Created July 23, 2012 14:36
Show Gist options
  • Save jbowes/3163944 to your computer and use it in GitHub Desktop.
Save jbowes/3163944 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import sys
import zlib
from rhsm import _certificate
fp = open(sys.argv[1], "r")
x509 = _certificate.load(pem=fp.read())
print zlib.decompress(x509.get_extension("1.3.6.1.4.1.2312.9.7"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment