[xmlsec] problem with xmlSecCryptoAppKeysMngrCertLoadMemory

Martin Waite martin at datacash.com
Thu May 4 01:02:29 PDT 2006


Aleksey Sanin wrote:

>> It looks as if it is happy with the PEM image of the certificate, but
>> something else is preventing the certificate from being "adopted".
>>
> Yes... To the best of my knowledge, X509_STORE_add_cert() never
> fails... Can you run it under debugger and find out why it actually
> fails in this
> case?
>
I now know why it fails. 

If you attempt to load the same the same cert many times, for example if
you forget to increment your loop counter, X509_STORE_add_cert() refuses
to add the duplicate certificate.

Sorry for wasting your time.

regards,
Martin



More information about the xmlsec mailing list