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

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


answered Jul 06 '12 at 18:59

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: Jul 06 '12 at 06:21

Seen: 1,490 times

Last updated: Jul 06 '12 at 18:59

Related questions

powered by OSQA