<?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>DNS &#8211; ZZ &amp; Joa</title>
	<atom:link href="https://blog.znjoa.com/tag/dns/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.znjoa.com</link>
	<description>Work &#38; Life</description>
	<lastBuildDate>Mon, 17 Feb 2025 21:33:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://blog.znjoa.com/wp-content/uploads/2022/11/cropped-DALL·E-2022-11-23-19.39.49-USSR-style-poster-of-VR-and-AR-150x150.jpg</url>
	<title>DNS &#8211; ZZ &amp; Joa</title>
	<link>https://blog.znjoa.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">192961540</site>	<item>
		<title>How to Use Dynu DNS with acme.sh for SSL Management</title>
		<link>https://blog.znjoa.com/2025/02/17/how-to-use-dynu-dns-with-acme-sh-for-ssl-management/</link>
					<comments>https://blog.znjoa.com/2025/02/17/how-to-use-dynu-dns-with-acme-sh-for-ssl-management/#respond</comments>
		
		<dc:creator><![CDATA[Zz]]></dc:creator>
		<pubDate>Mon, 17 Feb 2025 19:49:40 +0000</pubDate>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[ACME]]></category>
		<category><![CDATA[acme.sh]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[letsencrypt]]></category>
		<category><![CDATA[SSL]]></category>
		<guid isPermaLink="false">https://www.znjoa.com/?p=314</guid>

					<description><![CDATA[Installing acme.sh Get Dynu DNS api Export environment variables Create alias Add below line to the&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Installing acme.sh</h2>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
sudo su -
mkdir .acme.sh
cd .acme.sh
curl https://get.acme.sh | sh -s email=your_email_address
</pre></div>


<h2 class="wp-block-heading">Get Dynu DNS api</h2>



<div class="wp-block-jetpack-markdown"><ul>
<li>Go to <a href="https://www.dynu.com/ControlPanel/APICredentials#">https://www.dynu.com/ControlPanel/APICredentials#</a></li>
<li><strong>Create <code>OAuth2</code> API credentials</strong>
<ul>
<li>Change credential type to <code>OAuth2</code></li>
<li>Click on the binoculars to show <code>Client ID</code> and <code>Secret</code></li>
</ul>
</li>
</ul>
</div>



<figure class="wp-block-image size-large is-resized"><img fetchpriority="high" decoding="async" width="1024" height="847" src="https://www.znjoa.com/wp-content/uploads/2025/02/Pasted-image-20250217195007-1024x847.png" alt="" class="wp-image-315" style="width:614px;height:auto" srcset="https://blog.znjoa.com/wp-content/uploads/2025/02/Pasted-image-20250217195007-1024x847.png 1024w, https://blog.znjoa.com/wp-content/uploads/2025/02/Pasted-image-20250217195007-300x248.png 300w, https://blog.znjoa.com/wp-content/uploads/2025/02/Pasted-image-20250217195007-768x635.png 768w, https://blog.znjoa.com/wp-content/uploads/2025/02/Pasted-image-20250217195007-1536x1271.png 1536w, https://blog.znjoa.com/wp-content/uploads/2025/02/Pasted-image-20250217195007-2048x1694.png 2048w, https://blog.znjoa.com/wp-content/uploads/2025/02/Pasted-image-20250217195007-800x662.png 800w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">Export environment variables</h2>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
export Dynu_ClientId=&quot;Client ID&quot;
export Dynu_Secret=&quot;Secret&quot;
</pre></div>


<div class="wp-block-jetpack-markdown"><p><strong>Important</strong></p>
<ul>
<li>if you have used the wrong client ID or secret previously and with the error <code>authentication failed</code>, you need to delete <em>the corresponding 2 lines</em> from the below file:</li>
</ul>
</div>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
~/.acme.sh/account.conf
</pre></div>


<div class="wp-block-jetpack-markdown"><ul>
<li>otherwise the exporting even the correct credentials will not work using <code>export ...</code></li>
</ul>
</div>



<h2 class="wp-block-heading"><strong>Create alias</strong></h2>



<p>Add below line to the end of your `~/.bashrc` file</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
alias acme.sh=~/.acme.sh/acme.sh
source ~/.bashrc
</pre></div>


<h2 class="wp-block-heading"><strong>Generating certificate</strong></h2>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
acme.sh --issue --dns dns_dynu -d domain.com -d www.domain.com
</pre></div>


<h2 class="wp-block-heading"><strong>Install the certificates</strong></h2>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
acme.sh --install-cert -d domain.com -d www.domain.com --key-file /etc/letsencrypt/live/domain.com/privkey.pem --fullchain-file /etc/letsencrypt/live/domain.com/fullchain.pem --reloadcmd &quot;service apache2 force-reload&quot;
</pre></div>


<h2 class="wp-block-heading">Validation</h2>



<ul class="wp-block-list">
<li>Restart apache</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
sudo service apache2 restart
</pre></div>


<ul class="wp-block-list">
<li>Open a browser, check the SSL certificate is updated</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.znjoa.com/2025/02/17/how-to-use-dynu-dns-with-acme-sh-for-ssl-management/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">314</post-id>	</item>
	</channel>
</rss>
