跳转到主要内容
你行网

Main navigation

  • 首页
  • 文章
  • 教程
  • 视频
  • 下载
  • 社区
  • 网站导航
User account menu
  • 登录

面包屑

  1. 首页

certbot 安装免费ssl 证书

由 hrs, 26 四月, 2024

第一步:首先安装certbot

sudo snap install --classic certbot

第二步:创建快捷链接

sudo ln -s /snap/bin/certbot  /usr/bin/certutil 

第三步:运行certbot 配置

certbot --apache

运行后会提示你填入邮箱地址来接收信息

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Enter email address (used for urgent renewal and security notices)
 (Enter 'c' to cancel): “邮箱地址”

这里你直接填入你邮箱地址

接下来问你是否接受条款

Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.4-April-3-2024.pdf. You must agree in
order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: y

我们选择y 是,然后再提示你是否接收他们的邮件,我们也选择是Y

Would you be willing, once your first certificate is successfully issued, to
share your email address with the Electronic Frontier Foundation, a founding
partner of the Let's Encrypt project and the non-profit organization that
develops Certbot? We'd like to send you email about our work encrypting the web,
EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: y

然后再提示我们选择需要加密的域名,这里你选择自己需要加密的域名就可以了

Account registered.
Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: example.com
2: www.example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 2
Requesting a certificate for www.example.com

然后到就这一步就会注册成功了

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/www.example.com/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/www.example.com/privkey.pem
This certificate expires on 2024-09-23.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.
Deploying certificate
Successfully deployed certificate for www.example.com to /etc/httpd/conf/httpd.conf
Added an HTTP->HTTPS rewrite in addition to other RewriteRules; you may wish to check for overall consistency.
Congratulations! You have successfully enabled HTTPS on https://www.example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
 * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
 * Donating to EFF:                    https://eff.org/donate-le

 

标签

  • certbot
  • 登录或注册以发表评论

评论

相关文章

如何在 CentOS 7 上使用 Certbot 独立模式检索 Let's Encrypt SSL 证书

文章标签

CSS
Excel
ubuntu
php
五笔
vim
Linux
HTML
command
drupal 7
VPN
centos
composer
Mysql
drupal 8
模块(module)
drush
JavaSrcipt
apache
drupal 9
英语
Drupal
SEO
nerdtree
network
果树种植
surround
drupal10
主题(theme)
phpmyadmin
ssh
二进制
yum
权限
声音
selinux
ssl
HTML5
用户
Dreamweaver
password
flameshot
颜色
翻译
uploadprogress
DDEV
视图(views)
firewalld
kernel
快捷键
gzip
xdebug
错误
ckeditor
简介
电脑基础
源地址
C语言
mbstring
certbot
php扩展
WireGuard
邮件验证
git
apt
电子秤
httpd
压缩解压
表单
breadcrumb
AI
superfish
摄影
重定向
diff
网站备份
短信验证
tagclouds
java
docker
csharp
adsense
drupal9
电脑技巧
RSS
simple_adsense
版本号
算法
端口
youtube
JavaScript
cookie
badblocks
VUE
网站运营
计算机基础
RFID
gimp
nginx
form
mod_expires 模块
http验证
zip
curl
赚钱
标签优化
drupal11
ip
重定向,301
dns
netstat
maven
input
drupal 11
字段
npm
哈希值
wps
更多
RSS源
本站由阿里云强力驱动,幸运券优惠链接
Copyright © 2019 - 2021 你行网 版权所有  粤ICP备19072650号