当前位置:网站首页>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 installed2. 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.rpmsaveTwo . install Certbot-auto
1、 obtain Certbot client
wget https://dl.eff.org/certbot-auto
chmod a+x ./certbot-auto
./certbot-auto --help2、 stop it nginx
service nginx stop3、 Generate Certificate
./certbot-auto certonly --standalone --email [email protected] -- agree-tos -d zdw.me -d www.zdw.me -d service.zdw.me4、 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
边栏推荐
- 企业全面云化的时代——云数据库的未来
- Overview of image super score: the past and present life of image super score in a single screen (with core code)
- FM signal, modulated signal and carrier
- Apache CouchDB 代码执行漏洞(CVE-2022-24706 )批量POC
- 剑指offer刷题(中等等级)
- Machine learning notes linear regression of time series
- 【莫比乌斯反演】
- 六月集训(第25天) —— 树状数组
- WebSocket的理解以及应用场景
- Cloud computing exam version 1 0
猜你喜欢

Drawing of clock dial

TCP stuff

Electronics: Lesson 010 - Experiment 8: relay oscillator

Deep learning series 45: overview of image restoration

什么是SKU和SPU,SKU,SPU的区别是什么

2022年毕业生求职找工作青睐哪个行业?

c#磁盘驱动器及文件夹还有文件类的操作

How do I install the software using the apt get command?

FM signal, modulated signal and carrier

Debugging mipi-dsi screen based on stm32mp157
随机推荐
Sword finger offer (medium level)
云计算考试版本1.0
Importer des données dans MATLAB
Stm32cubemx learning (5) input capture experiment
[supplementary question] 2021 Niuke summer multi school training camp 4-N
Authority design of SaaS system based on RBAC
洛谷P2486 [SDOI2011]染色(树链+线段树 + 树上区间合并 )
php数组函数大全
417-二叉树的层序遍历1(102. 二叉树的层序遍历、107.二叉树的层次遍历 II、199.二叉树的右视图、637.二叉树的层平均值)
Electronics: Lesson 013 - Experiment 14: Wearable pulsed luminaries
Debugging mipi-dsi screen based on stm32mp157
Stm32cubemx Learning (5) Input capture Experiment
Self made ramp, but it really smells good
【补题】2021牛客暑期多校训练营6-n
Luogu p1073 [noip2009 improvement group] optimal trade (layered diagram + shortest path)
Neural network and deep learning-3-simple example of machine learning pytorch
TCP and UDP
Dietary intervention reduces cancer treatment-related symptoms and toxicity
Luogu p2839 [national training team]middle (two points + chairman tree + interval merging)
【补题】2021牛客暑期多校训练营1-3