<?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>acme.sh 免费SSL - 广联在线</title>
	<atom:link href="https://www.abvnet.com/tag/acme-sh-%e5%85%8d%e8%b4%b9ssl/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.abvnet.com</link>
	<description>Abvnet</description>
	<lastBuildDate>Sun, 28 Nov 2021 12:20:24 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.abvnet.com/wp-content/uploads/2021/07/A-100x100.png</url>
	<title>acme.sh 免费SSL - 广联在线</title>
	<link>https://www.abvnet.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>用acme.sh申请免费SSL证书攻略</title>
		<link>https://www.abvnet.com/%e7%94%a8acme-sh%e7%94%b3%e8%af%b7%e5%85%8d%e8%b4%b9ssl%e8%af%81%e4%b9%a6%e6%94%bb%e7%95%a5/</link>
					<comments>https://www.abvnet.com/%e7%94%a8acme-sh%e7%94%b3%e8%af%b7%e5%85%8d%e8%b4%b9ssl%e8%af%81%e4%b9%a6%e6%94%bb%e7%95%a5/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 24 Nov 2021 03:32:52 +0000</pubDate>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[acme.sh 免费SSL]]></category>
		<guid isPermaLink="false">https://www.abvnet.com/?p=1299</guid>

					<description><![CDATA[<p>转载自广联在线微信公众号。请扫描本页底部二维码关注和查看原文。 本文依 github 上 acme.sh 文档&#8230;&#160;<a href="https://www.abvnet.com/%e7%94%a8acme-sh%e7%94%b3%e8%af%b7%e5%85%8d%e8%b4%b9ssl%e8%af%81%e4%b9%a6%e6%94%bb%e7%95%a5/" rel="bookmark">阅读更多 &#187;<span class="screen-reader-text">用acme.sh申请免费SSL证书攻略</span></a></p>
<p>The post <a href="https://www.abvnet.com/%e7%94%a8acme-sh%e7%94%b3%e8%af%b7%e5%85%8d%e8%b4%b9ssl%e8%af%81%e4%b9%a6%e6%94%bb%e7%95%a5/">用acme.sh申请免费SSL证书攻略</a> first appeared on <a href="https://www.abvnet.com">广联在线</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>转载自广联在线微信公众号。请扫描本页底部二维码关注和查看原文。</p>
<p>本文依 github 上 acme.sh 文档及网络公开资源整理，环境为阿里云ECS，网站部署环境为 CentOS 7 + nginx。</p>
<ul>
<li>安装 acme.sh</li>
</ul>
<section>
<pre data-lang="nginx"><code>wget -O -  https://get.acme.sh | sh -s email=my@example.com</code><br /><code># 为acme.sh开启t自动更新</code><br /><code>acme.sh --upgrade --auto-upgrade</code></pre>
</section>
<ul>
<li>在阿里云工作台“RAM访问控制”，创建一个新用户（假定网站域名解析在阿里云管理），分配Access Key 和 Secret，并授予域名管理的权限 AliyunDNSFullAccess 。暂时设置到网站主机的环境变量，为后面生成证书做准备。</li>
</ul>
<section>
<pre data-lang="javascript"><code>export Ali_Key="abcdefghijklmnopqrstuvwx"</code><br /><code>export Ali_Secret="ABCDEFGHIJKLMNOPQRSTUVWXYZ1234"</code></pre>
</section>
<ul>
<li>生成证书</li>
</ul>
<section>
<pre data-lang="css"><code>acme.sh --issue --dns dns_ali -d www.example.com --nginx</code></pre>
</section>
<p>    此时 acme.sh 会自动调用阿里云API 添加域名TXT记录，并在验证通过后生成SSL证书。</p>
<ul>
<li>安装证书。安装的目标路径和文件名应当与nginx的配置文件内容相对应。</li>
</ul>
<section>
<pre data-lang="sql"><code>acme.sh --install-cert -d www.example.com </code><br /><code>        --key-file /etc/nginx/ssl/www.example.com/www.example.com.key  </code><br /><code>        --fullchain-file /etc/nginx/ssl/www.example.com/www.example.com.cer </code><br /><code>        --reloadcmd "systemctl restart nginx"</code></pre>
</section>
<ul>
<li>检查crontab</li>
</ul>
<section>
<pre data-lang="nginx"><code>crontab -l</code></pre>
</section>
<p>    经过以上配置，acme.sh 就自动生成SSL证书并在网站生效了。并且acme.sh 添加的定时任务会检查SSL证书是否过期和自动更新。</p>
<p> </p>

<div class="wp-block-post-comments"></div>

<p></p><p>The post <a href="https://www.abvnet.com/%e7%94%a8acme-sh%e7%94%b3%e8%af%b7%e5%85%8d%e8%b4%b9ssl%e8%af%81%e4%b9%a6%e6%94%bb%e7%95%a5/">用acme.sh申请免费SSL证书攻略</a> first appeared on <a href="https://www.abvnet.com">广联在线</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.abvnet.com/%e7%94%a8acme-sh%e7%94%b3%e8%af%b7%e5%85%8d%e8%b4%b9ssl%e8%af%81%e4%b9%a6%e6%94%bb%e7%95%a5/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
