xca icon indicating copy to clipboard operation
xca copied to clipboard

Export certificates for ovpn file

Open reetp opened this issue 4 months ago • 3 comments

It would be very handy indeed to have an export of the certificates to a ovpn type file.

Include the CA, Cert and Key, and a TA key as well would be even better :-)

Format is like this:

<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
<key>
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
</key>
<cert>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</cert>
<tls-auth>
-----BEGIN OpenVPN Static key V1-----
-----END OpenVPN Static key V1-----
</tls-auth>

Even just putting all three into one file so we can add the codes after would be a big help - it's a lot of cutting and pasting otherwise!

reetp avatar Feb 10 '24 14:02 reetp

Adding support for the static key needs a little more work, since it must be generated once as property of the CA and stay the same for all certs issued by the "openvpn" CA.

You may try the requested feature, implemented with 0a1a21608db191af11f79ff5bd85e895521e1625 from one of this builds

chris2511 avatar Feb 10 '24 23:02 chris2511

Fabulous and thanks!

I'll try a build later.

reetp avatar Feb 12 '24 12:02 reetp

Just built from develop and it looks fine!

reetp avatar Feb 12 '24 16:02 reetp