Skip to content

Allow customizing ClientHttpRequestFactory including using insecure trust manager #3305

Open
@TimofejOv

Description

@TimofejOv

Hello.

I use MVC Gateway version.
I try to route to HTTPS resource, but get exception:

javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target`

With debug on error from javax.net.ssl is this one:

I want to skip this certificate validation, so I use in application.properties:
spring.cloud.gateway.mvc.http-client.ssl.use-insecure-trust-manager=true

but no reaction from Gateway on this instruction.

Configuration of the route is:

route("myRoute")
          .route(path("/my-partner/**"), https(URI.create("https://test-site/")))
          .build();`

Is this instruction implemented, o I'm missing something?
If it is not implemented yet, can anyone suggest a workaround?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions