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

Web server fails to start due to "Resource location must not be null" when attempting to use a PKCS 11 KeyStore #32179

Closed
wants to merge 5 commits into from

Commits on Aug 27, 2022

  1. - Fixes the error "Unable to start reactive web server" / "WebServerE…

    …xception: Could not load key store 'null'" / "IllegalArgumentException: Resource location must not be null" when using PKCS11 keystore type ('server.ssl.key-store-type') with undefined/null 'server.ssl.key-store' property (as there is no keystore file to be specified for a PKCS#11 HSM) on a Spring Boot Reactor Netty configuration.
    
    - Added unit tests in spring-boot-project/spring-boot SslServerCustomizerTests class with a mock PKCS#11 keystore provider implementation to validate the fix
    - Added TestContainers integration test loading a Spring Boot Webflux (Netty SSL server) app with an actual PKCS#11 HSM (SoftHSM) for the keystore: to make sure it works with real implementation: see project spring-boot-tests/spring-boot-smoke-tests/spring-boot-test-webflux-ssl
    cdanger committed Aug 27, 2022
    Configuration menu
    Copy the full SHA
    acec865 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    29ef276 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2022

  1. Configuration menu
    Copy the full SHA
    df0bcbb View commit details
    Browse the repository at this point in the history
  2. - Fixes PKCS#11 support for Jetty, Tomcat and Undertown, as was done …

    …for Netty previously. This is part of PR spring-projects#32179.
    cdanger committed Sep 10, 2022
    Configuration menu
    Copy the full SHA
    905eeed View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2022

  1. Configuration menu
    Copy the full SHA
    0eeedf9 View commit details
    Browse the repository at this point in the history