fred ouille wrote:
> const char * pKey = "..\\SSL\\client-key.pem";
> const char * pCert = "..\\SSL\\client-cert.pem";
> const char * pCA = "..\\SSL\\cacert.pem";
> const char * pCApath = "..\\SSL\\newcerts\\";
> const char * pCipher = "ALL";
I've never done this, but a few things come to mind:
1. Have you tried moving all of these files into the program's working
directory, and giving just the file name? That completely eliminates
any concerns about relative vs. absolute paths, forward vs. backslashes,
etc.
2. If your file naming is to be believed, you're using the same key file
on both sides of the connection. That isn't how public key cryptography
works, in my experience.
3. Have you tried doing this with just the plain C API? Once you get it
working that way, you can start adding abstraction layers.