找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 71|回复: 0

OneinStack自动部署Let’s Encrypt证书

[复制链接]

3

主题

1

回帖

11

积分

新手上路

积分
11
发表于 2025-4-19 16:02:53 | 显示全部楼层 |阅读模式
Let's Encrypt是一个由电子前哨基金会、Mozilla基金会、Akamai、密歇根大学、思科联合发起的一个项目。它旨在为站长提供一个免费的、完全自动化的证书申请过程,从而让整个互联网都能享受到HTTPS加密。Let’s Encrypt的证书申请过程非常简单、安全、快速、自动化并且免费。Let’s Encrypt是一个中间CA,它的CA证书由IdenTrust签发。IdenTrust是一个Root CA,受到所有主流浏览器的信任。从2015年10月后,Let’s Encrypt的中间CA证书被chrome、Firefox、Microsoft Edge、Safari和Opera所信任。
最近官方做了调整,简化了获取证书的难度,并将项目名改为了certbot,以前叫letsencrypt。certbot可以自动化的申请,安装和更新证书。
OneinStack已经内置Let's Encryptvhost.sh绑定域名时自动申请、绑定、自动续期(默认90天)一步到位,教程如下:
安装[size=1.5]
    1. <div class="quote"><blockquote><li class="alt" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; font-family: inherit; font-style: inherit; margin-right: 35px; margin-left: 49px; padding-left: 10px; vertical-align: baseline; line-height: 18px; list-style-position: initial; list-style-image: initial;">wget http://mirrors.linuxeye.com/oneinstack.tar.gz</li><li class="" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; font-family: inherit; font-style: inherit; margin-right: 35px; margin-left: 49px; padding-left: 10px; vertical-align: baseline; line-height: 18px; list-style-position: initial; list-style-image: initial;">tar xzf oneinstack.tar.gz</li><li class="alt" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; font-family: inherit; font-style: inherit; margin-right: 35px; margin-left: 49px; padding-left: 10px; vertical-align: baseline; line-height: 18px; list-style-position: initial; list-style-image: initial;">cd oneinstack</li><li class="" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; border-width: 0px 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: dashed; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(204, 204, 204); border-image: initial; font-family: inherit; font-style: inherit; margin-right: 35px; margin-left: 49px; padding-left: 10px; vertical-align: baseline; line-height: 18px; list-style-position: initial; list-style-image: initial;">./addons.sh</li>
    复制代码



如下图:
出现绿色Let's Encrypt client install successfully!即表示certbot安装成功,如下图:
使用证书
vhost.sh绑定域名ssl选择y,Let's Encrypt选择y
[size=1.5]
  • ./vhost.sh

注意事项
  • 最新版oneinstack关闭Congratulations,默认跳过即成功
  • 绑定定域名后会自动在crontab添加相应自动续期脚本
  • 同一个ip在3小时内最多申请10个域名的证书
  • 同一个根域名在七天内,只能注册5个证书。同一个子域名注册或更新都是要计算次数的
Mon Jun 20 23:06:17 CST 2016

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|一起港湾 ( 青ICP备2025004122号-1 )

GMT+8, 2025-5-19 22:34 , Processed in 0.085213 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表