Skip to content

SSL clarification (from #2167) #2172

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion spring-boot-docs/src/main/asciidoc/howto.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,16 @@ supported properties.

NOTE: Tomcat requires the key store (and trust store if you're using one) to be directly
accessible on the filesystem, i.e. it cannot be read from within a jar file.

This limitation doesn't apply to Jetty and Undertow.

Using configuration like the example above means the application will no longer support
plain HTTP connector at port 8080. Spring Boot doesn't support the configuration of both
an HTTP connector and an HTTPS connector via `application.properties`. If you want to have both
then you'll need to configure one of them programmatically.
It's recommended to use `application.properties` to configure HTTPS as the HTTP connector is
the easier of the two to configure programatically. Refer to the sample on
[configuring Tomcat will multiple connectors](https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-tomcat-multi-connectors)
(this sample currently shows programmatic HTTPS configuration combined with declarative HTTP configuration.)


[[howto-configure-tomcat]]
Expand Down