我在查找使用 OpenSSL 生成公钥和私钥对的命令时遇到问题。谁能告诉我一些实际的示例代码。
谢谢
最佳答案
使用 pyOpenSSL绑定(bind):
OpenSSL.crypto.PKey().generate_key(type, bits)
Generate a public/private key pair of the type
type
(one ofTYPE_RSA
andTYPE_DSA
) with the sizebits
.
关于Python OpenSSL 生成公钥和私钥对,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9795444/