OpenVPN / OpenVPN/openvpn

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

Open
#459 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Windows
Dominant language
C
Stars
14.6k
Forks
3.4k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source files, tests, or entry points. Reproduce the Windows config-auto case and compare how relative pkcs12 paths are resolved for config and config-auto; done means the relative certificate path works without requiring an absolute path.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.