-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Ssl Bundle fails to load file from a dependent jar #38853
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
Thanks for getting in touch. I can't reproduce this problem with a trivial sample app and library. It's not clear from your description if the configuration that sets the SSL bundle is in the library or in the application, but it works either way for me. Since there are so many possible ways to configure an application, we'll need more information to know what's going on. Please provide a complete minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it and attaching it to this issue. |
Thanks for the quick revert @scottfrederick Please find below the 2 projects to reproduce the issue reported. Usage of common-lib for JKS has been the pattern working for us prior to Ssl Bundle by manually configuring the Ssl across WebClient, JMS, Kafka, etc https://github.com/syedyusufh/common-lib.git You would be getting the below error,
|
I think that the problem you're seeing is caused by an error in the classpath resource reference. The following values: spring.ssl.bundle.jks.common.keystore.location: classpath:/com/sample/common.jks
spring.ssl.bundle.jks.common.truststore.location: classpath:/com/sample/common.jks Should be: spring.ssl.bundle.jks.common.keystore.location: classpath:com/sample/common.jks
spring.ssl.bundle.jks.common.truststore.location: classpath:com/sample/common.jks We may have been more lenient with our loading before the SSL bundle support was added. In addition to that, you need to remove the following: spring.ssl.bundle.jks.common.reload-on-update: true
spring.ssl.bundle.watch.file.quiet-period: 300s You can only watch external files for changes, not those that are bundled in a jar. |
I think the exception message that is given when |
Spring Boot v3.2.0
Ssl Bundle
is unable to find the JKS file present inside a library jar. The JKS file is commonly shared across multiple applications and benefits being in a single place (here dependent jar)ResourceUtils.getURL
fails to load the JKS file from classpath likeclasspath:/common/path/in/jar/app.jks
Same works fine if the JKS file is from within the application
The text was updated successfully, but these errors were encountered: