Page 1 of 1

Setting up a config file (CA ERROR)

Posted: Thu Sep 23, 2021 11:48 am
by matamor
Hello! I've been trying to setup an OpenVPN server, i was using a guide and everything was working just right, but when i had to connect the VPN it keeps failing, i have checked the log file and i get this message:

Code: Select all

Options error: Unrecognized option or missing or extra parameter(s) in server.ovpn:78: ca (2.4.8)
Use --help for more information.
Which is weird, either "ca" option is missing or it is missing parameters, here is the line of the error:

Code: Select all

# Any X509 key management system can be used.
# OpenVPN can also use a PKCS #12 formatted key file
# (see "pkcs12" directive in man page).
ca “C:\\Program Files\\OpenVPN\\config\\ca.crt”
cert “C:\\Program Files\\OpenVPN\\config\\matamor.crt”
key “C:\\Program Files\\OpenVPN\\config\\matamor.key”
I don't see anything wrong with it, all the files are in the right place:
Image
The image is in spanish but you can still see the files and the path is the right one.
I hope anyone knows what's actually going on, thanks for your time!

Re: Setting up a config file (CA ERROR)

Posted: Thu Sep 23, 2021 3:53 pm
by Pippin
Hi matamor,

Code: Select all

ca “C:\\Program Files\\OpenVPN\\config\\ca.crt”
cert “C:\\Program Files\\OpenVPN\\config\\matamor.crt”
key “C:\\Program Files\\OpenVPN\\config\\matamor.key”
Changing quotes to

Code: Select all

ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\matamor.crt"
key "C:\\Program Files\\OpenVPN\\config\\matamor.key"
is probably the solution.

Re: Setting up a config file (CA ERROR)

Posted: Thu Sep 23, 2021 7:54 pm
by matamor
I can't believe that was the problem... Thank you anyways, i would have never figured that out on my own.

Re: Setting up a config file (CA ERROR)

Posted: Thu Sep 23, 2021 8:13 pm
by TinCanTech
That's Windblows for you ..