<?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; Kodono</title>
	<atom:link href="https://blog.kodono.info/wordpress/tag/ssl/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.kodono.info/wordpress</link>
	<description>Pour tous les technophiles</description>
	<lastBuildDate>Fri, 17 Jul 2020 07:18:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>
	<item>
		<title>Let&#8217;s Encrypt Certificate: how to remove a domain from a certname that contains several domains</title>
		<link>https://blog.kodono.info/wordpress/2020/07/17/lets-encrypt-certificate-how-to-remove-a-domain-from-a-certname-that-contains-several-domains/</link>
					<comments>https://blog.kodono.info/wordpress/2020/07/17/lets-encrypt-certificate-how-to-remove-a-domain-from-a-certname-that-contains-several-domains/#respond</comments>
		
		<dc:creator><![CDATA[Aymeric]]></dc:creator>
		<pubDate>Fri, 17 Jul 2020 07:18:13 +0000</pubDate>
				<category><![CDATA[Astuce]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Niveau expert]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[ssl]]></category>
		<guid isPermaLink="false">https://blog.kodono.info/wordpress/?p=2019</guid>

					<description><![CDATA[My server manages several websites with different domains using Apache. The first time I used Let&#8217;s Encrypt I followed the default command which has created one certname for ALL my domains. Now I want to remove just one domain from this certificate, and it becomes complicated to understand how to do it. The best solution [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>My server manages several websites with different domains using Apache. The first time I used Let&#8217;s Encrypt I followed the default command which has created one certname for ALL my domains.</p>
<p>Now I want to remove just one domain from this certificate, and it becomes complicated to understand how to do it. The best solution is to create a new certificate for each of my domains, and then to delete the original certname.</p>
<p>Let&#8217;s say my certname is called <code>www.example.com</code> and it contains the below domains:</p>
<ul>
<li>www.example.com</li>
<li>example.com</li>
<li>blog.example.com</li>
<li>other-example.com</li>
<li>www.other-example.com</li>
<li>my-other-domain.com</li>
<li>www.my-other-domain.com</li>
<li>api.test.com</li>
</ul>
<p>The one I don&#8217;t need anymore is <code>*.my-other-domain.com</code>.</p>
<p>First, we create a certificate individually for each domain that we want to keep:</p>
<pre class="brush:python">
certbot --apache --cert-name example.com -d example.com,www.example.com,blog.example.com
certbot --apache --cert-name other-example.com -d other-example.com,www.other-example.com
certbot --apache --cert-name test.com -d api.test.com
</pre>
<p><code>--cert-name</code> permits to give our own name to the certificate, and <code>-d</code> indicates which domains should be added to this certificate.</p>
<p>Then we can list all our certificates:</p>
<pre class="brush:bash">
certbot certificates
</pre>
<p>Using the above command you can find the <code>Certificate Path</code> and now we can delete our original certificate:</p>
<pre class="brush:bash">
certbot revoke --cert-path /etc/letsencrypt/live/www.example.com/fullchain.pem
</pre>
<p>You&#8217;re all set! All your domains should still have a correct certificate, and you revoked the ones you don&#8217;t need anymore.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.kodono.info/wordpress/2020/07/17/lets-encrypt-certificate-how-to-remove-a-domain-from-a-certname-that-contains-several-domains/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
