Criar certificado.

Neste exemplo vamos criar um certificado para uma unidade chamada parkbrasilia

De acordo com a distribuição entrar no diretório:

(Mandriva) /usr/share/doc/openvpn-2.0.5/easy-rsa
(SuSe)     /usr/share/doc/packages/openvpn/easy-rsa
Digitar o comando:
[root@srv01 easy-rsa]# ./build-key parkbrasilia
Responder as perguntas:
Generating a 1024 bit RSA private key
.......................................................................++++++
....................++++++
writing new private key to 'parkbrasilia.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) [BR]:[Enter]
State or Province Name (full name) [DF]:[Enter]
Locality Name (eg, city) [Brasilia]:[Enter]
Organization Name (eg, company) [Bluetree Parkbrasilia]:[Enter]
Organizational Unit Name (eg, section) []:parkbrasilia
Common Name (eg, your name or your server's hostname) []:parkbrasilia
Email Address [cpd.brasilia@bluetree.com.br]:[Enter]

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:[Enter]
An optional company name []:[Enter]
Using configuration from /etc/openvpn/openssl.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName           :PRINTABLE:'BR'
stateOrProvinceName   :PRINTABLE:'DF'
localityName          :PRINTABLE:'Brasilia'
organizationName      :PRINTABLE:'Bluetree Parkbrasilia'
organizationalUnitName:PRINTABLE:'parkbrasilia'
commonName            :PRINTABLE:'parkbrasilia'
emailAddress          :IA5STRING:'cpd.brasilia@bluetree.com.br'
Certificate is to be certified until Mar  5 14:53:36 2017 GMT (3650 days)
Sign the certificate? [y/n]:y


1 out of 1 certificate requests certified, commit? [y/n]y
Write out database with 1 new entries
Data Base Updated
IP
3.236.51.151