Ray O'Hagan wrote:
Hi, would anyone know off-hand either of the following ?

1. On the client side, how do I verify the certificate a server would
send down ?
i.e. how do I store the public key on the client side and then verify
the cert
using that ?

2. For a commercial cert, on the server side is there any way of not
having to
type in the Passphrase e.g. if I stored it encrypted somewhere and then
in my
code decrypted it, is there any function call to tell the application
that this
is the passphrase.

Cheers.

Ray.



2. Server Side.

Yes you have. To do this, you must call a callback function in PEM function
PEM_read_bio_PrivateKey(in,NULL,ctx->default_passwd_callback);
Before that you must initialize ctx->default_passwd_callback with :
SSL_CTX_set_default_passwd_cb (SSL_CTX*, callback_cb)
where callback_cb is your function used to read your encrypted passphrase.
Good Luck
NLB


-- 
------- Nathalie LE BERRE  ------------BULL SA/SD/SPD----------
Tel: 01 30 80 79 78 (237 7978)     Rue Jean-Jaures        
Fax: 01 30 80 65 40 (237 6540)     78340 Les Clayes-Sous-Bois
mailto:[EMAIL PROTECTED]  Implantation : FRCL E1-1A-39
 

Reply via email to