Hello all, I've used the PKCS12_parse( ) function to obtain a stack of CA certificates from a PKCS12 buffer. Now I'd like to load these certificates as trusted CAs in my SSL_CTX object. My first attempt at this goes something like:
 
  /* And add the CAs to our trusted stack */
  cert_store = SSL_CTX_get_cert_store(ctx);
  X509_STORE_CTX_trusted_stack(cert_store, ca);
However, I don't think this is correct and I don't think I fully understand the relationship between an X509_STORE and an X509_STORE_CTX. Any suggestions?
 
Thanks,
 
Austin

Reply via email to