Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to specify complete path to pkcs12 when using "config-auto" #459

Open
larsen0815 opened this issue Nov 21, 2023 · 1 comment
Open
Labels

Comments

@larsen0815
Copy link

I have a working VPN connection that I now want to use with PLAP. It is configured with pkcs12 mycert.p12 and all files of that connection are in a sub-directory of C:\Users\myuser\OpenVPN\config\.

I have then moved that sub-directory into c:\Program Files\OpenVPN\config-auto. The GUI now shows

Waiting for the management interface to come up

while the log tells me

WARNING: cannot stat file 'mycert.p12': Das System kann die angegebene Datei nicht finden.   (errno=2)
Options error: --pkcs12 fails with 'mycert.p12': Das System kann die angegebene Datei nicht finden.   (errno=2)

Translates to "system cannot find the specified file"

To fix this problem, I have to specify the pkcs12 with the sub-directory like this:

pkcs12 "c:/Program Files/OpenVPN/config-auto/myconnection/mycert.p12"

There seems to be a difference in handling between the "normal" config and config-auto.

Version information:

  • OS: Windows 10
  • OpenVPN version: 2.6.7
@selvanair
Copy link
Contributor

Looks like a bug in openvpnserv2 -- working directory set to the root of the autostart_config_dir instead of that of the ovpn file.
OpenVPN/openvpnserv2#16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants