-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property use-insecure-trust-manager not working on spring cloud gateway MVC #3423
Comments
That property won't ever be for the MVC gateway since its properties live in a different namespace. It will also be more difficult to do this in MVC gateway since each http client is different. I'll have to see if there is something we can do |
spencergibb
added
enhancement
status: pending-design-work
in: server-webmvc
and removed
waiting-for-triage
labels
Jun 3, 2024
This is also failing for reactive gateways with
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The bug
Adding the property
spring.cloud.gateway.httpclient.ssl.use-insecure-trust-manager
and set the value totrue
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
`
The text was updated successfully, but these errors were encountered: