Unable to load config info from /usr/local/ssl/openssl.cnf on Windows

前端 未结 14 642
无人及你
无人及你 2020-12-12 10:51

While using OpenSSL on Windows:

openssl genrsa -out privatekey.pem 1024 -->

Created successfully

openssl req -new -x509 -key          


        
相关标签:
14条回答
  • 2020-12-12 11:30

    In my case, I need to set the path of openssl.cnf file manually on the command using config option. So the command

    openssl req -x509 -config "C:\Users\sk\Downloads\openssl-0.9.8k_X64\openssl.cnf" -newkey rsa:4096 -keyout key.pem -out cert.pem -nodes -days 900
    
    0 讨论(0)
  • 2020-12-12 11:34

    If you're using Win32 OpenSSL v1.1.0g, setting up this environment variable:

    set OPENSSL_CONF=C:\OpenSSL-Win32\bin\cnf\openssl.cnf
    

    Before running this command with "server.key", successfully creating "server.csr":

    openssl req -new -key server.key -out server.csr
    
    0 讨论(0)
提交回复
热议问题