Skip to contentSkip to conversation

Inline certs/keys?

Openvpn-devel Stephen Borrill 3 participants 3 messages Jun 1, 2006 – Jun 2, 2006

lore
Share & tools
lore
#0 lore raw

Could the configuration file format be extended to allow inclusion of relevant certs and keys in-line? e.g. instead of "ca ca.crt" and then having a separate file, you have something like:

dev tun
proto udp
remote server 1194
ca-inline
-----BEGIN CERTIFICATE-----
[snip]
-----END CERTIFICATE-----
key-inline
-----BEGIN RSA PRIVATE KEY-----
[snip]
-----END RSA PRIVATE KEY-----

This would then allow you to have a single file which is easier to move about. Also, this means that you have less problems using a file on both Unix and Windows as you don't have issues locating files.

I can see that this breaks the parity between configuration options and their command line equivalents, but I think it would be very useful.

Signature · 1 line
Stephen
#1 lore raw
Quoted 1 line · Stephen Borrill

Could the configuration file format be extended to allow inclusion of relevant certs and keys in-line?

Already added in the 2.1-beta series. Snip from the changelog:

* Allow ca, cert, key, and dh files to be specified inline via XML-like syntax without needing to reference an explicit file.
For example:
<ca>
data here...
</ca>