
{"id":570,"date":"2023-02-17T22:11:24","date_gmt":"2023-02-17T21:11:24","guid":{"rendered":"https:\/\/tty.tartux.net\/?p=570"},"modified":"2024-05-16T07:20:12","modified_gmt":"2024-05-16T06:20:12","slug":"creer-un-certificat-lets-encrypt","status":"publish","type":"post","link":"https:\/\/tty.tartux.net\/?p=570","title":{"rendered":"Cr\u00e9er un certificat Let's Encrypt (sur ubuntu)"},"content":{"rendered":"<p>Sur le serveur qui accueille le nom de domaine (pas forc\u00e9ment le site) :<\/p>\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"># apt install snapd<\/p>\n<\/blockquote>\n\n\n<p>ou pour v\u00e9rifier que snapd est\u00e0 jour :<\/p>\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"># snap install core; snap refresh core<\/p>\n<\/blockquote>\n\n\n<p>Pour enlever l'ancien certbot :<\/p>\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"># snap remove certbot<\/p>\n<\/blockquote>\n\n\n<p>Pour installer certbot :<\/p>\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"># snap install --classic certbot<\/p>\n<\/blockquote>\n\n\n<p>Pr\u00e9paration de la commande :<\/p>\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"># ln -s \/snp\/bin\/certbot \/usr\/bin\/certbot<\/p>\n<\/blockquote>\n\n\n<p>Choisir comment utiliser certbot :<br \/>\ncette premi\u00e8re option modifie directement la config apache pour utiliser le https (d\u00e9conseill\u00e9 pour un multisite)<\/p>\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"># certbot --apache<\/p>\n<\/blockquote>\n\n\n<p>la seconde option pour n'obtenir que le certificat :<\/p>\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"># certbot certonly --apache -d nomdedomaine<\/p>\n<\/blockquote>\n\n\n<p>Renouvellement du certificat apr\u00e8s avoir stopper apache :<\/p>\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"># certbot renew<\/p>\n<\/blockquote>\n\n\n<p>Pour int\u00e9grer le certificat au VirtualHost :<\/p>\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">SSLEngine on<br>\nSSLCertificateFile      \/etc\/ssl\/tartux.net\/fullchain.pem<br>\nSSLCertificateKeyFile   \/etc\/ssl\/tartux.net\/privkey.pem<br>\nInclude \/etc\/letsencrypt\/options-ssl-apache.conf<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Sur le serveur qui accueille le nom de domaine (pas forc\u00e9ment le site) : # apt install snapd ou pour v\u00e9rifier que snapd est\u00e0 jour : # snap install core; snap refresh core Pour enlever l'ancien certbot : # snap remove certbot Pour installer certbot : # snap install --classic certbot Pr\u00e9paration de la commande [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[165],"tags":[167,166],"class_list":["post-570","post","type-post","status-publish","format-standard","hentry","category-securite","tag-https","tag-ssl"],"_links":{"self":[{"href":"https:\/\/tty.tartux.net\/index.php?rest_route=\/wp\/v2\/posts\/570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tty.tartux.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tty.tartux.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tty.tartux.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tty.tartux.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=570"}],"version-history":[{"count":10,"href":"https:\/\/tty.tartux.net\/index.php?rest_route=\/wp\/v2\/posts\/570\/revisions"}],"predecessor-version":[{"id":737,"href":"https:\/\/tty.tartux.net\/index.php?rest_route=\/wp\/v2\/posts\/570\/revisions\/737"}],"wp:attachment":[{"href":"https:\/\/tty.tartux.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tty.tartux.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tty.tartux.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}