如何安装:OpenSSL +瓦姆普
这里有人有关于如何在我的本地开发计算机上获取 SSL 的清晰详细的步骤吗?我已在 c:\wamp 上安装了最新版本的 WAMP (2.2c)。我在网上找到的说明在大多数情况下似乎已经过时,并且缺乏正确完成工作所需的详细信息。
Does anyone here have clear and detailed steps on how to get SSL on my local development machine? I've installed the latest version of WAMP (2.2c) on c:\wamp. The instructions I find on the net seem to be outdated in most cases and lacking the details I need to get things done right.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
指南:WampServer 2.5 中的 Openssl
先决条件:通常不需要安装 openssl(它与 Wamp 捆绑在一起)。例如,Apache 2.4.9 包括 1.0.1g。
系统变量:
openssl 文件夹结构:
在 C:\wamp\bin\apache\apache#.#.#\conf 中创建以下文件夹结构:
<前>..
演示CA
|-----证书
|-----crl
|-----新证书
|-----私人
配置 openssl.cnf:
创建证书:
现在在同一个控制台窗口中使用“openssl rsa -in cacert.pem -out cacert.key”,如果要求输入之前输入的密码。
删除 C:\wamp\bin\apache\apache2.4.9\bin 中的“.rnd”文件
恭喜您现在是自签名证书的所有者!
我已经根据此 站点:
在 httpd.conf 中启用 SLL(搜索“#Ininclude conf/extra/httpd-ssl.conf”)+更改 httpd-ssl.conf 中的以下条目:
现在通过调用 httpd 来测试您的 Apache 安装-t。
如果您收到以下错误“SSLSessionCache:不支持'shmcb'会话缓存(已知名称:)。也许您需要加载适当的socache模块(mod_socache_shmcb?)。”在 httpd.conf 中启用以下条目“LoadModule socache_shmcb_modulemodules/mod_socache_shmcb.so”
Wamp 现在配置了 https 支持:-)
我还使用 httpd.conf 中的以下配置启用了“LoadModule status_modulemodules/mod_status.so”:
您现在可以在此处检查服务器状态
Apache/2.4.9 (Win64) OpenSSL/1.0.1g PHP/5.5.12 Server在本地主机端口 443
注释:
Guide: Openssl in WampServer 2.5
Prerequisite: There is normally no need to install openssl (it comes bundled with Wamp). Apache 2.4.9 includes 1.0.1g for instance.
System-Variable:
openssl folder structure:
In C:\wamp\bin\apache\apache#.#.#\conf create the following folder structure:
Configuring openssl.cnf:
Creating the certificate:
From command line browse to C:\wamp\bin\apache\apache#.#.#\bin\ and call "openssl req -new -out cacert.csr -keyout cacert.pem". If prompted enter a password and after that the DN informations like below.
In the same console window now use "openssl rsa -in cacert.pem -out cacert.key" and if asked enter the password previously entered.
Remove the ".rnd" file in C:\wamp\bin\apache\apache2.4.9\bin
Congrats you are now the owner of a self signed certificate!
I've placed the built files (they are currently in bin folder) according this Site:
In httpd.conf enable SLL (search for "#Include conf/extra/httpd-ssl.conf") + alter the following entries in httpd-ssl.conf:
Now test your Apache installation by calling httpd -t.
If you get the following error "SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?)." enable the following entry "LoadModule socache_shmcb_module modules/mod_socache_shmcb.so" in httpd.conf
Wamp is now configured with https support :-)
I've also enabled "LoadModule status_module modules/mod_status.so" using the following configuration in httpd.conf:
You can check now your server status here
Apache/2.4.9 (Win64) OpenSSL/1.0.1g PHP/5.5.12 Server at localhost Port 443
Notes:
我安装了 WAMP 2.2E。
我遇到了同样的问题,经过大约一个小时的互联网搜索并尝试了各种方法后,我偶然发现可以通过以下方式启用 openssl:
I have WAMP 2.2E installed.
I ran into the same problem, and after about an hour of searching the internet and trying all sorts of things, I stumbled into discovering that openssl can be enabled by:
在遵循 KAGRAN22 的出色说明之后,我遇到了 2 个错误:
取消注释此行可以解决该错误
通过在 httpd.conf 中 。
接下来我得到了这个:
这是通过在 httpd.conf 中取消注释这一行来解决的
。
之后一切都应该有效。
After following the excellent instructions from KAGRAN22, I ran into 2 errors:
That error is resolved by uncommenting this line
in httpd.conf.
Next I got this:
Which is resolved by uncommenting this line
in httpd.conf.
It should all work after that.
事实:
不可能在 WampServer 版本 2.4 上配置 SSL,至少在合理的时间内是不可能的。
正常人不应该对处理这个感兴趣,因为这既不实际也不正常的做事方式。
Wamp 上的 SSL 基本上是 SM 机器,因此如果您有一些受虐需求,请继续执行此操作。
Facts:
It is not possible to configure SSL on WampServer Version 2.4 at least not in reasonable amount of time.
Normal person shouldn't be interested in dealing with this, because this is not practical nor normal way to do things.
SSL on Wamp is basicaly SM machine so if you have some masochistic needs please proceed with this.