I got the demo\ssl\cli.c and demo\ssl\srv.cpp
ported to NT and working.
 
The server has the following code:
[srv.cpp]
SSL_CTX_use_certificate_file(ctx, CERTF, SSL_FILETYPE_PEM);
SSL_CTX_use_PrivateKey_file(ctx, KEYF, SSL_FILETYPE_PEM);
Apparently this enables the client to retrieve the certificate by calling
[cli.cpp]
  client_cert = SSL_get_peer_certificate (ssl);
 
 
My problem is this:
 
I want both the client and the server to use a
certificate, when I add the code from srv.cpp
to cli.cpp.  The call to SSL_get_peer_certificate();
on the server still returns NULL.  I can't seem to
make the client pass it's certificate along.  What
am I doing wrong?

Reply via email to