Skip to content
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

spring cloud gateway SSL Config bug #3673

Open
caohenghui opened this issue Jan 21, 2025 · 0 comments
Open

spring cloud gateway SSL Config bug #3673

caohenghui opened this issue Jan 21, 2025 · 0 comments

Comments

@caohenghui
Copy link

caohenghui commented Jan 21, 2025

java file:
org.springframework.cloud.gateway.config.AbstractSslConfigurer.java

Line: 70
protected SslBundle getBundle() { if (ssl.getSslBundle() == null || ssl.getSslBundle().length() > 0) { return null; } if (bundles.getBundleNames().contains(ssl.getSslBundle())) { return bundles.getBundle(ssl.getSslBundle()); } return null;
Is there a problem with the judgment of this line of source code?
if (ssl.getSslBundle() == null || ssl.getSslBundle().length() > 0)

spring cloud version : 2024.0.0

my application.properties
`
spring.ssl.bundle.jks.myclient.keystore.location=classpath:keystore.p12
spring.ssl.bundle.jks.myclient.keystore.password=123456
spring.ssl.bundle.jks.myclient.keystore.type=PKCS12
spring.ssl.bundle.jks.myclient.truststore.location=classpath:truststore.p12
spring.ssl.bundle.jks.myclient.truststore.password=123456
spring.ssl.bundle.jks.myclient.truststore.type=PKCS12
spring.cloud.gateway.httpclient.ssl.ssl-bundle=myclient

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant