-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Fixes #5379 - Better handling for wrong SNI. Reworked the SNI logic. Added support for IP addresses in the SAN extension of certificates in the X509 class. Fixed keystores to have CN=localhost and SAN with ip=127.0.0.1 and ip=[::1]. Fixed tests that were not using the correct Host header. Signed-off-by: Simone Bordet <[email protected]>
- Loading branch information
Showing
26 changed files
with
343 additions
and
236 deletions.
There are no files selected for viewing
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
Binary file not shown.
Binary file not shown.
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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The keystores are generated differently from jetty-client's readme_keystores.txt. | ||
|
||
Since SslContextFactory also loads the KeyStore as a TrustStore, rather than doing | ||
CSR for the client certificates and sign them with the server|proxy certificate, | ||
we just load the client certificates in the server|proxy KeyStores so that they | ||
are trusted. | ||
|
||
Structure is the following: | ||
|
||
server_keystore.p12: | ||
mykey: self-signed certificate with private key | ||
client: certificate from client_keystore.p12@client_to_server | ||
|
||
proxy_keystore.p12: | ||
mykey: self-signed certificate with private key | ||
client: certificate from client_keystore.p12@client_to_proxy | ||
|
||
client_keystore.p12 | ||
client_to_proxy: self-signed certificate with private key (client certificate to send to proxy) | ||
client_to_server: self-signed certificate with private key (client certificate to send to server) | ||
proxy: certificate from proxy_keystore.p12@mykey (to trust proxy certificate) | ||
server: certificate from server_keystore.p12@mykey (to trust server certificate) |
Binary file not shown.
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
Oops, something went wrong.