当前位置:网站首页>SSL证书免费获取教程
SSL证书免费获取教程
2022-06-25 06:40:00 【程序务虚论】
使用Certbot免费获取https证书:
环境:centOS6.8 64位、nginx已安装
方法:CentOS 5上因为python版本过低是无法用的,CentOS 6上需要先安装epel才行
一.如果是CentOS 6、7,先执行:yum install epel-release
1.首先检查系统是否安装epel-release
[[email protected] ~]
# rpm -q epel-release
package epel-release is not installed2.安装EPEL
32位:http://mirrors.ustc.edu.cn/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
64位: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 安装成功
[[email protected] ~]# rpm -q epel-release
epel-release-6-8.noarch #2.2 查看其所依附的软件文件
[[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 卸载
[[email protected] ~]# rpm -e epel-release
warning: /etc/yum.repos.d/epel.repo saved as /etc/yum.repos.d/epel.repo.rpmsave二.安装Certbot-auto
1、获取 Certbot 客户端
wget https://dl.eff.org/certbot-auto
chmod a+x ./certbot-auto
./certbot-auto --help2、停止nginx
service nginx stop3、生成证书
./certbot-auto certonly --standalone --email [email protected] -- agree-tos -d zdw.me -d www.zdw.me -d service.zdw.me4、查看生成的证书
ls /etc/letsencrypt/live/5、在nginx配置证书
#证书位置
ssl_certificate /etc/letsencrypt/live/cdw.me/fullchain.pem;
# 私钥位置
ssl_certificate_key /etc/letsencrypt/live/cdw.me/privkey.pem;6、启动nginx
service nginx start
边栏推荐
- What is the difference between norflash and nandflash
- 14 BS object Node name Name attrs string get node name attribute content
- Chuantuwei ca-is3720lw alternative material No. iso7820fdw
- Sichuan Tuwei ca-if1051 can transceiver has passed aec-q100 grade 1 certification
- npm install 报错 : gyp ERR! configure error
- C# 读取web上的xml
- 【蒸馏】PointDistiller: Structured Knowledge DistillationTowards Efficient and Compact 3D Detection
- (tool class) use SecureCRT as the communication medium
- 不同路径II[针对DFS的动态规划改进]
- 图扑软件数字孪生 3D 风电场,智慧风电之海上风电
猜你喜欢

Domestic MCU perfectly replaces STM chip model of Italy France
![[batch dos-cmd command - summary and summary] - application startup and call, service and process operation commands (start, call, and)](/img/19/b8c0fb72f1c851a6b97f2c17a18665.png)
[batch dos-cmd command - summary and summary] - application startup and call, service and process operation commands (start, call, and)

Genuine photoshop2022 purchase experience sharing

el-input实现尾部加字

Harmony food menu interface

Vscode official configuration synchronization scheme

ts环境搭建
![[batch dos-cmd command - summary and summary] - CMD window setting and operation commands (CD, title, mode, color, pause, CHCP, exit)](/img/8c/7345b4e8a55dcf11d18ac113df4fc2.png)
[batch dos-cmd command - summary and summary] - CMD window setting and operation commands (CD, title, mode, color, pause, CHCP, exit)

函数模板_类模板

“空间转换”显著提升陡崖点云的地面点提取质量
随机推荐
(tool class) quickly add time to code in source insight
[QT] shortcut key
STL tutorial 4- input / output stream and object serialization
点云智绘在智慧工地中的应用
smartBugs安装小问题总结
What if there is no point in data visualization?
不同路径II[针对DFS的动态规划改进]
Without "rice", you can cook "rice". Strategy for retrieving missing ground points under airborne lidar forest using "point cloud intelligent mapping"
WinForm implementation window is always at the top level
IAR compiler flashback
Research on 3D model retrieval method based on two channel attention residual network - Zhou Jie - paper notes
Cocos learning diary 3 - API acquisition nodes and components
Runtime——methods成员变量,cache成员变量
【批处理DOS-CMD命令-汇总和小结】-上网和网络通信相关命令(ping、telnet、nslookup、arp、tracert、ipconfig)
[batch dos-cmd command - summary and summary] - commands related to Internet access and network communication (Ping, Telnet, NSLOOKUP, ARP, tracert, ipconfig)
[distillation] pointdistiller: structured knowledge distillationwards efficient and compact 3D detection
指南针可以开股票账户吗?安全吗?
Sichuan earth microelectronics ca-is1200 isolated operational amplifier for current detection
Static bit rate (CBR) and dynamic bit rate (VBR)
【批處理DOS-CMD命令-匯總和小結】-外部命令-cmd下載命令、抓包命令(wget)