{"id":2153,"date":"2022-07-07T10:03:32","date_gmt":"2022-07-07T08:03:32","guid":{"rendered":"https:\/\/blog.kodono.info\/wordpress\/?p=2153"},"modified":"2022-11-20T17:16:41","modified_gmt":"2022-11-20T16:16:41","slug":"add-a-domain-to-a-lets-encrypt-certificate","status":"publish","type":"post","link":"https:\/\/blog.kodono.info\/wordpress\/2022\/07\/07\/add-a-domain-to-a-lets-encrypt-certificate\/","title":{"rendered":"Add a domain to a Let&#8217;s Encrypt certificate"},"content":{"rendered":"<p>For Apache, in the folder <code>sites-available<\/code>, you need to create your <code>the-new-one.your-domain.com.conf<\/code> file. Then enable the new site with <code>a2ensite the-new-one.your-domain.com<\/code>.<\/p>\n<p>You can list all domains associated with a certificate:<\/p>\n<pre class=\"brush:bash\">certbot certificates<\/pre>\n<p>Now we add the SSL using <code>certbot<\/code>. You need to list all the existing domains and add the new one:<\/p>\n<pre class=\"brush:bash\">certbot --apache --cert-name your-domain.com -d first.your-domain.com,second.your-domain.com,third.your-domain.com,the-new-one.your-domain.com<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>For Apache, in the folder sites-available, you need to create your the-new-one.your-domain.com.conf file. Then enable the new site with a2ensite the-new-one.your-domain.com. You can list all domains associated with a certificate: certbot certificates Now we add the SSL using certbot. You need to list all the existing domains and add the new one: certbot &#8211;apache &#8211;cert-name [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","hide_page_title":"","footnotes":""},"categories":[15,170],"tags":[153,123],"class_list":["post-2153","post","type-post","status-publish","format-standard","hentry","category-astuce","category-english","tag-astuce","tag-english"],"_links":{"self":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/2153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/comments?post=2153"}],"version-history":[{"count":5,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/2153\/revisions"}],"predecessor-version":[{"id":2168,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/2153\/revisions\/2168"}],"wp:attachment":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/media?parent=2153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/categories?post=2153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/tags?post=2153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}