OVH Community, votre nouvel espace communautaire.

Régénérer le SSL par défaut localhost.crt


Isendel
10/10/2014, 08h55
Bon juste pour info si d'autres ont le problème, OVH a identifié le problème et réalisé un guide : http://guide.ovh.com/CVE20140160Release3

En espérant que cela puisse en aider d'autres !

Isendel
02/10/2014, 10h32
Bonjour,

Lorsque le VPS est livré il est fourni avec un certificat SSL autosigné valide 1 an : localhost.crt dans le répertoire /etc/pki/tls/certs couplé à localhost.key dans le répertoire /etc/pki/tls/private

Bien sûr au bout d'un an certains programmes comme Outlook qui utilise ce certificat pour valider la connexion TLS d'envoi de mail commence à raler et redemande sans cesse la validation du certificat car celui-ci a expiré.

J'ai donc suivi la manip habituelle pour régénérer le certificat, dans /etc/pki/tls/certs j'ai fait :
openssl req -nodes -newkey rsa:2048 -keyout ../private/localhost.key -out localhost.csr
Generating a 2048 bit RSA private key
..................+++
.................................................. ...+++
writing new private key to '../private/localhost.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [XX]:FR
State or Province Name (full name) []EPARTEMENT
Locality Name (eg, city) [Default City]:VILLE
Organization Name (eg, company) [Default Company Ltd]:ENTREPRISE
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:vpsxxx.ovh.net
Email Address []:root@vpsxxx.ovh.net

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:

---

Ensuite j'ai fait :
openssl x509 -req -days 365 -in localhost.csr -signkey ../private/localhost.key -out localhost.crt
Signature ok
subject=/C=FR/ST=DEPARTEMENT/L=VILLE/O=ENTREPRISE/CN=vpsxxx.ovh.net/emailAddress=root@vpsxxx.ovh.net
Getting Private key


Le problème c'est que apache plante et plus aucun site ne fonctionne. Je ne comprends pas ce qui coince.