Skip to content

Commit

Permalink
Polish "Add note regarding mixing of bundle-based and direct SSL conf…
Browse files Browse the repository at this point in the history
…iguration"

See gh-39616
  • Loading branch information
scottfrederick committed Feb 20, 2024
1 parent 4c069f0 commit eb4d6e7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ The following example shows setting SSL properties using a Java KeyStore file:
Using configuration such as the preceding example means the application no longer supports a plain HTTP connector at port 8080.
Spring Boot does not support the configuration of both an HTTP connector and an HTTPS connector through `application.properties`.
If you want to have both, you need to configure one of them programmatically.
We recommend using `application.properties` to configure HTTPS, as the HTTP connector is the easier of the two to configure programmatically. Also note that Spring Boot does not support the mixing of different configuration methods of SSL for embedded web servers, as such the use of the `ssl.bundle` property can't be combined with the discrete JKS or PEM property options under `server.ssl`.
We recommend using `application.properties` to configure HTTPS, as the HTTP connector is the easier of the two to configure programmatically.



[[howto.webserver.configure-ssl.pem-files]]
Expand Down Expand Up @@ -210,6 +211,8 @@ Alternatively, the SSL trust material can be configured in an <<features#feature
bundle: "example"
----

NOTE: The `server.ssl.bundle` property can not be combined with the discrete Java KeyStore or PEM property options under `server.ssl`.

See {spring-boot-module-code}/web/server/Ssl.java[`Ssl`] for details of all of the supported properties.


Expand Down

0 comments on commit eb4d6e7

Please sign in to comment.