nahi / httpclient

'httpclient' gives something like the functionality of libwww-perl (LWP) in Ruby.
https://github.com/nahi/httpclient
701 stars 290 forks source link

Introduce client_extra_certs option to SSLConfig #414

Open timon opened 4 years ago

timon commented 4 years ago

Some websites that rely on client certificate authentication reject requests with proper client certificate unless authority chain is presented with the certificate as well.

This PR introduces a new SSLConfig option, client_extra_certs, that allows supplying CA certificates along with a request.

timon commented 4 years ago

@nahi I believe that a testcase should be added to this to test/test_ssl.rb, but I'm not sure how to test this.