Kong / unirest-java

Unirest in Java: Simplified, lightweight HTTP client library.
http://kong.github.io/unirest-java/
MIT License
2.59k stars 593 forks source link

Support for custom ciphers and protocols for https requests #380

Closed Hakky54 closed 3 years ago

Hakky54 commented 3 years ago

Is your feature request related to a problem? Please describe. I would like to allow only a specific tls protocol to prevent the client communicating with older protocols. I also want to use specific ciphers for the client.

Describe the solution you'd like I would prefer a simple configuration just like configuring the SSLContext and HostnameVerifier

Unirest.config()
    .sslContext(sslContext)
    .protocols("TLSv1.2")
    .ciphers("TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384");

Describe alternatives you've considered I couldn't discover an alternative

Hakky54 commented 3 years ago

pull request https://github.com/Kong/unirest-java/pull/381 has been merged so this issue can be closed