<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
		<id>http://www.minetti.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Commandes%3AG%C3%A9n%C3%A9ration_de_certificats_SSL_serveur</id>
		<title>Commandes:Génération de certificats SSL serveur - Historique des versions</title>
		<link rel="self" type="application/atom+xml" href="http://www.minetti.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Commandes%3AG%C3%A9n%C3%A9ration_de_certificats_SSL_serveur"/>
		<link rel="alternate" type="text/html" href="http://www.minetti.org/mediawiki/index.php?title=Commandes:G%C3%A9n%C3%A9ration_de_certificats_SSL_serveur&amp;action=history"/>
		<updated>2026-05-04T13:04:22Z</updated>
		<subtitle>Historique pour cette page sur le wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://www.minetti.org/mediawiki/index.php?title=Commandes:G%C3%A9n%C3%A9ration_de_certificats_SSL_serveur&amp;diff=279&amp;oldid=prev</id>
		<title>Jp le 22 avril 2025 à 10:14</title>
		<link rel="alternate" type="text/html" href="http://www.minetti.org/mediawiki/index.php?title=Commandes:G%C3%A9n%C3%A9ration_de_certificats_SSL_serveur&amp;diff=279&amp;oldid=prev"/>
				<updated>2025-04-22T10:14:13Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='fr'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version du 22 avril 2025 à 10:14&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l45&quot; &gt;Ligne 45 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 45 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reportez-vous au chapitre [[Commandes:Gestion des certificats par l'autorité de certification#Signature d'un certificat|Gestion des certificats par l'autorité de certification]] pour procéder à la signature du certificat.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reportez-vous au chapitre [[Commandes:Gestion des certificats par l'autorité de certification#Signature d'un certificat|Gestion des certificats par l'autorité de certification]] pour procéder à la signature du certificat.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Pour ajouter un ou plusieurs '''subjectAltName''', on tape la commande suivante:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; openssl req -new -addext &amp;quot;subjectAltName=DNS:www.srv-minetti.org,DNS:ftp.srv-minetti.org&amp;quot; -key private/openldap.key -out openldap.req&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Réception du certificat signé ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Réception du certificat signé ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jp</name></author>	</entry>

	<entry>
		<id>http://www.minetti.org/mediawiki/index.php?title=Commandes:G%C3%A9n%C3%A9ration_de_certificats_SSL_serveur&amp;diff=153&amp;oldid=prev</id>
		<title>Jp : Page créée avec « == But == Créer un certificat x509 pour une application serveur.  == Étape préliminaire == Avant de pouvoir générer des certificats et dans le cas ou vous ne désirez... »</title>
		<link rel="alternate" type="text/html" href="http://www.minetti.org/mediawiki/index.php?title=Commandes:G%C3%A9n%C3%A9ration_de_certificats_SSL_serveur&amp;diff=153&amp;oldid=prev"/>
				<updated>2016-04-07T19:11:21Z</updated>
		
		<summary type="html">&lt;p&gt;Page créée avec « == But == Créer un certificat x509 pour une application serveur.  == Étape préliminaire == Avant de pouvoir générer des certificats et dans le cas ou vous ne désirez... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== But ==&lt;br /&gt;
Créer un certificat x509 pour une application serveur.&lt;br /&gt;
&lt;br /&gt;
== Étape préliminaire ==&lt;br /&gt;
Avant de pouvoir générer des certificats et dans le cas ou vous ne désirez pas faire signer vos certificats pas une autorité de certification reconnue (comme Verisign), il est impératif de disposer d'au moins un certificat pour notre autorité de certification (CA). Si cela, n'a pas déjà été fait, reportez-vous à la [[Commandes:Génération d'un certificat SSL de l'autorité de certification|génération du certificat de l'autorité de certification]].&lt;br /&gt;
&lt;br /&gt;
== Création d'une demande de certificat ==&lt;br /&gt;
* Se placer dans le répertoire '''/etc/pki/CA''' sous CentOS/RedHat/Fedora et '''/etc/ssl''' sous ubuntu:&lt;br /&gt;
* La première étape consiste à générer un couple clé privée/clé publique pour le certificat:&lt;br /&gt;
 openssl genrsa -out private/openldap-pw.key -des3 1024&lt;br /&gt;
&lt;br /&gt;
 Generating RSA private key, 1024 bit long modulus&lt;br /&gt;
 ..........++++++&lt;br /&gt;
 ..........................................++++++&lt;br /&gt;
 e is 65537 (0x10001)&lt;br /&gt;
* Pour éviter que l'application serveur soit obligé de demander la passphrase au démarrage, enlever la du certificat: &lt;br /&gt;
 openssl rsa -in private/openldap-pw.key -out private/openldap.key&lt;br /&gt;
 rm private/openldap-pw.key&lt;br /&gt;
* Restreindre l'accès à la biclé:&lt;br /&gt;
 chown root.ldap private/openldap.key&lt;br /&gt;
 chmod 640 private/openldap.key&lt;br /&gt;
* La seconde étape consiste à créer la demande de certificat en y intégrant notre couple clé privée/clé publique:&lt;br /&gt;
 openssl req -new -key private/openldap.key -out openldap.req&lt;br /&gt;
&lt;br /&gt;
 You are about to be asked to enter information that will be incorporated&lt;br /&gt;
 into your certificate request.&lt;br /&gt;
 What you are about to enter is what is called a Distinguished Name or a DN.&lt;br /&gt;
 There are quite a few fields but you can leave some blank&lt;br /&gt;
 For some fields there will be a default value,&lt;br /&gt;
 If you enter '.', the field will be left blank.&lt;br /&gt;
 -----&lt;br /&gt;
 Country Name (2 letter code) [FR]:&lt;br /&gt;
 State or Province Name (full name) [Herault]:&lt;br /&gt;
 Locality Name (eg, city) [Saint-Jean-de-Védas]:&lt;br /&gt;
 Organization Name (eg, company) [Minetti]:&lt;br /&gt;
 Organizational Unit Name (eg, section) []:Serveur LDAP&lt;br /&gt;
 Common Name (eg, your name or your server's hostname) []:ldap.srv.minetti.org&lt;br /&gt;
 Email Address []:root@minetti.org&lt;br /&gt;
 &lt;br /&gt;
 Please enter the following 'extra' attributes&lt;br /&gt;
 to be sent with your certificate request&lt;br /&gt;
 A challenge password []:&lt;br /&gt;
 An optional company name []:&lt;br /&gt;
On obtient le fichier '''openldap.req''' qu'on envoi à l'autorité de certification pour être signé.&lt;br /&gt;
&lt;br /&gt;
Reportez-vous au chapitre [[Commandes:Gestion des certificats par l'autorité de certification#Signature d'un certificat|Gestion des certificats par l'autorité de certification]] pour procéder à la signature du certificat.&lt;br /&gt;
&lt;br /&gt;
== Réception du certificat signé ==&lt;br /&gt;
Placer le nouveau certificat x509 signé dans '''/etc/pki/tls''' et restreindre son accès:&lt;br /&gt;
 chown root.ldap certs/openldap.pem&lt;br /&gt;
 chmod 640 certs/openldap.pem&lt;br /&gt;
&lt;br /&gt;
== Renouvellement d'une demande de certificat ==&lt;br /&gt;
Le renouvellement s'obtient en créant une nouvelle demande de certificat à partir de l'actuel certificat:&lt;br /&gt;
 openssl x509 -x509toreq -in certs/openldap.pem -signkey private/openldap.key -out openldap.req&lt;br /&gt;
On obtient le fichier '''openldap.req''' qu'on envoi à l'autorité de certification pour être signé.&lt;br /&gt;
&lt;br /&gt;
Reportez-vous au chapitre [[Commandes:Gestion des certificats par l'autorité de certification#Signature d'un certificat|Gestion des certificats par l'autorité de certification]] pour procéder à la signature du certificat.&lt;br /&gt;
&lt;br /&gt;
== Quelques commandes utiles ==&lt;br /&gt;
Pour visualiser le contenu d'un certificat:&lt;br /&gt;
 openssl x509 -purpose -in certs/certificat.pem -text -noout&lt;br /&gt;
&lt;br /&gt;
Pour supprimer le mot de passe d'un fichier clé:&lt;br /&gt;
 openssl rsa -in certificat.key -out certificat-sans-mot-de-passe.key&lt;/div&gt;</summary>
		<author><name>Jp</name></author>	</entry>

	</feed>