I have tried to create an VPN server of my own. I have ca.crt
, server.crt
, and client.key
. How can I combine these into a single .opvn file?
Will it work if i change the extension of server.crt
to server.ovpn
?
Assuming you don't actually mean to "convert", but to "combine", "embed" or simply "use".
You can use the [inline]
directive inside your .ovpn config file.
There's a good example here: Embedding key/cert/ca into client config
ca [inline]
cert [inline]
key [inline]
tls-auth [inline] 1
<ca>
-----BEGIN CERTIFICATE-----
# insert base64 blob from ca.crt
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
# insert base64 blob from client1.crt
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
# insert base64 blob from client1.key
-----END PRIVATE KEY-----
</key>
<tls-auth>
-----BEGIN OpenVPN Static key V1-----
# insert ta.key
-----END OpenVPN Static key V1-----
</tls-auth>
.ovpn
or .conf
are common.
server.ovpn
isn't the certificate...it's the configuration file...