all key in .ovpn

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Locked
ae007
OpenVpn Newbie
Posts: 1
Joined: Wed Jan 27, 2016 7:09 pm

all key in .ovpn

Post by ae007 » Wed Jan 27, 2016 7:17 pm

hi, i am new in openvpn, need you help me, how make all certs in one file .ovpn?thanks.

.crt
.crt
.crt

in one file .ovpn

thanks, thanks, thanks

Alex Morris
OpenVPN User
Posts: 28
Joined: Tue Mar 04, 2014 12:38 am

Re: all key in .ovpn

Post by Alex Morris » Sat Mar 12, 2016 12:46 pm

Like this:

Code: Select all

key-direction 1

<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
f745... rest of tls key
-----END OpenVPN Static key V1-----
</tls-auth>

<ca>
-----BEGIN CERTIFICATE-----
MIIG... rest of ca.crt data
-----END CERTIFICATE-----
</ca>

<cert>
-----BEGIN CERTIFICATE-----
MIIH... rest of client/user .crt data
-----END CERTIFICATE-----
</cert>

<key>
-----BEGIN PRIVATE KEY-----
MIIJ... rest of client/user .key data
-----END PRIVATE KEY-----
</key>
Replace the data between the "BEGIN" and "END" lines with the real data from your own files.

You don't have to use TLS-AUTH, but it provides one more layer of protection. If you use TLS-AUTH inline, then you must also have the "key-direction" line present.

Locked