Skip to content

Property use-insecure-trust-manager not working on spring cloud gateway MVC #3423

Open
@franzbascope

Description

@franzbascope

The bug
Adding the property spring.cloud.gateway.httpclient.ssl.use-insecure-trust-manager and set the value to true still generates the error:
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Sample
routes.yaml

spring: cloud: gateway: httpclient: ssl: use-insecure-trust-manager: true mvc: routes: - id: certificate uri: https://untrusted-root.badssl.com predicates: - Path= /http/** filters: - RewritePath= /http/?(?<segment>/.*), /$\{segment}

application.properties

`
spring.application.name=demo
spring.config.import=./routes.yaml
spring.cloud.gateway.httpclient.ssl.use-insecure-trust-manager=true

`

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions