Skip to contentSkip to conversation

PKCS#11 and easy-rsa

Openvpn-devel Ondra Medek 2 participants 3 messages Dec 30, 2005

lore
Share & tools
lore
#1 lore raw
Quoted 5 lines · Ondra Medek

Hi,

I've made easy-rsa 2.0 support for PKCS#11 (it makes a certificate from a token). If you are interested, then it is at

Hello,

Thank you for your patch.

In my view it lacks the following features:
1. Allow the user to specify his own PKCS#11 library.
2. Generate a new key.
3. Load the X.509 certificate into the token.

I though of implementing a similar interface but the lack of ability to supply engine-pre from openssl command line, and the lack of standard tool to generate keys and import a certificate, made me drop the issue.

Now when I think of it, issue#1 can be solved by a symbolic link, you can have the configuration point to a local symbolic link that is linked by the script to the requested provider.

And when I look at the new version of opensc (0.10.0) I see that they improved their pkcs11-tool significantly, so that maybe it can be used to generate keys and import certificate for every provider now.

Are you willing to adjust your implementation and fix these issues? I will do it when I have some free time.

Best Regards,
Alon Bar-Lev.

#2 lore raw

Hi,

Quoted 9 lines

In my view it lacks the following features:
1. Allow the user to specify his own PKCS#11 library.
2. Generate a new key.
3. Load the X.509 certificate into the token.

Now when I think of it, issue#1 can be solved by a symbolic link, you can have the configuration point to a local symbolic link that is linked by the script to the requested provider.

maybe LD_PRELOAD is another possibility ...

Quoted 7 lines

And when I look at the new version of opensc (0.10.0) I see that they improved their pkcs11-tool significantly, so that maybe it can be used to generate keys and import certificate for every provider now.

Are you willing to adjust your implementation and fix these issues? I will do it when I have some free time.

Yes, I already use pkcs11-tool for issue#2 and #3. I can try to do it.