【问题标题】:Enabling SSL with XAMPP issue in windows 10在 Windows 10 中启用带有 XAMPP 问题的 SSL
【发布时间】:2018-05-04 22:31:40
【问题描述】:

当我尝试在本地服务器中将 http 设置为 https 时,我遇到了 XAMPP 问题。我流着这个instruction。当我使用cmd 运行makecert.bat 文件时,终端显示流动错误。

Generating a 2048 bit RSA private key
......+++
..................................+++
writing new private key to 'privkey.pem'
Enter PEM pass phrase:
18548:error:28069065:lib(40):UI_set_result:result too small:.\crypto\ui\ui_lib.c:830:You must type in 4 to 511 characters
18548:error:0906406D:PEM routines:PEM_def_callback:problems getting password:.\crypto\pem\pem_lib.c:116:
18548:error:0907E06F:PEM routines:DO_PK8PKEY:read key:.\crypto\pem\pem_pk8.c:130:
unable to load Private Key
11920:error:0906D06C:PEM routines:PEM_read_bio:no start line:.\crypto\pem\pem_lib.c:707:Expecting: ANY PRIVATE KEY
server.csr: No such file or directory
Could Not Find C:\xampp\apache\server.csr
The system cannot find the file specified.
The system cannot find the file specified.

-----
Das Zertifikat wurde erstellt.
The certificate was provided.

Press any key to continue . . .

我不明白如何解决这个错误。我找到了解决方案here。但它不起作用。我找到了关于makecert.bat 文件的有用链接here

我不明白如何解决这个问题。我需要帮助。

  • 我的XAMPP版本:7.1.11-0-VC14

  • Windows 版:Windows 10 Education

  • 版本:1709

  • 操作系统版本:16299.64

【问题讨论】:

    标签: apache http batch-file https xampp


    【解决方案1】:

    首先,对于您在这里创建的自签名证书,您可以免费创建商业证书:https://sslforfree.com

    这里示例如何将多个域的多个 ssl 证书添加到 xampp 服务器https://www.youtube.com/watch?v=DzGTgAaDP40

    您可以在 youtube 上安装 php、apache2 和 mysql,而无需 xampp 搜索(windows server 2012 apache2、php、mysql)。

    【讨论】:

    • youtube 链接已过时
    【解决方案2】:

    我找到了问题。 您有多个 xampp 安装。 如果你去你原来安装的 xampp/apache 文件夹,makecert 就完美了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-08-15
      • 2020-07-20
      • 2021-07-12
      • 2016-10-10
      • 2015-02-04
      • 1970-01-01
      • 2012-10-31
      • 1970-01-01
      相关资源
      最近更新 更多