forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for SNI (Server Name Indication) for the HTTP server.
With SNI enabled, the server can handle multiple certificates. During the TLS handshake, the client indicates the service name allowing the service to looks for the correct certificate and completes the handshake. The JKS and PKCS12 format allow the key stores to contain multiple certificates. However, the PEM format does not allow that. For this reason, the configuration of the PEM certificate and key are now accepting lists of paths. The previous (singular) form are deprecated but still supported. SNI must be enabled explicitly as the server cannot verify if the key stores contain multiple certificates (JKS / PKCS12). This commit does not enable SNI on gRPC, as the gRPC server does not handle it. See vert-x3/vertx-grpc#70 for details. Fix quarkusio#16851
- Loading branch information
1 parent
d7048f3
commit 272119d
Showing
4 changed files
with
76 additions
and
10 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
extensions/vertx-http/deployment/src/test/resources/conf/ssl-pem.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Enable SSL, configure the key store | ||
quarkus.http.ssl.certificate.file=server-cert.pem | ||
quarkus.http.ssl.certificate.key-file=server-key.pem | ||
quarkus.http.ssl.certificate.files=server-cert.pem | ||
quarkus.http.ssl.certificate.key-files=server-key.pem | ||
# Test that server starts with this option | ||
# See https://github.com/quarkusio/quarkus/issues/8336 | ||
quarkus.http.insecure-requests=disabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters