Mark wrote:

I do things pretty much as you described except for the following:
* On server:
   * if your server cert is signed by the root,
     you can turn off sending of the root to the cert by
     SSL_CTX_set_mode(ctx,SL_MODE_NO_AUTO_CHAIN)

I can't find this option (or similar) in the docs or header files. Was
this added in 0.9.7 or later?

(Naturally SSL_MODE_NO_AUTO_CHAIN)

This flag was added 2003-Feb-12 to 0.9.7 and HEAD
(I remember we had a problem with a changed root cert
 causing verify of server certs to fail if the server
 sent the root cert)


I got you right ?
You are still using 0.9.6 ?
I strongly recommend that you update OpenSSL to a newer version.
3 year old software is almost like back to stone age...

On server and client:

   * add the CA cert to the servers verify data
     X509_STORE_add_cert(SSL_CTX_get_cert_store(ctx),root)

I use SSL_CTX_load_verify_locations(ctx, root, path).  Does this do the
same thing?

Yes.
Only with X509_STORE_add_cert() you load a cert, set it for verify
and add it to the SSL verify data.
So you don't have to load it twice.
(And you are sure which cert you set and that you really set
 only one cert...)

Bye

Goetz

--
DMCA: The greed of the few outweighs the freedom of the many

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to