-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Provide API to disable SSL validation when using RestClient #32800
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
Comments
I want to know too. |
Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use the issue tracker only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug. In this case, |
hi, this post is actually for request for enhancement purpose. |
@hannah23280 we are not going to invest here, since such configuration is very low level and specific to the HTTP client. Again, providing a unified approach for this would be very challenging. There are many variations and subtle HTTP client configuration, so it's unlikely we would design an efficient property model. We are declining this enhancement proposal. |
Scenario:
Using RestClient to send an API call to another application via HTTPS, for the purpose of encrypting payload at transportation layer. I do not want any client or server authentication/validation. To that end I observe the following code works. Just call this method in the @PostConstruct of my spring boot main application. It works
*Note: I understood the importance of having SSL validations, but let's not debate why I want to disable such validations. Cos not every projects out in the wild are interested to care about the SSL validations, especially if 2 microservices are interacting with each other via a dedicated link in an isolated, super secured area
At both client and server side
At server side (disable client authentication)
My question is: Can spring-mvc provides an API to do what the aforementioned code is doing (disableSSLValidation) instead of developer having to manually implement it?
The text was updated successfully, but these errors were encountered: