I’m pretty new to IPFire as I’m getting an IT technician at the moment and my instructors don’t know how to work with IPFire and especially OpenVPN.
We installed IPFire on an APU (This is the one) and it works like a charm. Even the OpenVPN from outside works - on Linux and Android.
But here’s the thing: It does not work on Windows. I downloaded the .zip file with the .ovpn and the .p12 files in it and unpacked it.
With OpenVPN GUI, I imported the .ovpn file and installed the .p12 file directly into Windows by double clicking.
But when I want to connect to the network, I’m getting an error:
2023-01-20 15:48:54 WARNING: cannot stat file 'MA2.p12': Das System kann die angegebene Datei nicht finden. (errno=2)
Options error: --pkcs12 fails with 'MA2.p12': No such file or directory (errno=2)
Options error: Please correct these errors.
In English it means that the system can’t find the specified file.
Do you have any ideas how I can solve this problem?
I would just like to remind you that there are two editions/versions of the openvpn client available on openvpn.net .
the “official” version - OpenVPN Connect
the Community Edition version
These editions, differ in the way they are configured.
Differences in configuration, have been a source of trouble, reported and explained on the IPFire forum.
edit2
A while ago, I downloaded the Community version of OpenVPN-2.5.8-I604-amd64.msi and installed it on Windows 11.
It made a tunnel with the remote IPFire without any problem.
I was able to open the remote IPFire configuration page by entering the IP address of green0 without any problems.
On the client side I’m using the OpenVPN GUI from the Community Downloads from Community Downloads | OpenVPN like shown in the Wiki. Should be version 2.5.8 because it’s the last stable.
To the links you’ve posted: The one doesn’t help at all and the other link which was about laying the .p12 file to the directory where to config file is stored was a thing I already tried. Both the .p12 file and the .ovpn file are stored in C:\Program Files\OpenVPN\config.
You can always create an “insecure” package by not setting any password on the certificates. In the insecure package every piece of information needed is in clear text inside .ovpn file, hence the insecure characterization.
I cannot help you further as I do not have a windows OS, but I feel that you are having an unusual problem. You probably need to import the certificate from inside the OpenVPN Connect client. If you look how it works for android and iOS in my tutorial, I would assume it should be similar for windows.
Only the .ovpn file is imported into the configuration folder.
Below is the client log of the attempted connection to the server, after importing the .ovpn file.
2023-01-21 19:48:03 WARNING: cannot stat file 'openvpntest.p12': No such file or directory (errno=2)
Options error: --pkcs12 fails with 'openvpntest.p12': No such file or directory (errno=2)
2023-01-21 19:48:03 WARNING: cannot stat file 'ta.key': No such file or directory (errno=2)
Options error: --tls-auth fails with 'ta.key': No such file or directory (errno=2)
Options error: Please correct these errors.
Use --help for more information.
Below is the effect after adding only the ta.key file to the configuration folder.
2023-01-21 19:52:56 WARNING: cannot stat file 'openvpntest.p12': No such file or directory (errno=2)
Options error: --pkcs12 fails with 'openvpntest.p12': No such file or directory (errno=2)
Options error: Please correct these errors.
Use --help for more information.
Below is the effect after adding only the .p12 file to the configuration folder
2023-01-21 19:55:26 WARNING: cannot stat file 'ta.key': No such file or directory (errno=2)
Options error: --tls-auth fails with 'ta.key': No such file or directory (errno=2)
Options error: Please correct these errors.
Use --help for more information.
Below is the effect after adding both files (.p12 and ta.key) to the configuration folder.