当前位置:网站首页>SSL certificate deployment
SSL certificate deployment
2022-07-07 03:32:00 【Not bald】
When we finish applying SSL After certificate , Also need to nginx Make the relevant configuration , Can be converted to a secure connection .
Download the certificate file to the server
- First , Go to the server console , Download to local certificate .


After the above screenshot operation , We can download the certificate locally .
After decompression, as shown in the figure :

among :.key The end file is the key file ..pem The end file is the certificate file .
We need to upload these two files to the server .
- Upload the local certificate to the specified directory of the server
I upload it here to /usr/local/nginx/cert/ Under the table of contents .
After uploading, see the figure :

It contains our The key file and Certificate file
Okay . So we upload the certificate to the server .
To configure nginx.conf
We also need to configure nginx.conf File to validate the certificate file .
add to server modular .
Add modules to the configuration file server modular .
commonly , The default configuration file has these contents , It's just commented out . Let's just let go .
however , Also need to change something . The following tips have been given .
server {
listen 443 ssl;
server_name localhost;
# The following path is the absolute path of the file you uploaded in the previous step .
# If you don't write the absolute path, you will report an error
ssl_certificate /usr/local/nginx/cert/xxxxxxxx_bundle.pem;
ssl_certificate_key /usr/local/nginx/cert/xxxxxxxx.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;
}
}
nginx add to ssl modular
- Check which modules we currently have installed
/usr/local/ngxin/sbin/nginx -V
Display information :
nginx version: nginx/1.12.2
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
configure arguments:
configure arguments The module installed for us . You can see that it is not installed ssl modular .
If you contain ngx_http_ssl_module, Then you can skip the step of adding modules .
- Get into nginx Installation directory
Be careful : No /usr/local/nginx/
My installation directory is :/usr/local/nginx-1.20.2
It contains configure file .

Under the installation directory, enter :
./configure --prefix=/usr/local/nginx./configure --with-http_ssl_modulemakemake install
- Backup nginx. And then compile the nginx Replace the original nginx.
cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bakcp ./objs/nginx /usr/local/nginx/sbin/
restart nginx And test the
restart :
/usr/local/nginx/sbin/nginx -s reload
test :
Viewer input https:// domain name

The connection is secure , success .
边栏推荐
- 装饰设计企业网站管理系统源码(含手机版源码)
- Sorting operation partition, argpartition, sort, argsort in numpy
- Tencent cloud native database tdsql-c was selected into the cloud native product catalog of the Academy of communications and communications
- About Confidence Intervals
- 图形化工具打包YOLOv5,生成可执行文件EXE
- Intelligent static presence detection scheme, 5.8G radar sensing technology, human presence inductive radar application
- Ubuntu20 installation redisjson record
- CVPR 2022 最佳论文候选 | PIP: 6个惯性传感器实现全身动捕和受力估计
- Matlab Error (Matrix dimensions must agree)
- Sub pixel corner detection opencv cornersubpix
猜你喜欢

HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother

qt-线程等01概念
![[tools] basic concept of database and MySQL installation](/img/9c/626e42097050517a13a2ce7cdab1bb.jpg)
[tools] basic concept of database and MySQL installation

21.(arcgis api for js篇)arcgis api for js矩形采集(SketchViewModel)
![Jericho turns on the display icon of the classic Bluetooth hid mobile phone to set the keyboard [chapter]](/img/f4/8464bf9b66a1215265ac873f286688.png)
Jericho turns on the display icon of the classic Bluetooth hid mobile phone to set the keyboard [chapter]

哈夫曼树基本概念

About Confidence Intervals

存储过程与函数(MySQL)

Under the tide of "going from virtual to real", Baidu AI Cloud is born from real

Create applet from 0
随机推荐
Search of linear table
Huawei and Xiaomi "copy each other"
Set WiFi automatic connection for raspberry pie
20.(arcgis api for js篇)arcgis api for js面采集(SketchViewModel)
密码学系列之:在线证书状态协议OCSP详解
Experience design details
Optimization of application startup speed
.net中 接口可以有默认实现了
VHDL实现任意大小矩阵乘法运算
大白话高并发(二)
About Confidence Intervals
An error in SQL tuning advisor ora-00600: internal error code, arguments: [kesqsmakebindvalue:obj]
Jerry's phonebook acquisition [chapter]
21.(arcgis api for js篇)arcgis api for js矩形采集(SketchViewModel)
What about SSL certificate errors? Solutions to common SSL certificate errors in browsers
Lost in the lock world of MySQL
[C language] question set of IX
About Estimation Statistics
Flutter3.0, the applet is not only run across mobile applications
22.(arcgis api for js篇)arcgis api for js圆采集(SketchViewModel)