<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://air.imag.fr/index.php?action=history&amp;feed=atom&amp;title=Let%27s_Encrypt</id>
	<title>Let&#039;s Encrypt - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://air.imag.fr/index.php?action=history&amp;feed=atom&amp;title=Let%27s_Encrypt"/>
	<link rel="alternate" type="text/html" href="https://air.imag.fr/index.php?title=Let%27s_Encrypt&amp;action=history"/>
	<updated>2026-06-11T15:29:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://air.imag.fr/index.php?title=Let%27s_Encrypt&amp;diff=45129&amp;oldid=prev</id>
		<title>Zoran.Chanet: Created page with &quot;= Auteur =  CHANET Zoran  = Introduction = Cette page s&#039;intéresse à la compréhension de Let&#039;s Encrypt, puis présente un tutoriel simple d&#039;utilisatio...&quot;</title>
		<link rel="alternate" type="text/html" href="https://air.imag.fr/index.php?title=Let%27s_Encrypt&amp;diff=45129&amp;oldid=prev"/>
		<updated>2019-03-04T08:22:42Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Auteur = &lt;a href=&quot;/index.php/User:Zoran.Chanet&quot; title=&quot;User:Zoran.Chanet&quot;&gt; CHANET Zoran&lt;/a&gt;  = Introduction = Cette page s&amp;#039;intéresse à la compréhension de Let&amp;#039;s Encrypt, puis présente un tutoriel simple d&amp;#039;utilisatio...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Auteur =&lt;br /&gt;
[[User:Zoran.Chanet | CHANET Zoran]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
Cette page s&amp;#039;intéresse à la compréhension de Let&amp;#039;s Encrypt, puis présente un tutoriel simple d&amp;#039;utilisation de Let&amp;#039;s Encrypt via le logiciel Certbot (dans le cas d&amp;#039;un serveur Apache installé sur un système d&amp;#039;exploitation Ubuntu. Pour d&amp;#039;autres utilisations, visitez [https://certbot.eff.org/ le site du logiciel].&lt;br /&gt;
&lt;br /&gt;
= Let&amp;#039;s Encrypt =&lt;br /&gt;
Let’s encrypt est une autorité mondiale de certification délivrant des certificats gratuits pour crypter les échanges HTTP, et donc passer de l’HTTP à l’HTTPS. Ces certificats doivent être placés à la racine de l’hôte, la mise en place de let’s encrypt peut donc nécessiter des droits SSH vers l’hôte. Afin de prouver que le demandeur de certificats possède bien le site, le protocole ACME est utilisé. Let’s encrypt encourage l’utilisation de Certbot pour une gestion simplifiée des certificats.&lt;br /&gt;
Les certificats délivrés par Let’s encrypt ont une validité de 90 jours. Il est donc nécessaire de les renouveler. Certbot propose un système de renouvellement automatique.&lt;br /&gt;
&lt;br /&gt;
= Certbot =&lt;br /&gt;
Ce tutoriel couvre l&amp;#039;installation et l&amp;#039;utilisation de Certbot dans le cas d&amp;#039;un serveur Apache installé sur un système d&amp;#039;exploitation Ubuntu. Les manipulations suivantes sont à faire sur le serveur. Il est donc nécessaire de pouvoir accéder au serveur et le modifier, par exemple par un accès SSH.&lt;br /&gt;
== Installation ==&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install software-properties-common&lt;br /&gt;
 sudo add-apt-repository universe&lt;br /&gt;
 sudo add-apt-repository ppa:certbot/certbot&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install certbot python-certbot-apache&lt;br /&gt;
&lt;br /&gt;
== Création du certificat ==&lt;br /&gt;
La commande suivante permet de générer le certificat et de configurer automatiquement une vhost Apache https utilisant ce certificat.&lt;br /&gt;
 sudo certbot --apache&lt;br /&gt;
Pour se contenter de générer le certificat (ce qui nécessite donc une configuration d&amp;#039;Apache manuelle), le commande suivante peut être utilisée.&lt;br /&gt;
 sudo certbot --apache certonly&lt;br /&gt;
&lt;br /&gt;
== Test du renouvellement automatique ==&lt;br /&gt;
 sudo certbot renew --dry-run&lt;br /&gt;
&lt;br /&gt;
== Renouveler les certificats ==&lt;br /&gt;
Il faut créer une tâche de fond qui lance certbot renew.&amp;lt;br&amp;gt;&lt;br /&gt;
Exemple (tous les jours à midi et minuit) : &lt;br /&gt;
 0 0,12 * * * python -c &amp;#039;import random; import time; time.sleep(random.random() * 3600)&amp;#039; &amp;amp;&amp;amp; certbot renew&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Astuces =&lt;br /&gt;
* Apache ne supporte pas d&amp;#039;appels à Listen qui se superposent (e.g. deux fois Listen 80)&lt;br /&gt;
* Il est nécessaire d&amp;#039;activer le mod_ssl d’Apache&lt;br /&gt;
* Les connexions https se feront sur le port 443 (il faut donc une vhost qui reçoive sur ce port, et qui copie celle qui reçoit sur 80 tout en renseignant le certificat)&lt;br /&gt;
* Avoir plusieurs vhost avec le même nom de serveur peut créer des soucis (e.g. 500)&lt;br /&gt;
* [https://www.ssllabs.com/ssltest/analyze.html www.ssllabs.com/ssltest/analyze.html] permet de tester le certificat et l’accès au site&lt;br /&gt;
* Le succès de la création du certificat provoquera le message suivant (domain.name étant le nom de domaine pour lequel le certificat a été produit)&lt;br /&gt;
 domain.name&lt;br /&gt;
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -&lt;br /&gt;
 Congratulations! You have successfully enabled https://domain.name&lt;br /&gt;
 &lt;br /&gt;
 You should test your configuration at:&lt;br /&gt;
 https://www.ssllabs.com/ssltest/analyze.html?d=domain.name&lt;br /&gt;
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -&lt;br /&gt;
 &lt;br /&gt;
 IMPORTANT NOTES:&lt;br /&gt;
  - Congratulations! Your certificate and chain have been saved at:&lt;br /&gt;
    /etc/letsencrypt/live/domain.name/fullchain.pem&lt;br /&gt;
    Your key file has been saved at:&lt;br /&gt;
    /etc/letsencrypt/live/domain.name/privkey.pem&lt;br /&gt;
    Your cert will expire on xxxx-xx-xx. To obtain a new or tweaked&lt;br /&gt;
    version of this certificate in the future, simply run certbot again&lt;br /&gt;
    with the &amp;quot;certonly&amp;quot; option. To non-interactively renew *all* of&lt;br /&gt;
    your certificates, run &amp;quot;certbot renew&amp;quot;&lt;br /&gt;
  - If you like Certbot, please consider supporting our work by:&lt;br /&gt;
 &lt;br /&gt;
    Donating to ISRG / Let&amp;#039;s Encrypt:   https://letsencrypt.org/donate&lt;br /&gt;
    Donating to EFF:                    https://eff.org/donate-le&lt;br /&gt;
&lt;br /&gt;
= Sources =&lt;br /&gt;
Site de Let&amp;#039;s Encrypt : [https://letsencrypt.org/ letsencrypt.org/]&amp;lt;br&amp;gt;&lt;br /&gt;
Site de Certbot : [https://certbot.eff.org/ certbot.eff.org/]&lt;br /&gt;
&lt;br /&gt;
= Liens utiles =&lt;br /&gt;
Image pour l&amp;#039;utilisation d&amp;#039;Apache et Certbot avec [[Docker]] : [https://github.com/BirgerK/docker-apache-letsencrypt github.com/BirgerK/docker-apache-letsencrypt]&lt;br /&gt;
Informations sur la configuration d&amp;#039;Apache pour tenir compte des certificats : [https://www.ssl247.fr/support/installer/apache www.ssl247.fr/support/installer/apache]&lt;/div&gt;</summary>
		<author><name>Zoran.Chanet</name></author>
	</entry>
</feed>