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

前端 未结 14 645
无人及你
无人及你 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: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
    

提交回复
热议问题