Bug 1218335 - Network manager does not allow smartcards to be configured with openconnect VPN
Summary: Network manager does not allow smartcards to be configured with openconnect VPN
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: 24
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Lubomir Rintel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-04 16:10 UTC by arif
Modified: 2017-08-08 11:57 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-08 11:57:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description arif 2015-05-04 16:10:22 UTC
Description of problem:

The Gnome GUI NetworkManger configuration app doesn't allow  PKCS11  smart-cards to be used as keys and certificates. The user is forced to choose existing files.


Version-Release number of selected component (if applicable):

NetworkManager-openconnect-0.9.10.2-1.fc21.x86_64



How reproducible:
100%


Steps to Reproduce:
1. Log in (Gnome 3)
2. choose Settings app from drop down at top left corner
3. choose Network settings
4. Add VPN (openconnect option).
5. Try to add smart card for User Certificate - forced to choose file and cannot enter correct setting pkcs11:manufacturer=piv_II;id=%01
6. Likewise for Private key

Actual results:

Unable to choose PKCS11 smart-card

Expected results:

To able to choose a smart-card

Additional info:

Openconect supports PCKS11 smart-cards perfectly: 

openconnect -v -c 'pkcs11:manufacturer=piv_II;id=%01' vpn.example.org

Comment 1 David Woodhouse 2015-05-05 12:12:26 UTC
Yes, we should be able to use the GCR widgets for selecting a certificate, They should show the certs available in the p11-kit-configured PKCS#11 tokens, allow you to choose from them, and give back a PKCS#11 URI according to RFC7512 which specifies the cert you chose.

This is all *generic* stuff, not really OpenConnect-specific. We need the same GUI widget behaviour for OpenVPN, for 802.1x, and for various other things in NetworkManager and elsewhere in GNOME. GCR does *part* of what we need, but not all of it.

This ties in with https://wiki.gnome.org/Projects/NetworkManager/PKCS11

I'm going to reassign this bug to NetworkManager rather than NM-OpenConnect.

For the OpenConnect case, as a workaround you can manually edit the file in /etc/NetworkManager/system-connections/xxx and set the usercert= (and userkey=) fields in the [vpn] section to be the 'pkcs11:...' URI you need.

Comment 2 arif 2015-05-06 12:28:29 UTC
Thanks David. For the record, it works perfectly when you just edit the config files, ie

 userkey=pkcs11:manufacturer=piv_II;id=%01;object-type=private 
 usercert=pkcs11:manufacturer=piv_II;id=%01;object-type=cert

I think NetworkManager needs to be restarted after the edit as this didn't work when I tried it previously. But it worked perfectly after a reboot.

Comment 3 Jirka Klimes 2015-06-01 11:57:11 UTC
(In reply to arif from comment #2)
> Thanks David. For the record, it works perfectly when you just edit the
> config files, ie
> 
>  userkey=pkcs11:manufacturer=piv_II;id=%01;object-type=private 
>  usercert=pkcs11:manufacturer=piv_II;id=%01;object-type=cert
> 
> I think NetworkManager needs to be restarted after the edit as this didn't
> work when I tried it previously. But it worked perfectly after a reboot.

NetworkManager doesn't have to be restarted, but you have to inform it that you changed the file and you want to reload it. You can do
$ sudo  nmcli con reload /etc/NetworkManager/system-connections/xxx

Comment 4 Fedora Admin XMLRPC Client 2015-08-18 14:59:00 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Fedora End Of Life 2015-11-04 10:46:38 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Jan Kurik 2015-12-02 19:55:06 UTC
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 7 Jan Kurik 2016-02-24 13:23:45 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 8 Fedora End Of Life 2017-07-25 18:54:40 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 9 Fedora End Of Life 2017-08-08 11:57:28 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.