https ssl_key 本地windows测试
来源:互联网 发布:陕西师范网络教育首页 编辑:程序博客网 时间:2024/05/30 19:34
Nginx
- nginx配置
# HTTPS server server { listen 443 ssl; server_name localhost; ssl_certificate C:\Users\xuye\Desktop\SSL\ifourthwall\Nginx\1_www.???.crt; ssl_certificate_key C:\Users\xuye\Desktop\SSL\ifourthwall\Nginx\2_www.???.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { root html; index index.html index.htm; } }
- host配置(把证书域名配置到本地ip上)
- 找到C:\Windows\System32\drivers\etc下的hosts,添加映射关系
192.168.0.101 www.???.com
- cmd刷新DNS 解析:
C:\Users\xuye>ipconfig /flushdns
- 然后启动nginx,访问https://www.???.com就可以了
Tomcat
tomcat配置:
修改
<!-- 端口改成80方便访问 --><Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
- 添加
<!-- https默认访问443。如果使用其他端口号,那https访问的时候要加端口号 --><Connector port="443" maxThreads="200" scheme="https" secure="true" SSLEnabled="true" keystoreFile="C:\\Users\\xuye\\Desktop\\SSL\\myhitron\\Tomcat\\www.???.com.jks" keystorePass="13ln6o5x2yc5nvi" clientAuth="false" sslProtocol="TLS"/>
- host配置(把证书域名配置到本地ip上)
- 找到C:\Windows\System32\drivers\etc下的hosts,添加映射关系
192.168.0.101 www.???.com
- cmd刷新DNS 解析:
C:\Users\xuye>ipconfig /flushdns
- 然后启动tomcat,访问https://www.???.com就可以了
阅读全文
0 0
- https ssl_key 本地windows测试
- win7 win8 windows server 2008R2下 https SSL证书安装的搭配(搭配https ssl本地测试环境)
- win7 windows server 2008R2下 https SSL证书安装的搭配(搭配https ssl本地测试环境)
- windows server 2003中IIS6.0 搭配https本地测试环境
- Tomcat设置https协议(本地测试)
- 本地测试Tomcat配置Https访问
- Nginx服务器安装本地HTTPS测试环境
- https及https的本地测试环境搭建
- windows+php+apache本地配置HTTPS
- CA根证书制作【仅供参考】-----win7 windows server 2008R2下 https SSL证书安装的搭配(搭配https ssl本地测试环境)
- https的本地测试环境搭建 http网站转换成https网站之后的问题
- windows本地建svn服务端,测试可用
- spark入门实战windows本地测试程序
- redis本地测试环境安装windows
- https,https的本地测试环境搭建,asp.net结合https的代码实现,http网站转换成https网站之后遇到的问题
- https,https的本地测试环境搭建,asp.net结合https的代码实现,http网站转换成https网站之后遇到的问题
- 本地tomcat 配置https
- 浏览器证书基础介绍和如何测试本地浏览器的HTTPS的完备性
- java程序员的大数据之路(15):Pig Latin用户自定义函数
- 外部类、外部接口、类的内部类、类的内部接口、接口的内部类、接口的内部接口 修饰符
- 获取图片 渐变色
- java自定义注解
- Linux常用命令大全
- https ssl_key 本地windows测试
- python3源码剖析之concurrent.futures.ThreadPoolExecutor
- Java利用stmp协议实现简单邮件发送功能
- Spring定时任务的几种实现
- Kafka由于ext4的日志问题导致IO.WAIT升高的解决办法
- Edubuntu是为教育量身定制的系统
- Android 如何加速./mk snod打包
- 228. Summary Ranges
- 友盟第三方 登录与分享功能实现