Welington B. Souza wrote:

I am working in a project, and it need to use digital certification. Using the library opensc-pkcs11.dll I obtained to read the certificates, to sign and to verify the signature using pkcs11. However � necessary to sign using pkcs7, but searching the data of the digital certificate in the token (smart card). I tried several times without success to generate an envelope pkcs7 with OpenSSL using smart card to sign :(

I tried to use the NSS, but I it do not compile with my compiler. I am using Borland C++ Builder. I have a good skill of Java techologies and a litle of C++.

It would like a small example that made this, using a DLL.

If somebody will be able to help would be very been thankful me.

Do you have a PKCS 11 software module for your token? If so, and if your cert and key are properly formed, you should be able to send and receive all the signed and/or encrypted CMS messages you want using mozilla.

First step, register your PKCS11 module with mozilla browser.
Edit->Preferences
Under "Privacy & Security", choose "Certificates", then bonk the
"Manage Security Devices" button.
In the "Device Manager" window that opens, click the "Load" button.
In the "Load PKCS#11 Device" dialog, enter a name for your module,
and the file pathname for your PKCS11 module DLL.  Click OK.
Your module sohuld appear in the device manager.
You should be able to select it and "Log in" to your device.

Please post any follow up messages in netscape.public.mozilla.crypto

_______________________________________________
Mozilla-security mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-security

Reply via email to