How to ignore SSL certification on Scala using AsyncHttpClientCatsBackend?

641 views Asked by At

On Scala I need a backend to send some https requests. I also have to ultimately trust my server’s certificate. When I used synchronous HttpURLConnectionBackend everything was fine because I could alter my SSLContext and replace X509TrustManager with my trust manager.

Now I am rewriting this piece of code using cats.effect and I should have my backend asynchronous. So I cast AsyncHttpClientCatsBackend. It is also customisable, though I can not find how I can do the same thing and ignore certs. I googled and looked through the implementation of the syncHttpClientCatsBackend, but was unsuccessful.

0

There are 0 answers