<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SSL证书 &#8211; Simon</title>
	<atom:link href="https://www.luisimon.com/tag/ssl%E8%AF%81%E4%B9%A6/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.luisimon.com</link>
	<description>blog</description>
	<lastBuildDate>Tue, 28 May 2024 07:13:02 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>

<image>
	<url>https://www.luisimon.com/wp-content/uploads/2019/09/cbrks-x5t4i-001.ico</url>
	<title>SSL证书 &#8211; Simon</title>
	<link>https://www.luisimon.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>使用certbot申请let&#8217;s encrypt的免费HTTPS证书（教程）</title>
		<link>https://www.luisimon.com/2021/04/22/487/</link>
		
		<dc:creator><![CDATA[Simon]]></dc:creator>
		<pubDate>Thu, 22 Apr 2021 14:21:31 +0000</pubDate>
				<category><![CDATA[技艺分享]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[SSL证书]]></category>
		<category><![CDATA[免费SSL]]></category>
		<guid isPermaLink="false">https://www.luisimon.xyz/?p=487</guid>

					<description><![CDATA[Let&#8217;s Encrypt由互联网安全研究小组（缩写ISRG）提供服务。主要赞助商包括电子前哨基金 ... <a title="使用certbot申请let&#8217;s encrypt的免费HTTPS证书（教程）" class="read-more" href="https://www.luisimon.com/2021/04/22/487/" aria-label="继续阅读使用certbot申请let&#8217;s encrypt的免费HTTPS证书（教程）">阅读更多</a>]]></description>
										<content:encoded><![CDATA[
<p><a href="https://www.luisimon.com/goto/tosl" rel="nofollow" data-type="URL" data-id="https://letsencrypt.org/">Let&#8217;s Encrypt</a>由互联网安全研究小组（缩写ISRG）提供服务。主要赞助商包括电子前哨基金会、Mozilla基金会、Akamai以及思科。</p>



<p><strong>环境: CentOS 7</strong></p>



<p>下面介绍通过DNS TXT记录认证方式申请证书 , 我们假设给 www.example.com 这个域名申请证书</p>



<p>首先我们到 <a href="https://www.luisimon.com/goto/smuy" rel="nofollow">https://certbot.eff.org</a> 安装通过网站指引安装certbot工具</p>



<p><strong>1.执行命令<em> (在CentOS上)</em></strong></p>



<pre class="wp-block-preformatted">#直接申请SSL证书 , 不需要部署web站点服务<br>certbot --manual --preferred-challenges dns certonly</pre>



<p><strong>2.按照命令行提示输入需要申请证书的域名(如: www.example.com) <em>(在CentOS上)</em></strong></p>



<p><strong>3.按照命令行提示在DNS (如:<a href="https://www.luisimon.com/goto/ceax" rel="nofollow">godaddy</a>等域名服务商) 中添加对应的TXT记录(如下图所示) <em>(在CentOS上)</em></strong></p>



<p>当然，其他的域名商操作也一样（如：阿里云/腾讯云/Cloudflare等）</p>



<figure class="wp-block-image size-large is-resized is-style-default"><img fetchpriority="high" decoding="async" width="885" height="312" src="https://www.luisimon.com/wp-content/uploads/2021/04/image.png" alt="" class="wp-image-488" style="width:770px;height:271px" srcset="https://www.luisimon.com/wp-content/uploads/2021/04/image.png 885w, https://www.luisimon.com/wp-content/uploads/2021/04/image-300x106.png 300w, https://www.luisimon.com/wp-content/uploads/2021/04/image-768x271.png 768w" sizes="(max-width: 885px) 100vw, 885px" /></figure>



<p>保存后 , 等待一分钟左右 , 主要是等待DNS更新</p>



<p><em>接下来我们使用以下命令查询TXT是否已经生效(不同地区或DNS服务器各有差异)</em></p>



<pre class="wp-block-preformatted">#在Windows中使用nslookup命令
nslookup -q=TXT www.example.com 
</pre>



<p><strong>4.接下来按命令行提示操作(按任意键继续) <em>(在CentOS上)</em></strong></p>



<p><strong>5.如无错误 , 即可顺利获得一个有效期为3个月(180天)的https证书</strong></p>



<p>按照提示信息里说明的证书存放路径 , 可以看到以下几个证书文件</p>



<p class="has-normal-font-size"><strong>一般是位于 /etc/letsencrypt/live/www.example.com 目录</strong></p>



<pre class="wp-block-preformatted">cert.pem
chain.pem
<strong>fullchain.pem #一般用这个
privkey.pem   #一般用这个</strong></pre>



<h1 class="wp-block-heading">letsencrypt 有什么限制</h1>



<h3 class="wp-block-heading">标准限制</h3>



<ul class="wp-block-list">
<li>同一个顶级域名下的二级域名，一周做多申请 20 个</li>



<li>一个域名一周最多申请 5 次</li>



<li>1 小时最多允许失败 5 次</li>



<li>请求频率需要小于 20 次/s</li>



<li>一个 ip 3 小时内最多创建 10 个账户</li>



<li>一个账户最多同时存在 300 个 pending 的审核</li>
</ul>



<h3 class="wp-block-heading">测试模式限制</h3>



<p>在 certbot 命令后加上 <code>--staging</code> 参数，限制更松一些，但不是正式证书</p>



<ul class="wp-block-list">
<li>同一个顶级域名下的二级域名，一周做多申请 30000 个</li>



<li>一个域名一周最多申请 30000 次</li>



<li>1 小时最多允许失败 60 次</li>



<li>一个 ip 3小时内最多创建 50 个账户</li>
</ul>



<p></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
