Inline option in 2.1 beta; how to do it?
Quoted 2 lines
I don't see in the 2.1 how to use this feature. Looking at the source I'm guessing that it works by specifying the
....
OK, figured most of it out, and also believe I found a bug.
If anyone is curious Here are the options that the inlining feature supports:
ca
cert
dh
key
secret
tls-auth
What you do is _replace-_ the existing line with an xml-esque syntax like this:
Used to be:
ca "somecafile.crt"
Now is:
<ca>
the contents you
cut and pasted
out of the original
file; e.g.
"somecafile.crt",
above
</ca>
And the same for the other options listed.
The bug, however, is that if an option takes parameters beyond the file name, as secret and tls-auth do, there is not a mechanism (at least not that one I can find in the code) to convey that parameter. In my previous test I have a direction parameter on the tls-auth and it doesn't come through. So at present 'secret' and 'tls-auth' only work if you did not originally have a direction parameter. The other options I have all tested and they do work.
-Dave
...
Quoted 3 lines
The bug, however, is that if an option takes parameters beyond the file name, as secret and tls-auth do, there is not a mechanism (at least not that one I can find in the code) to
...
OK, just in case anyone's curious about this stuff, for those two options you can effectively do the same thing by adding the explicit key-direction option on a separate line.