Yes, I'm doing the SSL_CTX_set verify... then
SSL_accept at last SSL_get_peer_certificate. The
server accepts the connection, and sends it's
certificate. I am not using a certificate for the
client, so the connection is supposed to end, but it
doesn't. I wonder why is this happenning.
Eduar
Are you doing things in this order:
SSL_CTX_set_verify
...
SSL_accept
...
SSL_get_peer_certificate
...
--- Eduardo Muñoz <[EMAIL PROTECTED]> wrote:
> Can anyone tell me hoy to authenticate a client? I
> have tried the following code on my server, but it
> keeps sending me the "Client does not ha
Can anyone tell me hoy to authenticate a client? I
have tried the following code on my server, but it
keeps sending me the "Client does not have
certificate" message.
SSL_CTX_set_verify(ctx,SSL_VERIFY_PEER |
SSL_VERIFY_FAIL_IF_NO_PEER_CERT, 0);
client_cert = SSL_get_peer_certificate