Hi,

Did you give the location of your trusted CA certificates using
SSL_CTX_load_verify_locations( ...) ?
It's problably not the problem but you did not talk about that...

Best regards,

Jipé




-----Message d'origine-----
De: "Chandrasekhar R S" <[EMAIL PROTECTED]>
A: <[EMAIL PROTECTED]>
Date: 28/01/03
Objet: Client authentication

I am to authenticate a client using his certificate.

In my server program, I use SSL_CTX_set_verity(ctx, SSL_VERIFY_PEER |
SSL_VERIFY_FAIL_IF_NO_PEER_CERT,0) to mandate that client cert should be
present.
If present, I use SSL_get_peer_certificate(ssl) to retrieve the client
cert.

In my client program, I use :

  SSL_CTX_use_certificate_file(CTX,CERTF,SSL_FILETYPE_PEM)
  SSL_CTX_use_PrivateKey_file(ctx, KEYF, SSL_FILETYPE_PEM)

calls to load a cert and a key into the client.

This is from the documentation I found, from Eric Rescorla's "An
introduction to OpenSSL programming" notes.

But, everytime, I run the client and the server, the server complains
that
client hasn't presented a cert.  Is something else, needs to be done to
get
a client cert to the server.

I am using openssl-0.9.7 on HPUX (Unix) systems.

thankful for any help in this regard.

Namaste,
R S Chandrasekhar
[EMAIL PROTECTED]
ISD     : 091-080-2051166
Telnet : 847-1166
Phone : 2052427

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]
_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France

_____________________________________________________________________
GRAND JEU SMS : Pour gagner un NOKIA 7650, envoyez le mot IF au 61321
(prix d'un SMS + 0.35 euro). Un SMS vous dira si vous avez gagné.
Règlement : http://www.ifrance.com/_reloc/sign.sms


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to