1、申请证书

https://freessl.cn/

2、创建证书

3、离线生产

4、下载Keymanager

https://keymanager.org/

5、打开生产密钥

6、DNS验证

进入域名管理控制台,选择txt解析

7、检测解析

解析要等一会,基本没问题

8、上传密钥

9、nginx配置

server {
listen 80;
server_name dianjiu.co www.dianjiu.co;
rewrite ^(.*)$ https://$host$1 permanent; #所有的http请求,全部重定向到https中。
}
server {
listen 443 ssl
server_name dianjiu.co www.dianjiu.co;
ssl_certificate /app/ssl/dianjiu_co/dianjiu_co.crt;
ssl_certificate_key /app/ssl/dianjiu_co/dianjiu_co.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#按照这个套件配
ssl_prefer_server_ciphers on;
location / {
root /app/web/dianjiu_co; #前端服务
index index.html index.htm;
}
location /api {
## 重写,转发前,将url中的某些参数进行过滤
rewrite ^/api/(.*)$ /$1 break;
## 代理转发地址,具体的 host 和 post 自己指定
proxy_pass http://47.11.59.245:18181;
}
}

10、验证https

访问 https://dianjiu.co/

最新文章

  1. .Net mvc 根据前台参数动态绑定对象
  2. 开源镜像源(转自[tanghuimin0713的博客])
  3. Linux下的tar压缩解压缩命令详解
  4. [javaSE] 注解-JDK中的注解
  5. plain framework 1 参考手册 入门指引之 简明教程
  6. JS 保留两位小数问题收集
  7. Working with HTTP
  8. vue.js 2.0开发
  9. 变形--旋转 rotate()
  10. XAF应用开发教程(七)外观控制模块
  11. 如何在低api中使用View的属性设置方法如setAlpha等
  12. String 去重,区分大小写
  13. Elasticsearch 搜索不到数据问题(_mapping 设置)
  14. java中把字节数组转换为16进制字符串
  15. Linux系统编程——进程调度浅析
  16. 网上下载的“上下3D”和“左右3D”影片该如何播放?
  17. 整理php操作memcache缓存为基础的方法
  18. 花括号中的json数据--->转为数组array
  19. Infix to postfix conversion 中缀表达式转换为后缀表达式
  20. tomcat线程初探

热门文章

  1. Pytorch Dataset和Dataloader 学习笔记(二)
  2. 【二分 贪心】覆盖问题 BZOJ1052 HAOI2007
  3. 【Java】equals 和 == 的区别
  4. C#设计模式学习之装饰者模式
  5. Golang通过结构体解析和封装XML
  6. Unity il2cpp加密
  7. Mysql在线DDL
  8. Linux 安装 git
  9. SpringBoot:SpringBoot中@Value注入失败
  10. mysql 深度解析auto-increment自增列"Duliplicate key"问题