2016-04-14 35 views
3

我按照tutorial here在Wampserver上設置HTTPS。Wampserver:警告:無法打開配置文件:... openssl.cnf

我WAMP的是@d:\wamp

一切都已經工作,直到步驟B,它說:

Type the command:

openssl req -new -key server.key -out server.csr 

該命令產生錯誤:

WARNING: can't open config file: c:\vc11_deps\repo\winlibs_openssl/install_x86/openssl.cnf

Unable to load config file info from: C:\vc11_deps\repo\winlibs_openssl/install_x86/openssl.cnf

我假設我需要獲得C:\vc11_deps\repo\winlibs_openssl的副本,但我找不到這個o的痕跡谷歌,不知道它是什麼。

你知道我在哪裏可以獲得C:\vc11_deps\repo\winlibs_opensslwinlibs_openssl的副本嗎?

編輯:我發現https://github.com/winlibs/openssl

EDIT2:我跑在升高的CMD提示以下命令:

set OPENSSL_CONF=d:\wamp\bin\apache\apache2.4.9\conf\openssl.cnf 

,然後再次運行

openssl req -new -key server.key -out server.csr 

,和收到相同的錯誤:

WARNING: can't open config file: c:\vc11_deps\repo\winlibs_openssl/install_x86/openssl.cnf

Unable to load config file info from: C:\vc11_deps\repo\winlibs_openssl/install_x86/openssl.cnf

PHP錯誤日誌顯示:

[14-Apr-2016 09:38:52 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'd:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

[14-Apr-2016 09:38:52 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'd:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

+0

最後一句'winlibs_openssl'提示Google搜索找到了[https://github.com/winlibs/openssl](https://github.com/winlibs/openssl) – Steve

+0

我複製了'D:\ wamp \ bin \ apache \ apache2.4.9 \ conf \ openssl.cnf「複製到新創建的'C:\ vc11_deps \ repo \ winlibs_openssl \ install_x86'文件夾中,並且錯誤消失。 – Steve

+0

你沒看到2008年的問題嗎? – RiggsFolly

回答

3

不知道這種問答& A是值得的,但:

我複製D:\wamp\bin\apache\apache2.4.9\conf\openssl.cnf到新創建的文件夾C:\vc11_deps\repo\winlibs_openssl\install_x86和錯誤消失。

+0

謝謝,它幫助我(儘管我改爲64位安裝的install_x64)。 :) – Alfie

相關問題