Configuration #
- copy vars.example to vars
- define EASYRSA to something sensible, such as /usr/local/etc/easy-rsa
Procedure #
-
Initialize PKI
./easyrsa init-pki -
Building the CA
./easyrsa build-cacheck CA
openssl x509 -in /path/to/ca.crt -text -noout -
Generate an empty CRL(Certificate Revocation List)
./easyrsa gen-crlverify the CRL
openssl crl -noout -text -in /path/to/crl.pem -
Build server certificate Prevents one of your clent certificates from being used as a server in a Man-In-The_middle attack.
./easyrsa build-server-full movpn-serverVerify server certificate.
openssl x509 -noout -text -in /path/to/movpn-server.crt -
Build client certificate
./easyrsa build-client-full client1Verify client certificate.
openssl x509 -noout -text -in /path/to/client1.crt