Giter Club home page Giter Club logo

Comments (13)

deepak-chhetri avatar deepak-chhetri commented on September 25, 2024 1

@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 avatar lhotari commented on September 25, 2024 1

@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.

lhotari avatar lhotari commented on September 25, 2024 1

@deepak-chhetri Unfortunately not.

from spring-cloud-gateway.

lhotari avatar lhotari commented on September 25, 2024

answered in netty/netty#14087 (comment)

from spring-cloud-gateway.

deepak-chhetri avatar deepak-chhetri commented on September 25, 2024

@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.

lhotari avatar lhotari commented on September 25, 2024

@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.

deepak-chhetri avatar deepak-chhetri commented on September 25, 2024

@lhotari Could you please share HttpClient settings to configure cipher suites to connect with endpoint server over HTTPS?

from spring-cloud-gateway.

lhotari avatar lhotari commented on September 25, 2024

@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.

lhotari avatar lhotari commented on September 25, 2024

You might also be able to override httpClientSslConfigurer bean with your own implementation that configures the ciphers.

@Bean
public HttpClientSslConfigurer httpClientSslConfigurer(ServerProperties serverProperties,
HttpClientProperties httpClientProperties) {
return new HttpClientSslConfigurer(httpClientProperties.getSsl(), serverProperties) {
};
}

from spring-cloud-gateway.

deepak-chhetri avatar deepak-chhetri commented on September 25, 2024

@lhotari Is there any settings that can be configured in yml file directly like spring.cloud.gateway.httpclient.ssl ?

from spring-cloud-gateway.

lhotari avatar lhotari commented on September 25, 2024

@deepak-chhetri Although it is possible that defaults for the ciphers could be configured with a system property.

from spring-cloud-gateway.

deepak-chhetri avatar deepak-chhetri commented on September 25, 2024

@lhotari
Could you please share example to configure default cipher suite?

from spring-cloud-gateway.

lhotari avatar lhotari commented on September 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.