Pages : 1
#1 Le 20/05/2007, à 21:54
- satyre
SSL: Private key not found
Bonjour à tous !
Je m'occupe en ce moment d'une installation d'un site de developpement pour un site web. Le site de developpement comprend 3 serveurs, un serveur sous 2003 WebEdition qui accueille apache et donc sur lequel se trouve les fichiers du site et la racine d'apache; un autre sous ubuntu qui heberge Mysql, et un dernier, sous ubuntu aussi qui sert de serveur SSH, SFTP, et qui doit aussi servir de serveur Subversion.
J'ai tout délocalisé pour des problèmes de puissances des machines... Ce n'est pas le plus simple, certes, mais c'est le plus efficace dans cette situation.
Le problème que je rencontre aujourd'hui, c'est pour l'installation du serveur Subversion. Je voudrais que svn soit accessible ou via svn+ssh ou via https.
J'ai regardé quelques tutoriaux pour la première solution dont celui ci :
http://jay.bertrand.free.fr/blog/index. … ebian.html
Je n'ai pas réussi à faire un serveur svn+ssh opérationnel, donc, je m'oriente vers la seconde solution qui est svn et apache en mode ssl. Je n'en suis pas encore à l'installation de subversion que j'ai un problème avec apache. J'ai installé les paquets, puis j'ai installé openssl et activé le module. J'ai généré la clé et j'ai créer un virtualHost qui écoute sur le port 443 et ajouté les deux lignes:
SSLEngine On
SSLCertificateFile /etc/apache2/apache2.pem
Seulement quand je lance Apache, il "failed", et lorsque je vais jeter un oeil dans /var/log/apache2/error.log j'ai Init: Private key not found
Je n'arrive vraiment pas à comprendre comment cela se fait qu'il n'arrive pas à trouver la clé privé, j'ai suivi plusieurs tutoriaux et tout à l'air d'etre à sa place...
Demandez moi n'importe quelle information de plus sur les configurations pour que vous puissiez m'apporter votre aide, je ne sais pas vraiment quoi mettre directement vu la complexité de la config ...
Merci d'avance à tous ceux qui ont une petite idée sur le sujet
Hors ligne
#2 Le 21/05/2007, à 00:02
- Uggy
Re : SSL: Private key not found
J'ai généré la clé
Dans quels répertoires sont les 2 clés ?
Hors ligne
#3 Le 21/05/2007, à 08:02
- satyre
Re : SSL: Private key not found
Dans quels répertoires sont les 2 clés ?
J'ai les deux fichiers apache2.pem et privkey.pem qui se situent dans /etc/apache2
j'ai fait cette commande pour générer les clés :
openssl req $@ -new -x509 -days 1065 -nodes -out /etc/apache2/apache2.pem
Hors ligne
#4 Le 21/05/2007, à 10:37
- Uggy
Re : SSL: Private key not found
Il y a un fichier "ssl_error_log" avec des infos dedans ?
Quels sont les attributs des 2 fichiers (commande stat) ?
Fait des copier/coller des commandes tapées et des sorties...
Hors ligne
#5 Le 21/05/2007, à 10:48
- satyre
Re : SSL: Private key not found
Quels sont les attributs des 2 fichiers
Fait des copier/coller des commandes tapées et des sorties...
satyre@ubuntu-Cron:/etc/apache2$ ls -l
total 68
-rw-r--r-- 1 root root 24180 2007-05-20 20:47 apache2.conf
-rw-r--r-- 1 root root 1444 2007-05-20 20:37 apache2.pem
drwxr-xr-x 2 root root 4096 2007-05-18 17:01 conf.d
-rw-r--r-- 1 root root 895 2007-01-15 19:11 envvars
-rw-r--r-- 1 root root 0 2007-05-18 17:01 httpd.conf
drwxr-xr-x 2 root root 12288 2007-05-20 20:07 mods-available
drwxr-xr-x 2 root root 4096 2007-05-20 20:11 mods-enabled
-rw-r--r-- 1 root root 12 2007-05-20 21:00 ports.conf
-rw-r--r-- 1 root root 887 2007-05-20 20:37 privkey.pem
drwxr-xr-x 2 root root 4096 2007-05-20 21:35 sites-available
drwxr-xr-x 2 root root 4096 2007-05-20 20:52 sites-enabled
Il y a un fichier "ssl_error_log" avec des infos dedans ?
satyre@ubuntu-Cron:/var/log/apache2$ ls -l
total 20
-rw-r----- 1 root adm 3250 2007-05-20 20:42 access.log
-rw-r----- 1 root adm 2360 2007-05-18 17:02 access.log.1
-rw-r----- 1 root adm 6581 2007-05-20 21:35 error.log
-rw-r----- 1 root adm 1230 2007-05-18 22:13 error.log.1
satyre@ubuntu-Cron:/etc/ssl$ ls -l
total 28
drwxr-xr-x 2 root root 12288 2007-05-20 20:35 certs
-rw-r--r-- 1 root root 9374 2007-03-06 02:57 openssl.cnf
drwx------ 2 root root 4096 2007-03-06 02:57 private
Je ne trouve pas de fichier ssl_error_log ...
Je n'ai pas compris non plus la commande "stat", j'ai commencé à me mettre à linux il y a quelques mois... Pardonne mon ignorance
Du coup, j'ai fait un ls -l, j'espére que c'est ce que tu voulais, hésites pas à me demander d'autres commandes et je te remercie de m'aider
Hors ligne
#6 Le 21/05/2007, à 10:58
- satyre
Re : SSL: Private key not found
Si ca peut etre utile, je te copie le fichier error.log d'apache
satyre@ubuntu-Cron:/etc/ssl$ sudo vi /var/log/apache2/error.log
[Sun May 20 20:22:23 2007] [notice] caught SIGTERM, shutting down
[Sun May 20 20:22:34 2007] [notice] Apache configured -- resuming normal operations
[Sun May 20 20:25:27 2007] [notice] SIGUSR1 received. Doing graceful restart
[Sun May 20 20:25:28 2007] [notice] Apache configured -- resuming normal operations
[Sun May 20 20:26:14 2007] [error] [client 82.229.159.87] Invalid method in request \x16\x03\x01
[Sun May 20 20:26:18 2007] [error] [client 82.229.159.87] Invalid method in request \x16\x03\x01
[Sun May 20 20:26:33 2007] [error] [client 82.229.159.87] Invalid method in request \x16\x03\x01
[Sun May 20 20:26:50 2007] [error] [client 82.229.159.87] Invalid method in request \x16\x03\x01
[Sun May 20 20:27:25 2007] [error] [client 192.168.2.102] Invalid method in request \x16\x03\x01
[Sun May 20 20:29:21 2007] [notice] SIGUSR1 received. Doing graceful restart
[Sun May 20 20:29:21 2007] [notice] Apache configured -- resuming normal operations
[Sun May 20 20:29:36 2007] [error] [client 192.168.2.102] File does not exist: /var/www/favicon.ico
[Sun May 20 20:29:36 2007] [error] [client 192.168.2.102] File does not exist: /var/www/favicon.ico
[Sun May 20 20:29:42 2007] [error] [client 192.168.2.102] Invalid method in request \x16\x03\x01
[Sun May 20 20:29:43 2007] [error] [client 192.168.2.102] File does not exist: /var/www/favicon.ico
[Sun May 20 20:29:51 2007] [error] [client 192.168.2.102] Invalid method in request \x16\x03\x01
[Sun May 20 20:31:42 2007] [error] [client 192.168.2.102] Invalid method in request \x16\x03\x01
[Sun May 20 20:31:48 2007] [error] [client 192.168.2.102] Invalid method in request \x16\x03\x01
[Sun May 20 20:32:03 2007] [notice] caught SIGTERM, shutting down
[Sun May 20 20:32:13 2007] [notice] Apache configured -- resuming normal operations
[Sun May 20 20:32:20 2007] [error] [client 192.168.2.102] Invalid method in request \x16\x03\x01
[Sun May 20 20:32:30 2007] [error] [client 192.168.2.102] Invalid method in request \x16\x03\x01
[Sun May 20 20:33:22 2007] [error] [client 192.168.2.102] Invalid method in request \x80L\x01\x03
[Sun May 20 20:33:34 2007] [error] [client 192.168.2.102] Invalid method in request \x80L\x01\x03
[Sun May 20 20:41:13 2007] [error] [client 192.168.2.102] Invalid method in request \x80L\x01\x03
[Sun May 20 20:41:34 2007] [notice] caught SIGTERM, shutting down
[Sun May 20 20:41:45 2007] [notice] Apache configured -- resuming normal operations
[Sun May 20 20:41:48 2007] [error] [client 192.168.2.102] Invalid method in request \x80L\x01\x03
[Sun May 20 20:42:06 2007] [error] [client 192.168.2.102] Invalid method in request \x80L\x01\x03
[Sun May 20 20:56:25 2007] [notice] caught SIGTERM, shutting down
[Sun May 20 20:57:32 2007] [error] Init: Private key not found
[Sun May 20 20:57:32 2007] [error] SSL Library Error: 218710120 error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag
[Sun May 20 20:57:32 2007] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun May 20 20:57:32 2007] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Sun May 20 20:57:32 2007] [error] SSL Library Error: 218734605 error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib
[Sun May 20 21:01:04 2007] [error] Init: Private key not found
[Sun May 20 21:01:04 2007] [error] SSL Library Error: 218710120 error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag
[Sun May 20 21:01:04 2007] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun May 20 21:01:04 2007] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Sun May 20 21:01:04 2007] [error] SSL Library Error: 218734605 error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib
[Sun May 20 21:12:24 2007] [error] Init: Private key not found
[Sun May 20 21:12:24 2007] [error] SSL Library Error: 218710120 error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag
[Sun May 20 21:12:24 2007] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun May 20 21:12:24 2007] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Sun May 20 21:12:24 2007] [error] SSL Library Error: 218734605 error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib
[Sun May 20 21:21:02 2007] [error] Init: Unable to read server certificate from file /etc/apache2/privkey.pem
[Sun May 20 21:21:02 2007] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun May 20 21:21:02 2007] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Sun May 20 21:21:09 2007] [error] Init: Unable to read server certificate from file /etc/apache2/privkey.pem
[Sun May 20 21:21:09 2007] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun May 20 21:21:09 2007] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Sun May 20 21:27:02 2007] [error] Init: Private key not found
[Sun May 20 21:27:02 2007] [error] SSL Library Error: 218710120 error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag
[Sun May 20 21:27:02 2007] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun May 20 21:27:02 2007] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Sun May 20 21:27:02 2007] [error] SSL Library Error: 218734605 error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib
[Sun May 20 21:35:22 2007] [error] Init: Private key not found
[Sun May 20 21:35:22 2007] [error] SSL Library Error: 218710120 error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag
[Sun May 20 21:35:22 2007] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun May 20 21:35:22 2007] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Sun May 20 21:35:22 2007] [error] SSL Library Error: 218734605 error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib
Hors ligne
#7 Le 21/05/2007, à 12:22
- Uggy
Re : SSL: Private key not found
- Oui les logs complets c'est mieux...
http://www.google.fr/search?hl=fr&q=%22encoding+routines%3Ad2i_ASN1_SET%3Abad+tag%22&btnG=Recherche+Google&meta=
- "man stat"
Hors ligne
#8 Le 22/05/2007, à 12:40
- satyre
Re : SSL: Private key not found
Merci Uggy pour ton aide mais je n'arrive toujours pas à rectifier le problème... j'ai regardé ta recherche google (je l'avais déjà faite), mais je n'y comprend rien ....
Hors ligne
#9 Le 16/05/2008, à 13:33
- Croftman
Re : SSL: Private key not found
Salut!
Ok ça fais longtemps mais si qqun à le même problème il a juste oublier la ligne :
SSLCertificateKeyFile /etc/apache2/ssl/server.key
Voilu
#10 Le 17/05/2008, à 12:38
- N3m3siS
Re : SSL: Private key not found
Salut!
Ok ça fais longtemps mais si qqun à le même problème il a juste oublier la ligne :
SSLCertificateKeyFile /etc/apache2/ssl/server.key
Voilu
Je confirme, bonne chance
Neuro : Ubuntu 10.10 4x64bits@2.53Ghz / RAM 4Go
Kenpachi : Kubuntu 10.10 64bits@2Ghz / RAM 2Go
Hors ligne
#11 Le 22/06/2008, à 16:07
- jiky1
Re : SSL: Private key not found
non moi j'ai bien indiqué les chemin du certificat et de la cléf et j'ai toujours une erreur quand je passe par ssl
error code : Invalid method in request \x16\x03\x01
mon virtual host m'a lair correctement configuré , le port pour le ssl est bien open, j'ai ajouté le nom du server pour le virtual host dans /etc/hosts ...
aidez moiiii
Hors ligne
#12 Le 22/06/2008, à 16:51
- jiky1
Re : SSL: Private key not found
je rajoute une piste qui est étrange :
mon port pr le ssl est le 999 et 998 pour le http
ces deux ports sont bien open, mais le https me retourne toujours l'erreur Code d'erreur : ssl_error_rx_record_too_long
pourtant en http://ip_du_server:999 j'accede a mon site alors que dans ma conf ce port sert pr le https ...
comme si le module ssl etait pas chargé ...
aidé moi
Dernière modification par jiky1 (Le 22/06/2008, à 16:53)
Hors ligne
#13 Le 09/12/2008, à 13:46
- eventpix
Re : SSL: Private key not found
Bonjour,
J'ai le même probleme:/
Je la rajoute ou la ligne SSLCertificateKeyFile /etc/apache2/ssl/server.key???
Dans quel fichier?
Merci d'avance,
Richard
#14 Le 09/12/2008, à 13:47
- eventpix
Re : SSL: Private key not found
Bonjour,
J'ai le même probleme:/
Je la rajoute ou la ligne SSLCertificateKeyFile /etc/apache2/ssl/server.key???
Dans quel fichier?
Merci d'avance,
Richard
#15 Le 09/12/2008, à 13:48
- eventpix
Re : SSL: Private key not found
Bonjour,
J'ai le même probleme:/
Je la rajoute ou la ligne SSLCertificateKeyFile /etc/apache2/ssl/server.key???
Dans quel fichier?
Merci d'avance,
Richard
#16 Le 09/12/2008, à 13:53
- eventpix
Re : SSL: Private key not found
Bonjour,
J'ai le même probleme:/
Je la rajoute ou la ligne SSLCertificateKeyFile /etc/apache2/ssl/server.key???
Dans quel fichier?
Merci d'avance,
Richard
Pages : 1