Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Sep 2016 11:44:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 212517] security/openconnect: PKCS#11 support
Message-ID:  <bug-212517-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212517

            Bug ID: 212517
           Summary: security/openconnect: PKCS#11 support
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: zi@FreeBSD.org
          Reporter: dwmw2@infradead.org
          Assignee: zi@FreeBSD.org
             Flags: maintainer-feedback?(zi@FreeBSD.org)

This should work:

# pkg install softhsm2
# softhsm2-util --init-token --slot 0 --label mytoken --pin 1234 --so-pin
12345678
# yes "" | openssl req -x509 -new -days 3650 -out cert.pem -nodes
# softhsm2-util --import privkey.pem --slot 0 --pin 1234 --label mykey --id=
 01
# openconnect -c cert.pem -k 'pkcs11:token=3Dmytoken;object=3Dmykey;pin-val=
ue=3D1234'
auth.startssl.com

It fails with=20
This version of OpenConnect was built without PKCS#11 support

Firstly, please build with libp11 support (or against GnuTLS) by default.
That'll fix the complete lack of PKCS#11 support. But then you will hit the
problem that the softhsm2 =E2=80=94 like the OpenSC package and others =E2=
=80=94 fails to
install a p11-kit module file to register itself to be available to
applications. Should we file separate bugs for those?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-212517-13>