Bug 1172247 - RFE: Accept standard PKCS#11 URIs
Summary: RFE: Accept standard PKCS#11 URIs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: wpa_supplicant
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lubomir Rintel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1173552
Blocks: PKCS11
TreeView+ depends on / blocked
 
Reported: 2014-12-09 17:15 UTC by David Woodhouse
Modified: 2016-03-01 08:21 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-03-01 08:21:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description David Woodhouse 2014-12-09 17:15:30 UTC
It looks like wpa_supplicant can use keys from a PKCS#11 token. However, the example configuration at http://w1.fi/cgit/hostap/plain/wpa_supplicant/examples/openCryptoki.conf looks very odd.

It ought to be using p11-kit to know which PKCS#11 modules to load (or maybe just load p11-kit-proxy.so), and it ought to just take a simple PKCS#11 URI as a configuration option, instead of all that other stuff.

Comment 1 David Woodhouse 2014-12-09 21:57:55 UTC
FWIW here's a proof-of-concept patch to the OpenSSL PKCS#11 ENGINE to make it work properly: http://sourceforge.net/p/opensc/mailman/message/33132605/

Comment 2 David Woodhouse 2014-12-18 15:24:47 UTC
Patches at 
http://lists.shmoo.com/pipermail/hostap/2014-December/031550.html

With the engine_pkcs11 fixes from bug 1173552, this now works:

 client_cert="pkcs11:token=NSS%20Certificate%20DB;id=%01%7d%45%ee%34%e9%75%3d%1a%aa%fb%44%a4%03%05%fb%06%11%97%01;object-type=cert"
 private_key="pkcs11:token=NSS%20Certificate%20DB;id=%01%7d%45%ee%34%e9%75%3d%1a%aa%fb%44%a4%03%05%fb%06%11%97%01;object-type=private"
 pin="foobar"

Comment 3 David Woodhouse 2015-04-27 12:39:51 UTC
These patches are in the 2.4 release.

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

Comment 5 David Woodhouse 2016-03-01 08:21:24 UTC
I think if I assign this to Fedora 23 we can close it as fixed. This should all basically just work if you give a PKCS#11 URI to wpa_supplicant, I believe.

All we need is to fix NetworkManager to allow us to do so... :)


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