login about faq

The AddCertificate command does not add the private key to the Windows Store. I use the LoadPfxFile command, with the correct password, and then the AddCertificate command. The certificate gets imported but without the private key. I want to import the private key also because i need SSL client authentication.

asked Jul 06 '12 at 06:21

Ad%20Bruijns's gravatar image

Ad Bruijns
1111


Correct. The Chilkat.CertStore.AddCertificate method only adds the certificate to the certificate store, but not the private key. Internally, it is calling the CryptoAPI function CertAddCertificateContextToStore (see http://msdn.microsoft.com/en-us/library/windows/desktop/aa376009%28v=vs.85%29.aspx )

The relatively undocumented Chilkat.Pfx class can be used to import a PFX (certs + private keys). See the reference documentation here: http://www.chilkatsoft.com/refdoc/csPFxRef.html

link

answered Jul 06 '12 at 18:59

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:

×1

Asked: Jul 06 '12 at 06:21

Seen: 1,151 times

Last updated: Jul 06 '12 at 18:59

Related questions

powered by OSQA