Skip to content

How to disable hostname verification in AsyncHttpClient #1611

Closed
@rdhabalia

Description

@rdhabalia

Issue

We would like to use secure tls connection over HTTPS but we just want to disable hostname verification for the server certs.
I can see that #197 PR introduced a way to disable hostname verification but later this option has been removed. Now, I don't see a way to specifically disable hostname-verification.
I can see two options to allowInsecureConnection and isDisableHttpsEndpointIdentificationAlgorithm but that can disable other things including hostname-verification which we want to avoid.

Question

So, can anyone suggest right way to disable Hostname verification in http-client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions