openssl_csr_get_public_key in Python
Can anybody suggest any python *ssl rsa library* , which has a function like in PHP (openssl_csr_get_public_key).
Because i have a certificate , with which i need t开发者_如何学运维o verify the data . And every time i try to use this certificate with M2Crypto public key functiton , it gives error "no start line " , which is completely understandable because its not a public key , but a certificate which has a public key in it. As much as i understand.
Thx in advance .
I think what you want is M2Crypto.X509.load_cert()
, and then getting the public key from the certificate object using cert.get_pubkey()
.
精彩评论