login about faq

Ok, realy god to sign a string with A1 certificate. http://www.example-code.com/delphi/rsa_signWithPfx.asp

But, in A3 certificates, i cant exporta a privatekey.

pkey := cert.ExportPrivateKey() As CHILKATCERTIFICATELib_TLB.IPrivateKey;

How do it with chilkatRSA ? Tkz for your help.

asked Aug 21 '12 at 14:42

Bremen's gravatar image

Bremen
1111


I assume the A3 token is a hardware device? If so, then it's not possible to access the private key material directly. You wouldn't be able to use Chilkat RSA to create an RSA signature.

However, if you need to create a PKCS7 signature using a digital certificate on a MS Windows system w/ the A3 token, then you should be able to:

(1) Make sure the cert is installed in the Windows registry-based cert store. This is probably already true.

(2) Use ChilkatCrypt2 with CryptAlgorithm = "pki" to create a PKCS7 signature. Internally (on a Windows platform), if Chilkat finds the cert available but the private key is not exportable, then it uses the MS Crypto API to do the work. ("Exportable" means that the only code allowed to access and use the private key material is the Microsoft Crypto API -- even though it's simply an implementation of PKCS7 signatures just like Chilkat or other 3rd party vendors..)

link

answered Aug 22 '12 at 11:10

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×47
×21

Asked: Aug 21 '12 at 14:42

Seen: 1,984 times

Last updated: Aug 22 '12 at 11:10

powered by OSQA