Bonjour,
J'ai installé la version wampserser 2.5 64 bits sans problème, icone verte, tout marche... jusqu'à configuration SSL !
Après des heures, impossible de lancer ssl sur wampserser 2.5 !
Voici toutes les données du problèmes en espérant votre aide :
A/ Configuration :
- windows 7 64bits pro
- wampserver 2.5 64 bits
- Apache : 2.4.9 MySQL : 5.6.17 PHP : 5.5.12 PHPMyAdmin : 4.1.14 SqlBuddy : 1.3.3 XDebug : 2.2.5
- hosts : 127.0.0.1 localhost
- Installation dans : D:\wamp2\wamp
- Parefeu et antivirus éteint pour les tests.
B/ Erreur au démarrage de wampserver :
- Icone orange
- Observateur d'évènement windows : Le service wampapache64 s’est arrêté avec l’erreur service particulière Fonction incorrecte.
- Erreur apache dans "apache_error.log" (message complet):
[Sun Mar 15 11:38:09.790256 2015] [ssl:info] [pid 4048:tid 752] AH01887: Init: Initializing (virtual) servers for SSL
[Sun Mar 15 11:38:09.791256 2015] [ssl:info] [pid 4048:tid 752] AH01914: Configuring server localhost:443 for SSL protocol
[Sun Mar 15 11:38:09.791256 2015] [ssl:debug] [pid 4048:tid 752] ssl_engine_init.c(311): AH01893: Configuring TLS extension handling
[Sun Mar 15 11:38:09.791256 2015] [ssl:emerg] [pid 4048:tid 752] AH02572: Failed to configure at least one certificate and key for localhost:443
[Sun Mar 15 11:38:09.791256 2015] [ssl:emerg] [pid 4048:tid 752] SSL Library Error: error:140A80B1:SSL routines:SSL_CTX_check_private_key:no certificate assigned
[Sun Mar 15 11:38:09.791256 2015] [ssl:emerg] [pid 4048:tid 752] AH02312: Fatal error initialising mod_ssl, exiting.
- Aucune erreur dans "ssl_error.log", "ssl_access.log", "ssl_request.log" : fichier vide (ce qui parait logique vu qu'apache ne lance pas le ssl)
C/ Procédure effectuée pour la création du certificat SSL :
1/ variable d'environement windows : OPENSSL_CONF=C:\OpenSSL-Win64\bin\openssl.cfg
2/ Windows -> exécuter -> cmd
- D:\wamp2\wamp\bin\apache\apache2.4.9\bin> openssl genrsa -aes256 -out private.key 2048 avec passphrase "pass"
- D:\wamp2\wamp\bin\apache\apache2.4.9\bin> openssl rsa -in private.key -out localhost.key pour retirer la passphrase "pass"
- D:\wamp2\wamp\bin\apache\apache2.4.9\bin> openssl req -new -x509 -nodes -sha1 -key localhost.key -out localhost.crt -days 36500 -config D:\wamp2\wamp\bin\apache\apache2.4.9\conf\openssl.cnf
3/ les fichiers localhost.key et localhost.crt copiés dans : "D:\wamp2\wamp\bin\apache\apache2.4.9\conf\ssl\
4/ Vérification du certificat et clé OK avec les commandes suivantes :
- D:\wamp2\wamp\bin\apache\apache2.4.9\bin> openssl x509 -in D:/wamp2/wamp/bin/apache/apache2.4.9/conf/ssl/localhost.crt -text
- D:\wamp2\wamp\bin\apache\apache2.4.9\bin> openssl rsa -in D:/wamp2/wamp/bin/apache/apache2.4.9/conf/ssl/localhost.key -check
- D:\wamp2\wamp\bin\apache\apache2.4.9\bin> openssl rsa -noout -modulus -in D:/wamp2/wamp/bin/apache/apache2.4.9/conf/ssl/localhost.key
Certificat et clé s'affiche correctement
5/ httpd.conf, httpd-vhosts.conf, et httpd-ssl.conf configuré pour le ssl d'après toutes les consignes données sur le net ( chemin d'accès certificat, clé, module, etc ...).
Après de multiples vérifications et recherches sur le net concernant, entre autre, l'erreur "AH02572: Failed to configure at least one certificate and key for localhost:443", je n'y arrive plus. Plus d'idée ... à sec !
Quelqu'un a déjà eu ce problème ? Erreur ou oubli de ma part ? Port 443 pas ouvert ???
Merci d'avance
Cordialement
hervé
J'ai installé la version wampserser 2.5 64 bits sans problème, icone verte, tout marche... jusqu'à configuration SSL !
Après des heures, impossible de lancer ssl sur wampserser 2.5 !
Voici toutes les données du problèmes en espérant votre aide :
A/ Configuration :
- windows 7 64bits pro
- wampserver 2.5 64 bits
- Apache : 2.4.9 MySQL : 5.6.17 PHP : 5.5.12 PHPMyAdmin : 4.1.14 SqlBuddy : 1.3.3 XDebug : 2.2.5
- hosts : 127.0.0.1 localhost
- Installation dans : D:\wamp2\wamp
- Parefeu et antivirus éteint pour les tests.
B/ Erreur au démarrage de wampserver :
- Icone orange
- Observateur d'évènement windows : Le service wampapache64 s’est arrêté avec l’erreur service particulière Fonction incorrecte.
- Erreur apache dans "apache_error.log" (message complet):
[Sun Mar 15 11:38:09.790256 2015] [ssl:info] [pid 4048:tid 752] AH01887: Init: Initializing (virtual) servers for SSL
[Sun Mar 15 11:38:09.791256 2015] [ssl:info] [pid 4048:tid 752] AH01914: Configuring server localhost:443 for SSL protocol
[Sun Mar 15 11:38:09.791256 2015] [ssl:debug] [pid 4048:tid 752] ssl_engine_init.c(311): AH01893: Configuring TLS extension handling
[Sun Mar 15 11:38:09.791256 2015] [ssl:emerg] [pid 4048:tid 752] AH02572: Failed to configure at least one certificate and key for localhost:443
[Sun Mar 15 11:38:09.791256 2015] [ssl:emerg] [pid 4048:tid 752] SSL Library Error: error:140A80B1:SSL routines:SSL_CTX_check_private_key:no certificate assigned
[Sun Mar 15 11:38:09.791256 2015] [ssl:emerg] [pid 4048:tid 752] AH02312: Fatal error initialising mod_ssl, exiting.
- Aucune erreur dans "ssl_error.log", "ssl_access.log", "ssl_request.log" : fichier vide (ce qui parait logique vu qu'apache ne lance pas le ssl)
C/ Procédure effectuée pour la création du certificat SSL :
1/ variable d'environement windows : OPENSSL_CONF=C:\OpenSSL-Win64\bin\openssl.cfg
2/ Windows -> exécuter -> cmd
- D:\wamp2\wamp\bin\apache\apache2.4.9\bin> openssl genrsa -aes256 -out private.key 2048 avec passphrase "pass"
- D:\wamp2\wamp\bin\apache\apache2.4.9\bin> openssl rsa -in private.key -out localhost.key pour retirer la passphrase "pass"
- D:\wamp2\wamp\bin\apache\apache2.4.9\bin> openssl req -new -x509 -nodes -sha1 -key localhost.key -out localhost.crt -days 36500 -config D:\wamp2\wamp\bin\apache\apache2.4.9\conf\openssl.cnf
3/ les fichiers localhost.key et localhost.crt copiés dans : "D:\wamp2\wamp\bin\apache\apache2.4.9\conf\ssl\
4/ Vérification du certificat et clé OK avec les commandes suivantes :
- D:\wamp2\wamp\bin\apache\apache2.4.9\bin> openssl x509 -in D:/wamp2/wamp/bin/apache/apache2.4.9/conf/ssl/localhost.crt -text
- D:\wamp2\wamp\bin\apache\apache2.4.9\bin> openssl rsa -in D:/wamp2/wamp/bin/apache/apache2.4.9/conf/ssl/localhost.key -check
- D:\wamp2\wamp\bin\apache\apache2.4.9\bin> openssl rsa -noout -modulus -in D:/wamp2/wamp/bin/apache/apache2.4.9/conf/ssl/localhost.key
Certificat et clé s'affiche correctement
5/ httpd.conf, httpd-vhosts.conf, et httpd-ssl.conf configuré pour le ssl d'après toutes les consignes données sur le net ( chemin d'accès certificat, clé, module, etc ...).
Après de multiples vérifications et recherches sur le net concernant, entre autre, l'erreur "AH02572: Failed to configure at least one certificate and key for localhost:443", je n'y arrive plus. Plus d'idée ... à sec !
Quelqu'un a déjà eu ce problème ? Erreur ou oubli de ma part ? Port 443 pas ouvert ???
Merci d'avance
Cordialement
hervé