-
Notifications
You must be signed in to change notification settings - Fork 40.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
SslBundle can no longer open store file locations without using a 'file:' prefix #43274
Comments
Thanks for the report. It may be due to #42835, but I cannot be certain as the problem does not reproduce if I try to recreate what you've described above. Most likely because nothing's using the SSL bundle that you've configured. By specifying only If the above does not help and/or you'd like us to spend some time investigating further, please spend some time providing a complete yet 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 up and attaching it to this issue. |
Adding Thanks for the quick response. |
Thanks for confirming that it works with the |
…ler configuration # Issue When updating to Spring Boot 3.4.0 the certs would no longer be found. This is due to [Spring Boot 3.4.0 searching in the classpath first](spring-projects/spring-boot#43274). # Fix Prefix all paths with `file:`.
…rter-parent to v3.4.0 (#3362) * fix(deps): update dependency org.springframework.boot:spring-boot-starter-parent to v3.4.0 * fix(config): update certificate paths to use `file:` prefix in scheduler configuration # Issue When updating to Spring Boot 3.4.0 the certs would no longer be found. This is due to [Spring Boot 3.4.0 searching in the classpath first](spring-projects/spring-boot#43274). # Fix Prefix all paths with `file:`. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Silvestre Zabala <silvestre.zabala@sap.com>
I ran into a similar issue, but with a different error message:
spring.ssl.bundle.jks:
myBundle:
reload-on-updates: true
keystore:
location: /usr/temp/certs/my-dev-keystore-pkcs12.p12
password: superSecretPassword
type: "PKCS12" Adding |
This introduced a breaking change for me. While adding the At this time I'm considering whether I have to override the third party with a nearly-but-not-quite-duplicative value or figure out how to restore the original behavior. |
Fix: spring-projects/spring-boot#43274 Upgraded Spring Boot and Spring Boot Admin versions in `pom.xml` to 3.4.1 for latest fixes and improvements. Adjusted the keystore file path in `application-prod.yml` to remove the redundant `file:` prefix for better compatibility.
I am getting an exception with the SslBundles not being able to load the keystore. This worked fine with Spring Boot 3.3.6 (and previous levels). The file
key.jks
is in my current directory, from where the app is being run viagradle bootRun
.Configuration:
Exception stack:
with the root of the exception stack being
The text was updated successfully, but these errors were encountered: