<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.anotherhomepage.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>Another Home Page Blog - Tag - SSL</title>
  <link>http://blog.anotherhomepage.org/</link>
  <atom:link href="http://blog.anotherhomepage.org/feed/tag/SSL/rss2" rel="self" type="application/rss+xml"/>
  <description>Born to be root !</description>
  <language>fr</language>
  <pubDate>Sat, 25 Oct 2008 10:14:41 +0200</pubDate>
  <copyright>Copyright 2005-2008 Nils Ratusznik</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>SSL à l'arrache !</title>
    <link>http://blog.anotherhomepage.org/post/2008/07/19/SSL-a-l-arrache</link>
    <guid isPermaLink="false">urn:md5:dd836de2b63bc1a3fc8da15408fdffe0</guid>
    <pubDate>Sat, 19 Jul 2008 15:42:00 +0200</pubDate>
    <dc:creator>Nils</dc:creator>
        <category>Linux et Logiciels libres</category>
        <category>SSL</category>    
    <description>&lt;p&gt;Vite fait, mal fait.&lt;/p&gt;    &lt;p&gt;Que ceux qui veulent comprendre aillent sur des pages plus complètes, ici je fais juste une petite récap.
Alors genre, on a un serveur sur laquelle on veut mettre du HTTPS ou du FTP-SSL. Pas envie d'avoir un &quot;dummy certificate&quot; et pas envie de passer 2 heures sur le sujet. Donc on copie-colle, on répond Yes à tout et c'est torché.&lt;/p&gt;


&lt;p&gt;D'abord, openssl.cnf. Il se trouve, selon les distributions, quelque part sous &lt;em&gt;/etc&lt;/em&gt;. Sur ma CentOS 5, il est dans &quot;/etc/pki/tls&quot;. On fait un petit vi dessus, et on met&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
dir             = /etc/pki/CA           # Where everything is kept
certs           = $dir/certs            # Where the issued certs are kept
crl_dir         = $dir/crl              # Where the issued crl are kept
database        = $dir/index.txt        # database index file.
new_certs_dir   = $dir/newcerts         # default place for new certs.
&lt;/pre&gt;


&lt;p&gt;Un peu plus bas, on modifie la durée de vie du certificat&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
default_days    = 3650                  # how long to certify for
&lt;/pre&gt;


&lt;p&gt;Et pour être encore plus feignasse&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
[ req_distinguished_name ]
countryName                     = Country Name (2 letter code)
countryName_default             = FR
countryName_min                 = 2
countryName_max                 = 2
stateOrProvinceName             = State or Province Name (full name)
stateOrProvinceName_default     = Ile de France
localityName                    = Locality Name (eg, city)
localityName_default            = Paris
0.organizationName              = Organization Name (eg, company)
0.organizationName_default      = Another Home Page
organizationalUnitName          = Organizational Unit Name (eg, section)
organizationalUnitName_default  = admin
commonName                      = Common Name (eg, your name or your server\'s hostname)
commonName_max                  = 64
emailAddress                    = Email Address
emailAddress_max                = 64
&lt;/pre&gt;


&lt;p&gt;OpenSSL peut faire des alias DNS pour un même certificat, alors on ajoute ça à la fin&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
[ALIASES]
DNS.1 = www.anotherhomepage.org
DNS.2 = mail.anotherhomepage.org
&lt;/pre&gt;


&lt;p&gt;Ensuite, on crée les répertoires et fichiers qui vont bien&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;root@thunderbluff:~ #cd /etc/pki &lt;/pre&gt;
&lt;pre&gt;root@thunderbluff:/etc/pki #mkdir -p CA/newcerts &lt;/pre&gt;
&lt;pre&gt;root@thunderbluff:/etc/pki #touch CA/index.txt &lt;/pre&gt;
&lt;pre&gt;root@thunderbluff:/etc/pki #echo 01 &amp;gt; CA/serial &lt;/pre&gt;


&lt;p&gt;Allez, on génère tout certificat de l'autorité, certificat serveur, clés...:&lt;/p&gt;
&lt;pre&gt;root@thunderbluff:/etc/pki #cd CA&lt;/pre&gt;
&lt;pre&gt;root@thunderbluff:/etc/pki/CA #openssl req -nodes -new -x509 -keyout thunderbluff-ca.key -out thunderbluff-ca.crt&lt;/pre&gt;
&lt;pre&gt;root@thunderbluff:/etc/pki/CA #openssl req -nodes -new -keyout thunderbluff.key -out thunderbluff.csr&lt;/pre&gt;
&lt;pre&gt;root@thunderbluff:/etc/pki/CA #openssl ca -cert aaron-ca.crt -keyfile thunderbluff-ca.key -out thunderbluff.crt -in thunderbluff.csr&lt;/pre&gt;


&lt;p&gt;Et puis pour Vsftpd ça peut aider&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;root@thunderbluff:/etc/pki/CA #cat thunderbluff.key thunderbluff.crt &amp;gt; thunderbluff.pem&lt;/pre&gt;


&lt;p&gt;Emballez c'est pesé&amp;nbsp;!&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.anotherhomepage.org/post/2008/07/19/SSL-a-l-arrache#comment-form</comments>
      <wfw:comment>http://blog.anotherhomepage.org/post/2008/07/19/SSL-a-l-arrache#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.anotherhomepage.org/feed/atom/comments/120</wfw:commentRss>
      </item>
    
  <item>
    <title>Installation de mod_gnutls sur CentOS 5</title>
    <link>http://blog.anotherhomepage.org/post/2008/05/24/Installation-de-mod_gnutls-sur-CentOS-5</link>
    <guid isPermaLink="false">urn:md5:694735a75d2dd804eee88b6d9b47fb67</guid>
    <pubDate>Sat, 24 May 2008 10:30:00 +0200</pubDate>
    <dc:creator>Nils</dc:creator>
        <category>Linux et Logiciels libres</category>
        <category>Apache</category><category>CentOS</category><category>Linux</category><category>mod_gnutls</category><category>mod_ssl</category><category>RPM</category><category>SSL</category><category>TLS</category>    
    <description>&lt;p&gt;petit lien à garder sous le coude au cas où&lt;/p&gt;    &lt;p&gt;Il y a quelques jours je voulais mettre plusieurs sites Internet en &lt;a href=&quot;http://fr.wikipedia.org/wiki/Http#HTTPS&quot; hreflang=&quot;fr&quot;&gt;HTTPS&lt;/a&gt;, sur le même serveur dédié. Or, ceci n'est (presque) pas possible en utilisant &lt;a href=&quot;http://www.modssl.org/&quot; hreflang=&quot;en&quot;&gt;mod_ssl &lt;/a&gt;avec &lt;a href=&quot;http://httpd.apache.org/&quot; hreflang=&quot;en&quot;&gt;Apache&lt;/a&gt;. Toutefois, ceci est rendu possible via l'utilisation de &lt;a href=&quot;http://www.outoforder.cc/projects/apache/mod_gnutls/&quot; hreflang=&quot;en&quot;&gt;mod_gnutls&lt;/a&gt;. Pour ceux qui ont CentOS 5, voici &lt;a href=&quot;http://www.hughesjr.com/content/view/20/29/&quot; hreflang=&quot;en&quot;&gt;un petit lien&lt;/a&gt; pour l'installer facilement. je crois que mod_gnutls est aussi disponible pour Mandriva. Sinon, il reste à compiler les sources &lt;img src=&quot;/themes/default/smilies/wink.png&quot; alt=&quot;;-)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.anotherhomepage.org/post/2008/05/24/Installation-de-mod_gnutls-sur-CentOS-5#comment-form</comments>
      <wfw:comment>http://blog.anotherhomepage.org/post/2008/05/24/Installation-de-mod_gnutls-sur-CentOS-5#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.anotherhomepage.org/feed/atom/comments/112</wfw:commentRss>
      </item>
    
</channel>
</rss>