Monday, 15 September 2014

get public key from private key with python OpenSSL -



get public key from private key with python OpenSSL -

well, generate private key pyopenssl follows:

from openssl import crypto k = crypto.pkey() k.generate_key(crypto.type_rsa, 2048) print crypto.dump_privatekey(crypto.filetype_pem, k)

how public key string it? i've still not found method of library it. thanks

if

cert = crypto.dump_certificate(crypto.filetype_pem, k)

doesn't want, doesn't pyopenssl supports public key dumping. there unmerged branch here adds functionality can't claim purports.

python openssl pyopenssl

No comments:

Post a Comment