I would like to parse android apk's CERT.RSA in Python.
I know it can be parsed with pyOpenSSL
import OpenSSL
cert = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_ASN1,
open('CERT.RSA', 'rb').read())
cert = OpenSSL.crypto.load_pkcs7_data(type, buffer)
cert is of type 'OpenSSL.crypto.PKCS7'.
BUT right now PKCS7 object is not complete, I cannot get attributes I need, is there any alternative way to parse that file?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…