Openssl PEM_read_rsa带密码的私钥

Openssl PEM_read_rsa带密码的私钥,openssl,pem,Openssl,Pem,我使用以下命令创建了私钥: openssl genrsa-des3-out private.pem 2048 在密钥创建过程中,我被要求输入并验证密码 我使用以下代码从密钥创建RSA,但得到: r=NULL 你能帮忙吗 谢谢,, 兹维卡 我添加了以下代码: OpenSSL_add_all_algorithms(); OpenSSL_add_all_ciphers(); ERR_load_crypto_strings(); 在以下位置找到解决方案: 现在它起作用了 谢谢,, 兹

我使用以下命令创建了私钥: openssl genrsa-des3-out private.pem 2048

在密钥创建过程中,我被要求输入并验证密码

我使用以下代码从密钥创建RSA,但得到: r=NULL

你能帮忙吗

谢谢,, 兹维卡


我添加了以下代码:

OpenSSL_add_all_algorithms();
    OpenSSL_add_all_ciphers();
    ERR_load_crypto_strings();
在以下位置找到解决方案:

现在它起作用了

谢谢,, 兹维卡

OpenSSL_add_all_algorithms();
    OpenSSL_add_all_ciphers();
    ERR_load_crypto_strings();