Skip to content

RestClient not working with SNI enabled endpoint #337

@todzheng

Description

@todzheng

with Ribbon RestClient 2.2.0 and Apache HttpClient4.5.2, invoking an SNI enabled endpoint results in "handshake_failure" because server_name extension is not in SSL handshake.

While directly using Apache HttpClient4.5.2 can successfully negotiate and server_name extension is successful.

RestClient 2.2.0 appears to be using SSLSocketFactory which is deprecated by apache; while directly using Apache HttpClient uses SSLConnectionSocketFactory.

Is there any workaround?

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