The following works:
openssl s_client -key private_key.key -cert cert.crt -connect "client-auth.myhost.com:443"
wget --no-check-certificate --certificate=cert.crt --private-key=private_key.key https://client-auth.myhost.com:443/path
Yet curl does not seem to work:
curl -v -s -k --key private_key.key --cert cert.crt "https://client-auth.myhost.com:443/path"
When curl attempts to do client auth, the server spits out an OpenSSL Error Code 27 (cert not trusted):
2012/08/27 21:17:42 [info] 39756#0: *15 client SSL certificate verify error: (27:certificate not trusted) while reading client request headers, client: 127.0.0.1, server: client-auth.myhost.com, request: "GET /path/logincu HTTP/1.1", host: "client-auth.myhost.com"
Resolved issue via:
http://honglus.blogspot.com/2012/03/fix-curl-client-certificate-error-curl.html