I use all other option as CLI parameters. I want to use this two as CLI parameters too so I do not need to create config file at all.
I tried --ca --pkcs12 --cert parameters but VPN connection always failed but I can establish VPN with these 2 config file.
Is there any example for these 2 parameters?
Thanks in advance.
Re: pkcs12 and ca config parameters as CLI options
Posted: Mon Apr 04, 2022 1:43 pm
by TinCanTech
The parameter to a command line option like --ca is /path/to/filename.foo
Re: pkcs12 and ca config parameters as CLI options
Posted: Mon Apr 04, 2022 6:35 pm
by openvpn_inc
Hi em,
I guess what you want is to do the whole thing in a command line, with none of --config nor --ca nor --cert as separate files? I don't think this is possible. You could perhaps try some bash(1) (or other script language) magic with creating special file descriptors.
You mentioned using two config files. If the goal is to consolidate those into one, sure, you can do that. No point in having inline sections in separate files, just concatenate them into newfile, and call them as:
Re: pkcs12 and ca config parameters as CLI options
Posted: Mon Apr 04, 2022 8:43 pm
by emrehan
Thanks for your answers,
I don't want to use --config file but I can use --ca or --cert or any other one. Currently I could use command line parameter all my configs but <pkcs12> and <ca>.
I use <pkcs12> parameter in config file, OR
I use <ca> parameter if I use smart card.
I actually need format of file which is used with --ca or --cert
Re: pkcs12 and ca config parameters as CLI options