Created
July 23, 2012 14:36
-
-
Save jbowes/3163944 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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