> 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? Aleksey