Outils pour utilisateurs

Outils du site


informatique:linux:openvpn

Ceci est une ancienne révision du document !


OpenVPN

Serveur

Installation

apt install openvpn openssl easy-rsa

Configuration

Copie des utilitaires de certificat RSA:

cp -R /usr/share/easy-rsa/* /etc/openvpn/server/

renseigner les informations de l'autorité de certification:

cd /etc/openvpn/server

Initialisation de l'autorité de certification

Ajuster les variables:

vim vars

Insérer le contenu suivant:

export KEY_COUNTRY="US"
export KEY_PROVINCE="CA"
export KEY_CITY="SanFrancisco"
export KEY_ORG="myhost.mydomain"
export KEY_EMAIL="me@myhost.mydomain"
export KEY_OU="MyOrganizationalUnit"

Copier le fichier de conf openssl:

cp openssl-1.0.0.cnf openssl.cnf

Charger les variables:

. ./vars

Message attendu:

NOTE: If you run ./clean-all, I will be doing a rm -rf on /etc/openvpn/server/keys

Nettoyage de l'existant:

./clean-all

Création du certificat :

./build-ca

Resultat et réponses à donner:

Generating a RSA private key
.................+++++
..............+++++
writing new private key to 'ca.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) [US]:
State or Province Name (full name) [CA]:
Locality Name (eg, city) [SanFrancisco]:
Organization Name (eg, company) [myhost.mydomain]:
Organizational Unit Name (eg, section) [MyOrganizationalUnit]:
Common Name (eg, your name or your server's hostname) [zweb.zikossworld.com CA]:
Name [EasyRSA]:
Email Address [me@myhost.mydomain]:
informatique/linux/openvpn.1590749539.txt.gz · Dernière modification: 2020/05/29 12:52 par benoit