Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

probleme avec apache2 et ssl

1 réponse
Avatar
Eric Belhomme
Bonjour,

J'ai un serveur Apache2 qui tourne sur une Debian Sarge. Ce serveur
heberge plusieurs VirtualDomains

J'ai besoin d'ajouter un nouveau VirtualDomain, mais je veux qu'il ne
soit consultable qu'en https.

j'ai donc rajouté ssl :
#a2enmod ssl
puis j'ai créé un certificat avec make-ssl-cert, et j'ai ajouté à la fin
de /etc/apache2/mods-enabled/ssl.conf :

SSLEngine off
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:
+eNULL
SSLCertificateFile /etc/apache2/ssl/mondomaine.fr.crt
SSLCertificateKeyFile /etc/apache2/ssl/mondomaine.fr.crt


enfin j'ai déclaré mon domaine comme ceci :

<VirtualHost *>
SSLEngine on

Alias /squirrelmail /var/www/webmail
ServerName webmail.mondomaine.fr

DocumentRoot /var/www/webmail

<IfModule mod_rewrite.c>
<IfModule mod_ssl.c>
<Location />
RewriteEngine on
RewriteCond %{HTTPS} !^on$ [NC]
RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI} [L]
</Location>
</IfModule>
</IfModule>

<Directory />
php_flag register_globals off
Options Indexes FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>

LogLevel debug
CustomLog /var/log/apache2/access.webmail.log combined
ErrorLog /var/log/apache2/error.webmail.log

</VirtualHost>



Mais ce ne marche pas ! Quand je tente de me connecter en https, apache
coupe la connexion !
Voici ce que j'ai dans mes logs :

[Fri Sep 01 06:25:49 2006] [info] Loading certificate & private key of
SSL-aware server
[Fri Sep 01 06:25:49 2006] [debug] /home/skx/apache2-2.0.54/build-
tree/apache2/modules/ssl/ssl_engine_pphrase.c(469): unencrypted RSA
private key - pass phrase not required
[Fri Sep 01 06:25:50 2006] [info] Configuring server for SSL protocol
[Fri Sep 01 06:25:50 2006] [debug] /home/skx/apache2-2.0.54/build-
tree/apache2/modules/ssl/ssl_engine_init.c(405): Creating new SSL context
(protocols: SSLv2, SSLv3, TLSv1)
[Fri Sep 01 06:25:50 2006] [debug] /home/skx/apache2-2.0.54/build-
tree/apache2/modules/ssl/ssl_engine_init.c(588): Configuring permitted
SSL ciphers [ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:
+eNULL]
[Fri Sep 01 06:25:50 2006] [debug] /home/skx/apache2-2.0.54/build-
tree/apache2/modules/ssl/ssl_engine_init.c(716): Configuring RSA server
certificate
[Fri Sep 01 06:25:50 2006] [warn] RSA server certificate CommonName (CN)
`titou.atip.fr' does NOT match server name!?
[Fri Sep 01 06:25:50 2006] [debug] /home/skx/apache2-2.0.54/build-
tree/apache2/modules/ssl/ssl_engine_init.c(755): Configuring RSA server
private key
[Fri Sep 01 06:25:50 2006] [info] Loading certificate & private key of
SSL-aware server
[Fri Sep 01 06:25:50 2006] [debug] /home/skx/apache2-2.0.54/build-
tree/apache2/modules/ssl/ssl_engine_pphrase.c(469): unencrypted RSA
private key - pass phrase not required
[Fri Sep 01 06:25:50 2006] [info] Configuring server for SSL protocol
[Fri Sep 01 06:25:50 2006] [debug] /home/skx/apache2-2.0.54/build-
tree/apache2/modules/ssl/ssl_engine_init.c(405): Creating new SSL context
(protocols: SSLv2, SSLv3, TLSv1)
[Fri Sep 01 06:25:50 2006] [debug] /home/skx/apache2-2.0.54/build-
tree/apache2/modules/ssl/ssl_engine_init.c(588): Configuring permitted
SSL ciphers [ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:
+eNULL]
[Fri Sep 01 06:25:50 2006] [debug] /home/skx/apache2-2.0.54/build-
tree/apache2/modules/ssl/ssl_engine_init.c(716): Configuring RSA server
certificate
[Fri Sep 01 06:25:50 2006] [warn] RSA server certificate CommonName (CN)
`titou.atip.fr' does NOT match server name!?
[Fri Sep 01 06:25:50 2006] [debug] /home/skx/apache2-2.0.54/build-
tree/apache2/modules/ssl/ssl_engine_init.c(755): Configuring RSA server
private key

franchement, ca ne me dit pas grande chose...

--
Rico

1 réponse

Avatar
Nicolas George
Eric Belhomme wrote in message
:
[Fri Sep 01 06:25:50 2006] [warn] RSA server certificate CommonName (CN)
`titou.atip.fr' does NOT match server name!?


Je pense que le problème est en partie là.

Un autre problème, je ne sais pas s'il est lié, est que le serveur écoute
bien sur le port 443, mais répond en HTTP, pas en HTTPS.

D'habitude, quand je configure en HTTPS, j'écris quelque chose comme :

Listen *:443
<VirtualHost *:443>
SSLEngine on
...

Je ne sais pas si la précision du 443 est nécessaire.