MySQL : Différence entre versions

De Wiki NCad
Aller à : navigation, rechercher
(Page créée avec « == SSL == »)
 
(SSL)
Ligne 1 : Ligne 1 :
 
== SSL ==
 
== SSL ==
 +
 +
=== Création de la clé privée ===
 +
 +
* On se place dans le dossier '''/etc/ssl/private''' qui contient les clés et certificats privées :
 +
 +
{{ Box Concole | objet=cd /etc/ssl/private }}
 +
 +
* On génère la clé privée :
 +
 +
{{ Box Concole | objet=sudo openssl genrsa -out mysql.key 2048 }}
 +
 +
Cette clé va nous permettre de signer nos propres certificats.
 +
 +
=== Création du certificat auto-signé ===
 +
 +
* On lance la création de certificat auto-signé :
 +
 +
{{ Box Concole | objet=openssl req -new -x509 -nodes -days 500 -key mysql.key -out mysql.crt<br />
 +
<font color=grey>You are about to be asked to enter information that will be incorporated<br />
 +
into your certificate request.<br />
 +
What you are about to enter is what is called a Distinguished Name or a DN.<br />
 +
There are quite a few fields but you can leave some blank<br />
 +
For some fields there will be a default value,<br />
 +
If you enter '.', the field will be left blank.<br />
 +
- - - --<br /></font>
 +
Country Name (2 letter code) [AU]:FR<br />
 +
State or Province Name (full name) [Some-State]:Lunan<br />
 +
Locality Name (eg, city) []:Lunan<br />
 +
Organization Name (eg, company) [Internet Widgits Pty Ltd]:NCad Network<br />
 +
Organizational Unit Name (eg, section) []:Intranet Goulouxiou<br />
 +
Common Name (e.g. server FQDN or YOUR name) []:10.0.0.47<br />
 +
Email Address []:tech@ncad.fr }}

Version du 4 février 2014 à 17:15

SSL

Création de la clé privée

  • On se place dans le dossier /etc/ssl/private qui contient les clés et certificats privées :

Modèle:Box Concole

  • On génère la clé privée :

Modèle:Box Concole

Cette clé va nous permettre de signer nos propres certificats.

Création du certificat auto-signé

  • On lance la création de certificat auto-signé :

Modèle:Box Concole