networking:openvpn
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| networking:openvpn [2024/08/12 17:17] – created oscar | networking:openvpn [2026/12/01 03:55] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== OpenVPN Keys Generation ====== | ||
| - | Install easy-rsa package on your Debian system with the following command: | ||
| - | # apt install easy-rsa | ||
| - | Generate Certificates and Keys | ||
| - | OpenVPN relies on certificates and keys for client and server authentication. To generate these files, use the included easy-rsa script: | ||
| - | |||
| - | # make-cadir /tmp/certs | ||
| - | # cd /tmp/certs | ||
| - | |||
| - | Edit the vars file to configure Certificate Authority (CA) variables: | ||
| - | |||
| - | #nano ./vars | ||
| - | ------------------------------------------ | ||
| - | Uncomment: | ||
| - | | ||
| - | set_var EASYRSA_KEY_SIZE | ||
| - | set_var EASYRSA_REQ_COUNTRY | ||
| - | set_var EASYRSA_REQ_PROVINCE | ||
| - | set_var EASYRSA_REQ_CITY | ||
| - | set_var EASYRSA_REQ_ORG | ||
| - | set_var EASYRSA_REQ_EMAIL | ||
| - | set_var EASYRSA_REQ_OU | ||
| - | | ||
| - | Generate the required certificates and keys: | ||
| - | |||
| - | $ ./easyrsa init-pki | ||
| - | $ ./easyrsa build-ca | ||
| - | $ ./easyrsa gen-req server nopass | ||
| - | $ ./easyrsa sign-req server server | ||
| - | $ ./easyrsa gen-dh | ||
| - | $ openvpn --genkey --secret pki/ta.key | ||
| - | | ||
| - | | ||
networking/openvpn.1723483027.txt.gz · Last modified: by oscar
