Bug 1214415 - Network Manager can not import a *.ovpn file with pkcs12
Summary: Network Manager can not import a *.ovpn file with pkcs12
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Network (show other bugs)
Version: Leap 15.5
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Jonathan Kang
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-19 17:07 UTC by Krasimir Ivanov
Modified: 2023-10-19 08:54 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
songchuan.kang: needinfo? (kiv)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Krasimir Ivanov 2023-08-19 17:07:05 UTC
Hello,
In my opinion, this is a regression, because in openSUSE 15.4 and earlier there was no such problem, and this very Network Manager bug was reported in 2019 and then resolved.
Here's what happens when trying to create an OpenVPN setup by importing an *.ovpn file containing the following line: "pkcs12 my_access.p12"
An error message was displayed and the OpenVPN connection was not established at all.
However, if I manually import the file and run the connection from the command line, the tunnel builds and works perfectly.
I suggest checking this out and I think the problem can be solved by using the source code from a previous version of Network Manager that does not exhibit this problem.
Comment 1 Jonathan Kang 2023-08-28 08:20:05 UTC
(In reply to Krasimir Ivanov from comment #0)
> Hello,
> In my opinion, this is a regression, because in openSUSE 15.4 and earlier
> there was no such problem, and this very Network Manager bug was reported in
> 2019 and then resolved.
> Here's what happens when trying to create an OpenVPN setup by importing an
> *.ovpn file containing the following line: "pkcs12 my_access.p12"
> An error message was displayed and the OpenVPN connection was not
> established at all.
> However, if I manually import the file and run the connection from the
> command line, the tunnel builds and works perfectly.
> I suggest checking this out and I think the problem can be solved by using
> the source code from a previous version of Network Manager that does not
> exhibit this problem.

Can you share a screenshot of the error message when importing a .ovpn file?
Comment 2 Krasimir Ivanov 2023-08-29 13:46:40 UTC
Please see description of this issue in Gnome from https://gitlab.gnome.org/GNOME/NetworkManager-openvpn/-/issues/83
This very problem is described in detail there.

I saw the problem on a customer computer and now I can't access that computer. Unfortunately, I don't have a chance to take a screenshot of the error message.

Then I found a way around the problem by commenting out the .ovpn file, deleting the line that says "pkcs12 my_access.p12" and putting a definition for a fake TLS. Then I manually changed the settings of the thus imported connection by specifying the location of the corresponding pkcs12 certificate in the NetworkManager GUI. After that, this connection worked normally and the customer works with it every day.
Comment 3 Jonathan Kang 2023-09-01 07:49:40 UTC
It turns out that the version we are shipping in Leap 15.5 doesn't include the upstream fix for this issue. I just backported the patch and here is the updated package. If possible, can you help test whether it works? To test the new package, install NetworkManager-openvpn and NetworkManager-openvpn-gnome from the following repo.

* https://download.opensuse.org/repositories/home:/JonathanKang:/branches:/openSUSE:/Leap:/15.5:/Update/standard
Comment 5 Jonathan Kang 2023-09-13 01:58:07 UTC
Closing this for now.

If you're still experiencing this issue with the fix, feel free to reopen this bug report.
Comment 6 Maintenance Automation 2023-10-19 08:54:59 UTC
SUSE-RU-2023:4123-1: An update that has one fix can now be installed.

Category: recommended (moderate)
Bug References: 1214415
Sources used:
SUSE Package Hub 15 15-SP4 (src): NetworkManager-openvpn-1.8.16-150400.3.3.2
SUSE Package Hub 15 15-SP5 (src): NetworkManager-openvpn-1.8.16-150400.3.3.2
SUSE Linux Enterprise Workstation Extension 15 SP4 (src): NetworkManager-openvpn-1.8.16-150400.3.3.2
SUSE Linux Enterprise Workstation Extension 15 SP5 (src): NetworkManager-openvpn-1.8.16-150400.3.3.2

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.