apache 配置 - ssl
来源:互联网 发布:sai for mac 编辑:程序博客网 时间:2024/06/05 06:48
1. 下载apache:记得下载带有openssl的版本。否则要自己去下openssl了。
2. 生成测试证书
a. 进入cmd,切换目录到apach/conf下。
b. 调用openssl,输入:../bin/openssl.exe-> 出现OpenSSL提示符
c. 生成key文件,输入:genrsa -out server.key 1024
d. 生成未签署的server.csr,输入:req -new -key server.key -out server.csr -config openssl.cnf。
注意:Common Name和httpd.conf中的ServerName必须一致,否则apache不能启动。
e. 签名,输入:x509 -req -days 365 -in server.csr -signkey server.key -out server.crt。可用x509 -noout -text -in server.crt查看证书的内容。
3. 配置
a. conf/httpd.conf :取消这两行的注释
LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf
修改:ServerName 127.0.0.1:80
b. conf/extra/httpd-ssl.conf
修改:ServerName 127.0.0.1:443
4. 重启appache
- 配置Apache的SSL
- Apache Ssl 配置整理
- 配置Apache支持SSL
- apache 配置 - ssl
- Apache SSL配置
- Apache服务器SSL配置
- apache 配置 ssl
- CentOS,Apache 配置SSL
- apache配置ssl
- Apache Tomcat SSL配置
- Apache服务器SSL配置
- Apache如何配置SSL
- Apache配置SSL
- Apache配置SSL
- apache配置ssl证书
- Apache配置SSL
- apache ssl 配置
- Apache SSL服务器配置
- linux内核编译选项详解(二):Loadable Module and Block Layer Support
- 关键字const的使用技巧
- linux内核编译选项详解(三):Processor type and features
- Flex 根据关键字对Array排序
- windows消息和映射
- apache 配置 - ssl
- Google废止外挂计划O3D投入3D网络WebGL
- linux程序调试及调试工具使用笔记
- 关于Detours的一些介绍(出处不详)
- Google新项目让WebGL不依赖驱动程序
- Win2003合并磁盘分区
- 微软研究院Detour开发包之API拦截技术
- Sql 2005 角色权限
- IT项目经理的8条生存法则