login about faq

I'm using the C++ library version

I'm using the CkHttp component to send an http request using ssl connection. I set put_RequireSslCertVerify(true) to verify the server's certificates against root certificates contained in a PKCS12 truststore. The truststore seems to be valid since other applications are using it (google chrome, IE, and others). However CkCertStore doesn't load the file. The code i use to load the truststore is the following :

    CkCert* cert = NULL;
CkCertStore store;
CkTrustedRoots trustedRoots;

if(store.LoadPfxFile(trustestore, password))
    int count = store.get_NumCertificates();

    for(int i = 0; i < count; ++i)
        cert = store.GetCertificate(i);

            delete cert;

        sucess = true;

The password is valid and the error i get is the following :

ChilkatLog: LoadPfxFile: DllDate: Jul 15 2014 ChilkatVersion: UnlockPrefix: NONE Username: POSTE1392:Laval Architecture: Little Endian; 32-bit Language: Visual C++ 11.0 (32-bit) VerboseLogging: 0 pfxPath: C:Temptruststore.p12 importPfxData: pkcs12_loadAndParseDer: loadAndParseDerInner: verifyHmacIntegrity: saltNumBytes: 8 saltBase64: sweGnMHf0hY= numIterations: 2048 macHashOid: macStoredDigest: CB07 D527 E6BB 535F DF3D 9E5D A33B 29DC BD7B 0221 Failed to verify PFX HMAC with password. computedDigest: A312 79A6 45D9 7DF4 042A 6460 8B49 AF85 6C86 31F6 --verifyHmacIntegrity PFX/PKCS12 integrity verification failed. --loadAndParseDerInner --pkcs12_loadAndParseDer --importPfxData Failed. --LoadPfxFile --ChilkatLog


asked Sep 23 '15 at 11:00

Laval's gravatar image


I would like to add that if i use the LoadPemFile or the LoadPemStr methods it works perfectly. If make a PKCS12 truststore from the same certificates (the PEM ones), i get the error above.

The problem with pem files is that they are not encrypted.

(Sep 24 '15 at 13:15) Laval
Be the first one to answer this question!
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: Sep 23 '15 at 11:00

Seen: 1,515 times

Last updated: Sep 24 '15 at 13:15

powered by OSQA