Nginx SSL配置过程
1. 在godaddy购买了UCC SSL(最多5个域名)的SSL证书
2. 设置证书 -- 管理 --
3. 需要制作证书申请CSR文件(在线工具制作或者openssl命令制作),保存CSR和key文件。
4. 制作的时候,我这里虽然是多域名证书(一个证书绑定多个域名),但是制作CSR只制作主域名的CSR,其它域名通过SAN添加即可,复制CSR的内容到下面图片框:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhkAAAG/CAIAAAB61VKyAAAgAElEQVR4nO3dTasbV57H8byDmfeiTXbZeTGzbciyZwbTcEF40ZBNJqtetDbKgEk23vXGyaKV0FbAxhs3MTFyxMQOBbcxhmuT28E2aEwvckWgvdAs6uk8/M+pU3VKOqrS94Ogc6V6duv/03ko6b0dAABx3kt9AACAwSNLAACxyBIAQCyyBAAQiywBAMQiSwAAscgSAEAssgQAEIssAQDE6p4l2Xwyz5qXmUymy03nnSSyWU4nDWeXzSdNiwDAqeiaJZvldCLlRP58WWNDs+TICnNxct4jOrJDBoCUIvq4srmQJnqJ7ZYlZSlvpG45P5puhEgQT859yABw0qLGS+yCa1TY4WZJvsHpPHMdO1kCAJXIsXcjTUILulmDhcK8WU7dMSS0GroNzehdcm2QJQBQiZ3HtVlO6wIe3DbIa7Cr/VFsMH/ZjodiL0Yd7yNLvMcv7S8kJwFg/HqcEyx8xvcX+IYs2Qmx4R4VL3aVLaf2IQhHUDxNlgBAD/rLkry46pW0h3lcduDI28t3NZ9P9aOoI8buEZvMM/q4AKAHXbJEL+9FPd1slnOrzPczJ1htAjg3Vu1KHWgpo8LoLqsThCwBgB70liWiiCyx2iPzudqrZG1U2ZUeK8V2pdftLBGyxRE3ZAkAVOLnBM+zXYtRdzmCtMJspojQbSa8rMVW/sdUH7sv+rWWajZYQWFNH3O1XMgSAKgcVZYUhTyzJ3DZM4SLxHHcFlnlkb0b7Wk7KcymlCszyBIAqPSUJfbTRnvA3dHlamhovHebiHuRpgJYAdQ898zqDwsPSAA4GQmyZLOc5n+6U6TljSr2Xuq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lv/zyS+9HAwDdJC/QA3r8dvXH/q9/h3XevXuXZdm33377AACOQ/ICPZTHb1d//Mc/+28JdMkSAABUZAkAIBZZAgCIRZYAAGKRJQCAWGQJACAWWQIAiEWWAABikSUAgFhkCQAgFlkCAIhFlgAAYpElAIBYZAkAIBZZAgCIRZYAAGKRJQCAWGQJACDW/wME04uTZf4QYwAAAABJRU5ErkJggg==" alt="" />
点击 申请证书..
会需要验证你对域名的完全控制权,会发邮件到我们申请ssl的邮箱,里面有一串字符串,我在域名里添加一个txt记录,记录值为那串字符串即可,然后验证通过,证书就下发了。
5. 证书下发后,根据web服务器的类型,下载相应的证书,解压后,有两个证书:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmEAAABCCAIAAACQMJatAAANUElEQVR4nO2dz28bRRvHR8qJv4ALF/4EOHUlJP4IhATiirlZ4tZDX3GpFFdC8q2K4BVdDhwqNeJNZCG2hxwIhVQN6SpNIy8h2E2sTUgbkaYIVZRN/R721zMzz+yO41/b+PuRD/Z4fu3YO999npndR0QAAI7n//w77S7MBBjnyTBr4zyq4xUjqQWAi8c/L2ZrTpkWGOfJMGvjPKrjhUYCwPPvbE0pUwPjPBlmbZxHdbzQSAAAAIAHGgkAAADwQCMBAAAAHmgkAAAAwAONBAAAAHigkQAAAAAPNBIAAADggUYCAAAAPNBIAAAAgAcaCQAAAPBAIwEAAAAeaCQAAADAY6WR//vvf+xf9Q8ujbvTAAAAwASw1citu7fD7vb+7lYneNDd2drbfdjrtnvddq8bhHs74d5vTw67T4/Dg+7mVDUyaDpCCFFrWeRt1YTTDIZpbfgaqtkWANUi9BoNLyzJ5Lv1et31tdSkpO/WWZQSvpun+C5TIZgxbDWy9/uDvgUnj/cYjUyUS1avPFGe+1s1LW+WRHJyxYOmI8kjU5XcUInqcO0W1NCqWclzyWgYaoBGVofQazATbDYHy7M5O3Pn87X8Teg14hS+CTlPXothHs8rYQXG0OG0YLkoTRLfLe5Q6DXqDS/kslHVyzIbK1NyJ/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Y5xDRL/W0ZSST2I6c/EktZHKs5Uk/lN6eIFurWov2a5yTJvQ8180Vr8RqKLAjkwrOo5HYtzMOfJduWi2590Pal1VdO7L+wSX9tTb/2u0r4s418UdL7H0zl6Wr5fM7COUdK3RLCr8LJilcq6lbdmit5O4JViNNDZEtNjb3OLJHofppDXLJjwBpNWuaam7+fb7ESruXfI89O5NENVyoI1QxvlTLTDrnaQq77XSAPOw0wd0dqXpujcWroZEZpTs8osisfNIlgq1GltxbCobFfHdu9r1683F2X9RkHR1DPa/106/Xjr4UxzfFyaJ46/2bVmVsHJvVZ5ijuBgjAEaHjSBVTLTGj3SBoW1Uyu6RKURZFS7NFEWwG4HKUBr54cLzuXePX/y1/87l4M2PeoZcQdOx2L5KMqimVSUY6ChGWBZceCCRAFSXoTTy7U/23/vsKIqir9b7Zo2UfIqvsDwMcxQXYwQAAGDGQGwsAAAAgAcaCQAAAPBAIwEAAAAeaCQAAADAA40EAAAAeKCRAAAAAA80EgAAAOCBRgIAAAA80EgAAACABxoJAAAA8EAjAQAAAB5oJAAAAMADjQQAAAB4oJEAAAAADzQSAAAA4IFGAgAAADz/B4SOJUsmTqUzAAAAAElFTkSuQmCC" alt="" />
我们需要通过命令:cat 89609f6da0d1a82d.crt gd_bundle-g2-g1.crt >app.crt 把两个证书合并。
6. Nginx上的SSL配置
server {
listen 443 ssl;
server_name app.aaaa.com app.bbbb.com app.cccc.com;
ssl_certificate app.crt;
ssl_certificate_key app.key;
access_log /data/logs/nginx/access/app.access.log main;
error_log /data/logs/nginx/error/app.error.log;
location /
{
root /usr/local/gacp/nginx/html/;
include flb_params;
}
} server {
listen 80;
server_name app.aaaa.com app.bbbb.com app.cccc.com;
rewrite ^(.*) https://$host$1 permanent;
}
需要注意的是,这里rewrite的时候,使用的是遍历$host而不是$server_name是因为多个域名,$server_name是匹配的当前虚拟主机配置的第一个域名,$host才能真正保证是访问的域名。
Nginx SSL配置过程的更多相关文章
- Nginx SSL配置
一.SSL 原理 ① 客户端( 浏览器 )发送一个 https 请求给服务器② 服务器要有一套证书,其实就是公钥和私钥,这套证书可以自己生成,也可以向组织申请,服务器会把公钥传输给客户端③ 客户端收到 ...
- nginx - ssl 配置 - globelsign ssl
前提: 3个文件 - domain.csr.domain.key.xxx.cer 简述: 1. 本地生成 .key文件 [附件] 2. 再利用key文件,生成csr(certificate Secu ...
- nginx ssl 配置
user www www; worker_processes auto; error_log /home/wwwlogs/nginx_error.log crit; pid /usr/local/ng ...
- 使用SSL配置Nginx反向代理的简单指南
反向代理是一个服务器,它接收通过Web发出的请求,即http和https,然后将它们发送到后端服务器(或服务器).后端服务器可以是单个或一组应用服务器,如Tomcat,wildfly或Jenkins等 ...
- SSL基础知识及Nginx/Tomcat配置SSL
HTTPS 是在 HTTPS 基础之上添加 SSL/TLS 使网络通讯加密,进而确保通信安全.可简记为 HTTPS = HTTP + SSL/TLS 本文档主要讲解常规SSL格式.Nginx 与 To ...
- nginx + SSL优化配置
nginx + SSL优化配置: #http段添加如下配置项: http { ssl_prefer_server_ciphers on; #设置协商加密算法时,优先使用我们服务端的加密套件,而不是客户 ...
- Tomcat的SSL证书配置以及Tomcat+Nginx实现SSL配置
把jks上传到java容器在的服务器上,路径只要不是webapps下就可以,然后到conf目录下server.xml里配置 <Connector port=" protocol=&qu ...
- Ubuntu Nginx下配置网站ssl实现https访问
最近在看 HTTP权威指南 看到介绍了HTTPS的ssl,自己就动手测试了下,将步骤记录下 HTTPS简介 什么是HTTPS?百科是这样解释的.HTTPS(全称:Hyper Text Trans ...
- nginx反向代理cas server之1:多个cas server负载均衡配置以及ssl配置
系统环境采用centOS7 由于cas server不支持session持久化方式的共享,所以请用其他方式代替,例如:组播复制. 为什么不支持session持久化:http://blog.csdn.n ...
随机推荐
- Unix domain sockets
#server: SERVER_PATH = "/tmp/python_unix_socket_server" def run_unix_domain_socket_server( ...
- return 还是 不return
jQuery.fn.functiona = function() { //return this.each(function() { **** } jQuery(this).css('backgrou ...
- Difference between Hard Clip(H) and Soft Clip(S) in Samtools CIGAR string
一般人都知道 H 和 S 的表面上的区别,即 S 就是 soft, H 就是 hard,S 后,序列里还是会保留序列的信息,而 H 则不会. ----------------------------- ...
- 安卓App热补丁动态修复技术介绍
版权声明:本文由johncz原创文章,转载请注明出处: 文章原文链接:https://www.qcloud.com/community/article/169 来源:腾云阁 https://www.q ...
- 深入理解React(二) —— 数据流和事件原理
版权声明:本文由左明原创文章,转载请注明出处: 文章原文链接:https://www.qcloud.com/community/article/158 来源:腾云阁 https://www.qclou ...
- js将html5日期格式转为long型
var moveInArray = $("#move_in").val().split('-'); var d = new Date(); d.setYear(moveInArra ...
- WLAN频段介绍-04
ISM频段 ISM频段,此频段主要是开放给工业.科学.医学三个主要机构使用,该频段是依据美国联邦通讯委员会(FCC)所定义出来,并没有所谓使用授权的限制. 工业频段:美国频段为902-928MHz,欧 ...
- Junit4入门
eclipse自带junit包,可右键直接新建junit类 静态引入:import static org.junit.Assert.* assert.*是类,静态引入会引入assert里的所有静态方法 ...
- 匹配session
package dl.zhang.test.util; import java.io.IOException; import java.io.Reader; import org.apache.iba ...
- python与unicode
Unicode是一种在计算机上使用的字符编码,是为了解决传统的字符编码方案的局限而产生的,它为每种语言中的每个字符设定了统一并且唯一的二进制编码,以满足跨语言.跨平台进行文本转换.处理的要求. Uni ...