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

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

    After installing OpenSSL I was required to create a new environment variable:

    • Name: OPENSSL_CONF
    • Value: C:\Program Files\OpenSSL\openssl.cnf

    In powershell:

    $env:OPENSSL_CONF = "${env:ProgramFiles}\OpenSSL\openssl.cnf"
    

    This value differs from previous installation versions (as seen in a previous edit of this post). Also, don't forget to add the openssl binary folder ${env:ProgramFiles}\OpenSSL to your Path.

提交回复
热议问题