当前位置:网站首页>Free SSL certificate acquisition tutorial
Free SSL certificate acquisition tutorial
2022-06-25 08:11:00 【On procedural retreat】
Use Certbot Free access https certificate :
Environmental Science :centOS6.8 64 position 、nginx already installed
Method :CentOS 5 Because python The version is too low to use ,CentOS 6 You need to install epel Talent
One . If it is CentOS 6、7, Execute first :yum install epel-release
1. First check whether the system is installed epel-release
[[email protected] ~]
# rpm -q epel-release
package epel-release is not installed
2. install EPEL
32 position :http://mirrors.ustc.edu.cn/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
64 position :http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
[[email protected] ~]# rpm -ivh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
Retrieving http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
Preparing... ########################################### [100%]
1:epel-release ########################################### [100%]
#2.1 Installation successful
[[email protected] ~]# rpm -q epel-release
epel-release-6-8.noarch
#2.2 View the attached software files
[[email protected] ~]# rpm -qR epel-release
/bin/sh
/bin/sh
config(epel-release) = 6-8
redhat-release >= 6
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1
#2.3 uninstall
[[email protected] ~]# rpm -e epel-release
warning: /etc/yum.repos.d/epel.repo saved as /etc/yum.repos.d/epel.repo.rpmsave
Two . install Certbot-auto
1、 obtain Certbot client
wget https://dl.eff.org/certbot-auto
chmod a+x ./certbot-auto
./certbot-auto --help
2、 stop it nginx
service nginx stop
3、 Generate Certificate
./certbot-auto certonly --standalone --email [email protected] -- agree-tos -d zdw.me -d www.zdw.me -d service.zdw.me
4、 View the generated certificate
ls /etc/letsencrypt/live/
5、 stay nginx Configure certificate
# Certificate location
ssl_certificate /etc/letsencrypt/live/cdw.me/fullchain.pem;
# Private key location
ssl_certificate_key /etc/letsencrypt/live/cdw.me/privkey.pem;
6、 start-up nginx
service nginx start
边栏推荐
- 电子学:第012课——实验 13:烧烤 LED
- 【补题】2021牛客暑期多校训练营4-n
- socket问题记录
- Luogu p5994 [pa2014]kuglarz (XOR thinking +mst)
- Is it safe to open an account through the haircut account opening link now?
- Stm32cubemx Learning (5) Input capture Experiment
- 洛谷P3313 [SDOI2014]旅行(树链+边权转点权)
- Electronics: Lesson 011 - experiment 10: transistor switches
- [supplementary question] 2021 Niuke summer multi school training camp 6-n
- [supplementary question] 2021 Niuke summer multi school training camp 4-N
猜你喜欢
Opencv daily function structure analysis and shape descriptor (8) Fitline function fitting line
TCP 加速小记
TCP与UDP
Electronics: Lesson 010 - Experiment 8: relay oscillator
电子学:第013课——实验 14:可穿戴的脉冲发光体
飞机引气系统的建模与故障仿真
Mining microbial dark matter -- a new idea
Electronics: Lesson 011 - experiment 10: transistor switches
电子学:第009课——实验 7:研究继电器
双周投融报:资本埋伏Web3基础设施
随机推荐
The era of enterprise full cloud -- the future of cloud database
Force buckle 272 Closest binary search tree value II recursion
RMQ interval maximum subscript query, interval maximum
Authority design of SaaS system based on RBAC
Luogu p1073 [noip2009 improvement group] optimal trade (layered diagram + shortest path)
Looking for b-end product manager after years? I almost ruined myself
【补题】2021牛客暑期多校训练营9-n
剑指offer刷题(简单等级)
allgero报错:Program has encountered a problem and must exit. The design will be saved as a .SAV file
Mr. Tang's lecture on operational amplifier (Lecture 7) -- Application of operational amplifier
Websocket understanding and application scenarios
Deep learning series 48:deepfaker
C # set up FTP server and realize file uploading and downloading
Sword finger offer (simple level)
STM32CubeMX 學習(5)輸入捕獲實驗
Electronics: Lesson 010 - Experiment 9: time and capacitors
Functions should not specify operation types through variables
How to create a new branch with SVN
What is the difference between agreement and service?
TCP acceleration notes