... |
... |
@@ -37,7 +37,7 @@ |
37 |
37 |
</Connector> |
38 |
38 |
{{/code}} |
39 |
39 |
|
40 |
|
-Weiterführende Informationen zur Konfiguration von der Eigenschaft //SSLHostConfig// finden Sie in der Dokumentation des Herstellers: [[https:~~/~~/tomcat.apache.org/tomcat-8.5-doc/config/http.html#SSL_Support_-_SSLHostConfig>>https://tomcat.apache.org/tomcat-8.5-doc/config/http.html#SSL_Support_-_SSLHostConfig]] |
|
40 |
+Weiterführende Informationen zur Konfiguration von der Eigenschaft //SSLHostConfig// finden Sie in der Dokumentation des Herstellers: [[https:~~/~~/tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support_-_SSLHostConfig>>https://tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support_-_SSLHostConfig]] |
41 |
41 |
))) |
42 |
42 |
|
43 |
43 |
===Zusammenfassung der wichtigsten Optionen=== |
... |
... |
@@ -58,7 +58,7 @@ |
58 |
58 |
|
59 |
59 |
===Weitere Möglichkeiten ein Zertifikat im Tomcat am Connector zu konfigurieren=== |
60 |
60 |
|
61 |
|
-Einbindung mittels KeyStore: |
|
61 |
+Neben dem obenstehenden Beispiel gibt es noch andere Möglichkeiten, das verwendete Zertifikat für einen Connector für verschlüsselte Kommunikation zu konfigurieren. Eine Möglichkeit ist es, das Zertifikat, den Private Key und mögliche Zwischenzertifikate in einem Java-Keystore zu importieren und diesen direkt einzubinden: |
62 |
62 |
|
63 |
63 |
{{code}} |
64 |
64 |
<Connector port="443" protocol="HTTP/1.1" maxThreads="150" SSLEnabled="true" scheme="https" secure="true" |
... |
... |
@@ -68,14 +68,13 @@ |
68 |
68 |
relaxedQueryChars="[ \ ] ^ ` { | }"> |
69 |
69 |
<SSLHostConfig> |
70 |
70 |
<Certificate certificateKeystoreFile="conf/file.keystore" |
71 |
|
- certificateKeystorePassword="mypwd" ></Certificate> |
|
71 |
+ certificateKeystorePassword="meinPasswort" ></Certificate> |
72 |
72 |
</SSLHostConfig> |
73 |
73 |
</Connector> |
74 |
74 |
{{/code}} |
75 |
75 |
|
|
76 |
+Auch KeyPair-Dateien (*.pfx, *.p12) können direkt eingebunden werden: |
76 |
76 |
|
77 |
|
-Ist man im Besitz einer KeyPair-Datei (*.pfx, *.p12) kann man diese auch direkt einbinden: |
78 |
|
- |
79 |
79 |
{{code}} |
80 |
80 |
<Connector port="443" protocol="HTTP/1.1" maxThreads="150" SSLEnabled="true" scheme="https" secure="true" |
81 |
81 |
URIEncoding="UTF-8" |
... |
... |
@@ -84,12 +84,15 @@ |
84 |
84 |
relaxedQueryChars="[ \ ] ^ ` { | }"> |
85 |
85 |
<SSLHostConfig> |
86 |
86 |
<Certificate certificateKeystoreFile="conf/file.pfx" |
87 |
|
- certificateKeystorePassword="mypwd" |
|
86 |
+ certificateKeystorePassword="meinPasswort" |
88 |
88 |
certificateKeystoreType="PKCS12" ></Certificate> |
89 |
89 |
</SSLHostConfig> |
90 |
90 |
</Connector> |
91 |
91 |
{{/code}} |
92 |
92 |
|
|
92 |
+Weiterführende Informationen zur Konfiguration für die Zertifikate finden Sie in der Dokumentation des Herstellers: [[https:~~/~~/tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support_-_Certificate>>https://tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support_-_Certificate]] |
|
93 |
+ |
|
94 |
+ |
93 |
93 |
==Einschränken auf bestimmte TLS-Versionen== |
94 |
94 |
|
95 |
95 |
Wenn für verschlüsselte Verbindungen nur bestimmte Versionen von TLS unterstützt werden sollen, kann dies über die Attribute //protocols// und //sslProtocol// in der //SSLHostConfig// des Connectors konfiguriert werden. Eine beispielhafte Konfiguration, welche nur die TLS-Versionen 1.1 und 1.2 zulässt, könnte wie folgt aussehen: |
... |
... |
@@ -107,7 +107,7 @@ |
107 |
107 |
|
108 |
108 |
Falls zusätzlich eine Einschränkung der möglichen Verschlüsselungsalgorithmen gewünscht wird, kann diese mit dem Attribut //ciphers// vorgenommen werden. |
109 |
109 |
|
110 |
|
-Nähere Informationen zur Konfiguration und den möglichen Optionen der Attribute finden Sie in der Dokumentation des Herstellers: [[https:~~/~~/tomcat.apache.org/tomcat-8.5-doc/config/http.html#SSL_Support_-_SSLHostConfig>>https://tomcat.apache.org/tomcat-8.5-doc/config/http.html#SSL_Support_-_SSLHostConfig]] |
|
112 |
+Nähere Informationen zur Konfiguration und den möglichen Optionen der Attribute finden Sie in der Dokumentation des Herstellers: [[https:~~/~~/tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support_-_SSLHostConfig>>https://tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support_-_SSLHostConfig]] |
111 |
111 |
|
112 |
112 |
==Erzwingen von HTTPS== |
113 |
113 |
|