<?xml 
version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
>

<channel xml:lang="fr">
	<title>vosinformations.com</title>
	<link>http://www.vosinformations.com/</link>
	
	<language>fr</language>
	<generator>SPIP - www.spip.net</generator>




<item xml:lang="fr">
		<title>01-Cr&#233;ation de l'entit&#233; de certification propre</title>
		<link>http://www.vosinformations.com/01-Creation-de-l-entite-de.html</link>
		<guid isPermaLink="true">http://www.vosinformations.com/01-Creation-de-l-entite-de.html</guid>
		<dc:date>2008-01-30T14:36:44Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>vince</dc:creator>


		<dc:subject>apache</dc:subject>
		<dc:subject>serveur</dc:subject>
		<dc:subject>https</dc:subject>
		<dc:subject>ssl</dc:subject>
		<dc:subject>openssl</dc:subject>
		<dc:subject>cl&#233;</dc:subject>

		<description>&lt;p&gt;L'utilisation d'un serveur s&#233;curis&#233;, utilisant un cryptage SSL/TLS suppose la possession d'une cl&#233; priv&#233;e et d'un certificat pour le serveur.&lt;/p&gt;

-
&lt;a href="http://www.vosinformations.com/-Certificat-de-securite-apache-et-.html" rel="directory"&gt;Certificat de s&#233;curit&#233; apache et param&#232;tres serveur&lt;/a&gt;

/ 
&lt;a href="http://www.vosinformations.com/+-apache-+.html" rel="tag"&gt;apache&lt;/a&gt;, 
&lt;a href="http://www.vosinformations.com/+-serveur-+.html" rel="tag"&gt;serveur&lt;/a&gt;, 
&lt;a href="http://www.vosinformations.com/+-https-+.html" rel="tag"&gt;https&lt;/a&gt;, 
&lt;a href="http://www.vosinformations.com/+-ssl-+.html" rel="tag"&gt;ssl&lt;/a&gt;, 
&lt;a href="http://www.vosinformations.com/+-openssl-+.html" rel="tag"&gt;openssl&lt;/a&gt;, 
&lt;a href="http://www.vosinformations.com/+-cle-+.html" rel="tag"&gt;cl&#233;&lt;/a&gt;

		</description>


 <content:encoded>&lt;div class='rss_chapo'&gt;&lt;p&gt;Dans un usage priv&#233;, une certification personne suffit.
&lt;br /&gt;La r&#233;alisation d'un site de production (commercial), obligera l'acquisition d'un certificat aupr&#232;s d'une autorit&#233; de certification reconnue (Verisign, Thawte, GeoTrust, etc)&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_texte'&gt;&lt;p&gt;Cr&#233;ation de la cl&#233; priv&#233;e, pour l'entit&#233; de certification, et d'un certificat X.509 priv&#233;.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Cr&#233;ation des r&#233;pertoires de stockage des certificats&lt;/h3&gt;
&lt;p&gt;Ils peuvent se cr&#233;er, se stocker n'importe o&#249; sur le syst&#232;me, sauf &#224; se souvenir de leur emplacement.
&lt;br /&gt;Ici, je cr&#233;e un r&#233;pertoire d&#233;di&#233; dans mon r&#233;pertoire utilisateur.
&lt;br /&gt;(L'utilisateur sera root pour toutes les manipulations)&lt;/p&gt; &lt;p&gt;dans /home/utilisateur/ :&lt;/p&gt;
&lt;span class='csfoo htmla'&gt;&lt;/span&gt;&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;mkdir ca&lt;br /&gt; chmod 0770 ca&lt;br /&gt; cd ca&lt;/code&gt;&lt;/div&gt;&lt;span class='csfoo htmlb'&gt;&lt;/span&gt;
&lt;h3 class=&quot;spip&quot;&gt;G&#233;n&#233;ration de la cl&#233; priv&#233;e&lt;/h3&gt;
&lt;p&gt;&lt;span class='csfoo htmla'&gt;&lt;/span&gt;&lt;code class='spip_code' dir='ltr'&gt;openssl genrsa -des3 -out ca-perso.key 2048&lt;/code&gt;&lt;span class='csfoo htmlb'&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Un mot de passe identique sera saisi deux fois, attention &#224; s'en souvenir !&lt;/strong&gt;&lt;/p&gt;
&lt;span class='csfoo htmla'&gt;&lt;/span&gt;&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;Generating RSA private key, 2048 bit long modulus&lt;br /&gt; .........................+++&lt;br /&gt; ..................+++&lt;br /&gt; e is 65537 (0x10001)&lt;br /&gt; Enter pass phrase for ca-perso.key:&lt;br /&gt; Verifying - Enter pass phrase for ca-perso.key:&lt;/code&gt;&lt;/div&gt;&lt;span class='csfoo htmlb'&gt;&lt;/span&gt;
&lt;h3 class=&quot;spip&quot;&gt;Cr&#233;ation d'un certificat X.509&lt;/h3&gt;
&lt;p&gt;A la ligne Common Name, indiquer le nom du serveur qui utilisera le certificat et sa cl&#233;.&lt;/p&gt; &lt;p&gt;&lt;span class='csfoo htmla'&gt;&lt;/span&gt;&lt;code class='spip_code' dir='ltr'&gt;openssl req -new -x509 -days 365 -key ca-perso.key -out ca-perso.crt&lt;/code&gt;&lt;span class='csfoo htmlb'&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;i&gt;N.B. : 365 est la dur&#233;e de validit&#233; en jours, en rajoutant un 0, le certificat est valable 10 ans, etc&lt;/i&gt;
&lt;br /&gt;&lt;strong&gt;Mot de passe pr&#233;c&#233;dent &#224; saisir&lt;/strong&gt;.&lt;/p&gt;
&lt;span class='csfoo htmla'&gt;&lt;/span&gt;&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;Enter pass phrase for ca-perso.key:&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) [AU]:FR &lt;br /&gt; State or Province Name (full name) [Some-State]:FRANCE&lt;br /&gt; Locality Name (eg, city) []:METZ&lt;br /&gt; Organization Name (eg, company) [Internet Widgits Pty Ltd]:vosinformations.com&lt;br /&gt; Organizational Unit Name (eg, section) []:certification@vosinformations.com&lt;br /&gt; Common Name (eg, YOUR name) []:vosinformations.com&lt;br /&gt; Email Address []:webmaster@vosinformations.com&lt;/code&gt;&lt;/div&gt;&lt;span class='csfoo htmlb'&gt;&lt;/span&gt;
&lt;hr class=&quot;spip&quot; /&gt;
&lt;p&gt;Pour afficher le certificat :&lt;/p&gt; &lt;p&gt;&lt;span class='csfoo htmla'&gt;&lt;/span&gt;&lt;code class='spip_code' dir='ltr'&gt;openssl x509 -in ca-perso.crt -text -noout&lt;/code&gt;&lt;span class='csfoo htmlb'&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_ps'&gt;&lt;p&gt;Placez le certificat de l'entit&#233; de certification &#224; l'abri.
&lt;br /&gt;Le mot de passe entr&#233; ici sera demand&#233; &#224; chaque cr&#233;ation de nouveau certificat.&lt;/p&gt;&lt;/div&gt;
		</content:encoded>


		

	</item>



</channel>

</rss>
