<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.nozav.org/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>Humus numericus - apache</title>
  <link>http://blog.nozav.org/</link>
  <atom:link href="http://blog.nozav.org/feed/tag/apache/rss2" rel="self" type="application/rss+xml"/>
  <description></description>
  <language>fr</language>
  <pubDate>Tue, 05 Aug 2008 19:29:48 +0200</pubDate>
  <copyright>Documents sous licence Creative commons</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Générer un certificat SSL auto-signé pour Apache</title>
    <link>http://blog.nozav.org/post/2008/05/14/Generer-un-certificat-SSL-auto-signe-pour-Apache</link>
    <guid isPermaLink="false">urn:md5:6a864aebd5e5847037c19029848727db</guid>
    <pubDate>Wed, 14 May 2008 11:27:00 +0200</pubDate>
    <dc:creator>Juba</dc:creator>
        <category>Linux, Debian, etc.</category>
        <category>apache</category><category>linux</category><category>ssl</category><category>sysadmin</category>    
    <description>    &lt;p&gt;D'abord on génère une clé non chiffrée sur disque (pour éviter d'avoir à saisir un mot de passe à chaque redémarrage d'Apache)&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
# openssl genrsa -out mykey.key 1024
&lt;/pre&gt;


&lt;p&gt;Ensuite on crée un certificat signé avec cette clé&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
# openssl req -new -x509 -days 365 -key mykey.key -out mycert.crt
&lt;/pre&gt;


&lt;p&gt;Répondre à l'ensemble des questions posées. Le nom de la machine doit être donné en réponse à &lt;em&gt;Common Name&lt;/em&gt;. On peut utiliser un &lt;em&gt;wildcard&lt;/em&gt; (joker) du type &lt;code&gt;*.example.com&lt;/code&gt; pour que le certificat s'applique à un ensemble de sous-domaines.&lt;/p&gt;


&lt;p&gt;Ensuite, dans Apache, modifier le fichier de définition du &lt;em&gt;VirtualHost&lt;/em&gt; qui va bien&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
NameVirtualHost *:443
&amp;lt;VirtualHost *:443&amp;gt;

        SSLEngine on
        SSLCertificateFile    /etc/ssl/mycert.crt
        SSLCertificateKeyFile /etc/ssl/mykey.key
        SSLVerifyClient none

        [etc., etc.]

&amp;lt;/VirtualHost&amp;gt;
&lt;/pre&gt;</description>
    
    
    
          <comments>http://blog.nozav.org/post/2008/05/14/Generer-un-certificat-SSL-auto-signe-pour-Apache#comment-form</comments>
      <wfw:comment>http://blog.nozav.org/post/2008/05/14/Generer-un-certificat-SSL-auto-signe-pour-Apache#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.nozav.org/feed/rss2/comments/360</wfw:commentRss>
      </item>
    
</channel>
</rss>