login about faq

How could i get a certificate from current user store with its private key? When i try to use a certificate to sign a document, an error occurs "no private key found"

asked Nov 03 '12 at 07:17

aristeo's gravatar image

aristeo
1222


(This question and answer apply to the Windows operating system. The "Current User Store" is a Windows registry-based certificate store commonly used by applications.)

The two most common causes are:

1) The certificate was never installed with the private key in the first place, and therefore no private key is available.

2) The certificate was installed with a private key, but the private key was marked as non-exportable, or there are other access permissions. (Chilkat internally directly implements PKCS7, so the private key needs to be "exported" to memory. However, if unable to do so, the Chilkat implementation on Windows will defer to the underlying Microsoft Crypto API to do the PKCS7 signing, which gets around the problem of "exporting" the private key.)

To get more information about the cause of the problem, please post the full contents of the LastErrorText.

link

answered Nov 05 '12 at 08:17

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

When i want to use a certificate in internet explorer (for example) a dialog shows to enter a password. How could i enter this password in chilkat? Thanks

(Nov 15 '12 at 17:33) aristeo

When i want to use a certificate in internet explorer (for example) a dialog shows to enter a password. How could i enter this password in chilkat? Thanks

link

answered Nov 15 '12 at 17:31

aristeo's gravatar image

aristeo
1222

The dialog probably shows because when the cert was imported from the PFX, an option was chosen for "high security", which means whenever the private key is accessed, it triggers the Windows OS to display a warning dialog. (See this: http://www.chilkatsoft.com/privateKeyIssues.asp )

Otherwise, the only time you'll need a password w/ Chilkat is to get the contents of a PFX. The Chilkat methods involving PFX's include a password argument.

link

answered Nov 15 '12 at 20:58

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:

×48
×10

Asked: Nov 03 '12 at 07:17

Seen: 4,135 times

Last updated: Nov 15 '12 at 20:58

powered by OSQA