You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/webserver.adoc
+20-5Lines changed: 20 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,6 +195,26 @@ The following example shows setting SSL properties using a Java KeyStore file:
195
195
key-password: "another-secret"
196
196
----
197
197
198
+
Using configuration such as the preceding example means the application no longer supports a plain HTTP connector at port 8080.
199
+
Spring Boot does not support the configuration of both an HTTP connector and an HTTPS connector through `application.properties`.
200
+
If you want to have both, you need to configure one of them programmatically.
201
+
We recommend using `application.properties` to configure HTTPS, as the HTTP connector is the easier of the two to configure programmatically.
202
+
203
+
204
+
205
+
[[howto.webserver.configure-ssl.pem-files]]
206
+
==== Using PEM-encoded files
207
+
You can use PEM-encoded files instead of Java KeyStore files.
208
+
You should use PKCS#8 key files wherever possible.
209
+
PEM-encoded PKCS#8 key files start with a `-----BEGIN PRIVATE KEY-----` or `-----BEGIN ENCRYPTED PRIVATE KEY-----` header.
210
+
211
+
If you have files in other formats, e.g., PKCS#1 (`-----BEGIN RSA PRIVATE KEY-----`) or SEC 1 (`-----BEGIN EC PRIVATE KEY-----`), you can convert them to PKCS#8 using OpenSSL:
0 commit comments