I cannot get wget to use the client certificates. The documentation speaks about using the –certificate flag.
The use of the certificate flag is clear, I set it to use the PEM version of the client certificate.
But when I connect I get the following error:
HTTP request sent, awaiting response... Read error (error:14094410:SSL routines:
SSL3_READ_BYTES:sslv3 alert handshake failure; error:140940E5:SSL routines:SSL3_
READ_BYTES:ssl handshake failure) in headers.
Giving up.
ssl handshake failure means the client did not supply a correct client cert. Still the client cert I use, works in a browser.
Note: When I disable client authentication on the server, wget can connect.
Note: The use of curl is suggested, but I'd like to avoid the switch.
Best Answer
I studied a week on this, finaly with the help I got from this page.
The command I used to connect is: