0

我将在 WAMPServer 上使用 OpenSSL 安装 SSL。我经历的过程如下:

  1. 我已经安装了 apache,配置了它并激活了 ssl 模块,

  2. 添加了一个新的系统变量 OPENSSL_CONF:

        Variable name: OPENSSL_CONF
        Variable value: A:\wamp\bin\apache\apache2.4.9\conf\openssl.cnf
    
  3. 重新启动 Windows 并确保我在使用命令行 set | 的环境变量中看到以下行 更多命令:

        OPENSSL_CONF=A:\wamp\bin\apache\apache2.4.9\conf\openssl.cnf
    
  4. 在 A:\OpenSSL 及其 bin 文件夹中安装了 openSSL1.01Light(x64),我使用命令行命令生成了一个密钥:

        openssl req -new > webserver.csr
    
    (Note that openSSL installation directory by default ain't have webserver.csr and I had to copy it from A:\wamp\bin\apache\apache2.4.9\bin directory)
    
  5. 该命令运行并提示我输入 PEM 密码并进行验证。我输入了密码并验证了它。

  6. 我输入了将合并到我的证书请求中的信息。

  7. 我运行了以下命令:

        openssl rsa -in privkey.pem -out webserver.key
    
  8. 系统提示我输入上一步中的密码短语。RSA 密钥已写入,然后文件 webserver.key 在文件夹中可用。

  9. 现在我将使用以下命令将证书转换为签名证书:

        openssl x509 -in webserver.csr -out webserver.cert -req -signkey webserver.key -days 365
    

我得到了这个级别的库存,错误发生了以下消息:

        5336:error:0906D06C:PEM routiness:PEM read bin:no start line:.\crypto\pem\pem_lib.c:703:Expecting: CERTIFICATE REQUEST
        error in x509

我该如何克服这个问题?任何想法?谢谢...

4

0 回答 0