Comments (13)
@lhotari
Following is the relevant output of sslscan utility:
SSL/TLS Protocols:
SSLv2 disabled
SSLv3 disabled
TLSv1.0 disabled
TLSv1.1 disabled
TLSv1.2 enabled
TLSv1.3 disabled
TLS Fallback SCSV:
Server supports TLS Fallback SCSV
TLS renegotiation:
Session renegotiation not supported
TLS Compression:
Compression disabled
Supported Server Cipher(s):
Preferred TLSv1.2 256 bits AES256-SHA256
Accepted TLSv1.2 128 bits AES128-SHA256
Accepted TLSv1.2 128 bits DES-CBC3-SHA
from spring-cloud-gateway.
@lhotari Is there any settings that can be configured in yml file directly like spring.cloud.gateway.httpclient.ssl ?
No. That's the reason why you need either of the solutions that I mentioned in the previous comments.
from spring-cloud-gateway.
@deepak-chhetri Unfortunately not.
from spring-cloud-gateway.
answered in netty/netty#14087 (comment)
from spring-cloud-gateway.
@lhotari
We checked the remote IBM server/endpoint and found following error in server logs:
SSL0222W: SSL Handshake Failed, No ciphers specified (no shared ciphers or no shared protocols).
It seems that cipher configuration is missing in request sent to endpoint server from Spring Cloud Gateway HttpClient.
Could you please share details around how to configure cipher suites in Spring Cloud Gateway HttpClient?
We have used following command to list down the ciphers used by endpoint server as follows:
openssl s_client -connect serverAddress:port
and got following output with cipher details:
SSL-Session:
Protocol: TLSv1.2
Cipher: AES256-SHA256
Verify return code: 0 (ok)
from spring-cloud-gateway.
@deepak-chhetri to investigate the problem and suggest a proper solution, it could be helpful to also share the output of sslscan
(https://github.com/rbsec/sslscan) for the target server. sslscan is available in package managers such as homebrew (brew install sslscan
) or ubuntu apt (sudo apt-get install sslscan
).
from spring-cloud-gateway.
@lhotari Could you please share HttpClient settings to configure cipher suites to connect with endpoint server over HTTPS?
from spring-cloud-gateway.
@deepak-chhetri I don't have a ready made example. I guess you should be able to customize that by adding a bean that implements org.springframework.cloud.gateway.config.HttpClientCustomizer.
from spring-cloud-gateway.
You might also be able to override httpClientSslConfigurer
bean with your own implementation that configures the ciphers.
from spring-cloud-gateway.
@lhotari Is there any settings that can be configured in yml file directly like spring.cloud.gateway.httpclient.ssl ?
from spring-cloud-gateway.
@deepak-chhetri Although it is possible that defaults for the ciphers could be configured with a system property.
from spring-cloud-gateway.
@lhotari
Could you please share example to configure default cipher suite?
from spring-cloud-gateway.
It's also worth checking if "Configuring default extensions" is related.
Some TLS implementations may not handle unknown extensions properly. As a result, you might encounter unexpected interoperability issues when the JDK introduces new extensions.
(check https://bugs.openjdk.org/browse/JDK-8217633 for more details)
Some servers get confused by TLS handshake extensions that clients send and report it as a cipher error (based on comment https://bugs.openjdk.org/browse/JDK-8257825).
You could try passing -Djdk.tls.client.disableExtensions=supported_versions
to see if that helps, unless configuring ciphers is possible or doesn't fix the issue.
from spring-cloud-gateway.
Related Issues (20)
- Spring Cloud Gateway MVC does not honor the route "order" attribute
- springcloudgateway memory usage is too large
- I am using azure ad with spring boot application.but getting invalid user error. HOT 1
- Use AdaptCachedBodyGlobalFilter cache request body, routeId must add "ReactiveCompositeDiscoveryClient_"
- RemoveRequestHeaderIfnoExisted
- [online-docs][4.1.5] 404 from link to properties
- Unable to customize ReactiveOAuth2AccessTokenResponseClient for refresh token
- Reporting 0 (instead of null) when no traffic was recorded in spring.cloud.gateway.requests.percentile
- How should I delete it
- Unable to Stream Chunked Response HOT 1
- FormFilter is matching encoded values against decoded values
- Could i use TokenRelay Filter with grant-type: client_credentials
- Incorrect response codes for routing PUT/DELETE requests HOT 1
- ForwardRoutingFilter does not set GATEWAY_ORIGINAL_REQUEST_URL_ATTR attr
- Invalid IPv6 forwarded for header when ForwardedHeadersFilter uses unresolved address HOT 1
- How to Validate a Specific Value in the Request Body of a POST Request in Spring Cloud Gateway MVC?
- Response body is not coming in SCG
- Bug Report: 500 Internal Server Error with Spring Cloud Gateway
- Not able to access service URL HOT 2
- Provide a way to customize via Spring framework a TTL for Netty's DNS cache HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-cloud-gateway.