配置HTTPS服务器之Apache
来源:互联网 发布:tensorflow视频百度云 编辑:程序博客网 时间:2024/05/19 03:44
配置https服务器(apache)
1. 确认open_ssl模块已经安装,检查apache已经加载/usr/lib/apache2/modules/mod_sso.so
2. 生成证书和密钥
a) 生成密钥openssl genrsa 1024 > server.key
b) 生成csr文件openssl req -new -key server.key > server.csr
c) 通过a,b的密钥和csr生成证书(server.crt)
openssl req -x509 -days 365 -key server.key -in server.csr > server.crt
d) 将server.key和server.crt拷贝到
SSLCertificateFile /apache/conf/server.crt
SSLCertificateKeyFile /apache/conf/server.key
3. 配置apache
a) 修改httpd-ssl.conf(ubuntu是/etc/apache2/site-available/default-ssl)配置节:
i. 配置ServerName 为gn.huaqin.com的虚拟主机,端口443
ii. SSLCertificateFile /apache/conf/server.crt
iii. SSLCertificateKeyFile /apache/conf/server.key
b) 修改httpd.conf(ubuntu无需配置)配置节:
i. 加载ssl模块
LoadModule ssl_module /opt/taobao/install/httpd/modules/mod_ssl.so
ii. 引入ssl配置
Include “/apache/conf/httpd-ssl.conf”
iii. 配置ServerName 为gn.huaqin.com的虚拟主机,端口443
c) 重启apache服务
1. 确认open_ssl模块已经安装,检查apache已经加载/usr/lib/apache2/modules/mod_sso.so
2. 生成证书和密钥
a) 生成密钥openssl genrsa 1024 > server.key
b) 生成csr文件openssl req -new -key server.key > server.csr
c) 通过a,b的密钥和csr生成证书(server.crt)
openssl req -x509 -days 365 -key server.key -in server.csr > server.crt
d) 将server.key和server.crt拷贝到
SSLCertificateFile /apache/conf/server.crt
SSLCertificateKeyFile /apache/conf/server.key
3. 配置apache
a) 修改httpd-ssl.conf(ubuntu是/etc/apache2/site-available/default-ssl)配置节:
i. 配置ServerName 为gn.huaqin.com的虚拟主机,端口443
ii. SSLCertificateFile /apache/conf/server.crt
iii. SSLCertificateKeyFile /apache/conf/server.key
b) 修改httpd.conf(ubuntu无需配置)配置节:
i. 加载ssl模块
LoadModule ssl_module /opt/taobao/install/httpd/modules/mod_ssl.so
ii. 引入ssl配置
Include “/apache/conf/httpd-ssl.conf”
iii. 配置ServerName 为gn.huaqin.com的虚拟主机,端口443
c) 重启apache服务
阅读全文
0 0
- 配置HTTPS服务器之Apache
- apache服务器配置https服务
- 5分钟配置Apache 2 HTTPS服务器
- MAC下配置Apache服务器支持https
- 配置HTTPS服务器之Tomcat
- 服务器 apache配置https,http强制跳转https
- Apache服务器配置之个人主页
- Apache服务器配置之个人主页
- 如何在apache服务器上配置ssl以支持https
- Apache mod_proxy通过https访问后端服务器的配置
- windows下面配置apache+https(利用SSL)服务器
- windows下面配置apache+https(利用SSL)服务器
- apache服务器安装配置ssl数字证书,https访问
- Apache服务器配置https协议/SSL证书的方法
- windows下面配置apache+https(利用SSL)服务器
- Apache配置https全过程
- Apache配置https全过程
- Apache https 配置指南
- spring mvc 多文件上传时报错MultipartHttpServletRequest
- base64格式的图片转换成图片并保存(ASP.NET)
- 【Selenium】4.1定位集合
- ReentrantLock中公平锁与非公平锁的效率对比
- jvm年轻代 老年代小例子
- 配置HTTPS服务器之Apache
- android使用SmsManager发送长短信却接收到多条的问题(重新编辑)
- mysql中的日期转换
- 全栈大神黄秀杰小程序实战
- 【Unity】【Code】Unity+触摸屏 单点旋转,双点放大缩小
- 活动|庆科信息“破局”发布会前瞻,五大谜团等你揭晓
- 右下角返回顶部按钮
- java数据结构与算法-队列
- 839D(容斥 || 莫比乌斯反演)