Subject: Importing hardware-generated keys was added in 6.0.2
BTW, Dave, I guess you are involved in development of this part of Lotus Notes, so I would like to tell you also, that we are experiencing serious problem with the unability of this client to accept hardware generated private key. Our law specifies that user have to have EXCLUSIVE access to the private key used to digitaly sign documents, because documents signed with certificate issued by our accredited CA are equal to hand signed documents according to the law of our country.
Currently we have to generate ID without recovery info, transfer it to a standalone PC, software generate a new key pair, get certificate from our CA, export the certificate from Windows store, import it to the Lotus Notes, move private key into smart card and then wipe entire hard drive of the standalone PC! Incredible work instead of a simple registration of existing hardware generated key on our hardware token!
That does sound like a painful process. Thankfully, you aren’t the first person to come forward with that complaint – we added the ability to “import” a key that was generated in hardware on the token to ND 6.0.2. As long as the RSA private key and the corresponding X.509 certificate are both on the token and have the same unique non-null CKA_ID value (as per the RSA Asymmetric Client Signing Profile in the PKCS#11 Conformance Profile Specification), you’ll be able to import that X.509 cert into your ID file and then use the corresponding RSA private key (that never leaves the hardware token, and so can never be recovered) on the token to perform signing and decryption in the secure hardware.
To perform this import through the GUI, open the User Security Panel, go to the My Identity//My Certificates pane, click on the “Get Certificates” button, and select “Import Internet Certificate From a Smartcard”.
To perform this import through the C API, check out the documentation (or just search this forum) for the SECManipulateSC API function.
In 6.0.2, the ID file needed to be locked with that token for the import to be permitted, but starting in 6.0.5/6.5.3, the import can be performed without first smartcard-enabling the ID file.
thank you for your prompt response. I have consulted this issue with manufacturer of the smart card solution (CryptoPlus, www.cryptoplus.cz) yesterday. They said this was not a bug but a feature.
They share the PKCS#11 label with the Windows CSP API driver and therefore they need this to be unique. This is the unique identifier of the key for them, regardless of API driver used to access the key.
That’s the first token that I’ve heard of that mandates a unique CKA_LABEL attribute. I would not be surprised if the CKA_ID attribute (which is expected but not mandated to be unique for any set of public key/private key/certificate) or a vendor-specific attribute were more commonly used for that purpose.
How do they deal with users changing the CKA_LABEL attribute of their objects? Many of the vendor-provided software packages that I’ve played with display and allow users to change the label on token objects. For that reason, we’ve been phasing out use of the CKA_LABEL attribute over time, but some dependencies on that attribute may still exist for exported (but not imported) keys in 7.0.
What country are you in? We’ve tested against a couple of European eID tokens, and, time and release schedule permitting, would be interested in adding another one to the list.
dave