<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://mediawiki.gerhardfoschum.me/index.php?action=history&amp;feed=atom&amp;title=Client-Zertifikate_und_Mutual_TLS</id>
	<title>Client-Zertifikate und Mutual TLS - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.gerhardfoschum.me/index.php?action=history&amp;feed=atom&amp;title=Client-Zertifikate_und_Mutual_TLS"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.gerhardfoschum.me/index.php?title=Client-Zertifikate_und_Mutual_TLS&amp;action=history"/>
	<updated>2026-11-16T18:00:14Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Gerhards Wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://mediawiki.gerhardfoschum.me/index.php?title=Client-Zertifikate_und_Mutual_TLS&amp;diff=38&amp;oldid=prev</id>
		<title>Gerhard am 15. Oktober 2025 um 19:11 Uhr</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.gerhardfoschum.me/index.php?title=Client-Zertifikate_und_Mutual_TLS&amp;diff=38&amp;oldid=prev"/>
		<updated>2025-10-15T19:11:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 15. Oktober 2025, 19:11 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l116&quot;&gt;Zeile 116:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 116:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://datatracker.ietf.org/doc/html/rfc5246 RFC 5246 – TLS 1.2]   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://datatracker.ietf.org/doc/html/rfc5246 RFC 5246 – TLS 1.2]   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://datatracker.ietf.org/doc/html/rfc8446 RFC 8446 – TLS 1.3]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://datatracker.ietf.org/doc/html/rfc8446 RFC 8446 – TLS 1.3]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:SSL/TLS]]  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:HTTPS]]  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:Kryptografie]]  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:IT-Sicherheit]]  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:Zertifikate]]  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:Public Key Infrastructure]]  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:Webserver]]  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:Netzwerksicherheit]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gerhard</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.gerhardfoschum.me/index.php?title=Client-Zertifikate_und_Mutual_TLS&amp;diff=22&amp;oldid=prev</id>
		<title>Gerhard: Die Seite wurde neu angelegt: „= Client-Zertifikate und Mutual TLS (mTLS) =  &#039;&#039;&#039;Mutual TLS (mTLS)&#039;&#039;&#039; ist eine Erweiterung des Standard-TLS-Handshakes, bei der nicht nur der Server, sondern auch der Client ein X.509-Zertifikat zur Authentifizierung vorlegt.   Dies erhöht die Sicherheit, insbesondere bei internen Netzwerken, APIs oder Maschinen-zu-Maschinen-Kommunikation.  == Grundlagen == Bei normalem TLS:  * Server präsentiert ein Zertifika…“</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.gerhardfoschum.me/index.php?title=Client-Zertifikate_und_Mutual_TLS&amp;diff=22&amp;oldid=prev"/>
		<updated>2025-10-15T18:55:54Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „= Client-Zertifikate und Mutual TLS (mTLS) =  &amp;#039;&amp;#039;&amp;#039;Mutual TLS (mTLS)&amp;#039;&amp;#039;&amp;#039; ist eine Erweiterung des Standard-&lt;a href=&quot;/index.php/HTTPS_in_der_Praxis_(Let%27s_Encrypt)&quot; title=&quot;HTTPS in der Praxis (Let&amp;#039;s Encrypt)&quot;&gt;TLS&lt;/a&gt;-Handshakes, bei der nicht nur der Server, sondern auch der Client ein &lt;a href=&quot;/index.php?title=X.509-Zertifikat&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;X.509-Zertifikat (Seite nicht vorhanden)&quot;&gt;X.509-Zertifikat&lt;/a&gt; zur Authentifizierung vorlegt.   Dies erhöht die Sicherheit, insbesondere bei internen Netzwerken, APIs oder Maschinen-zu-Maschinen-Kommunikation.  == Grundlagen == Bei normalem TLS:  * Server präsentiert ein Zertifika…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Client-Zertifikate und Mutual TLS (mTLS) =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mutual TLS (mTLS)&amp;#039;&amp;#039;&amp;#039; ist eine Erweiterung des Standard-[[HTTPS in der Praxis (Let&amp;#039;s Encrypt)|TLS]]-Handshakes, bei der nicht nur der Server, sondern auch der Client ein [[X.509-Zertifikat]] zur Authentifizierung vorlegt.  &lt;br /&gt;
Dies erhöht die Sicherheit, insbesondere bei internen Netzwerken, APIs oder Maschinen-zu-Maschinen-Kommunikation.&lt;br /&gt;
&lt;br /&gt;
== Grundlagen ==&lt;br /&gt;
Bei normalem TLS:&lt;br /&gt;
&lt;br /&gt;
* Server präsentiert ein Zertifikat, Client prüft Vertrauenswürdigkeit  &lt;br /&gt;
* Client authentifiziert sich ggf. über Benutzername/Passwort  &lt;br /&gt;
&lt;br /&gt;
Bei Mutual TLS:&lt;br /&gt;
&lt;br /&gt;
* Server prüft das Client-Zertifikat zusätzlich zur Serverauthentifizierung  &lt;br /&gt;
* Client prüft Server wie üblich  &lt;br /&gt;
* Beide Parteien vertrauen nur Zertifikaten, die von bekannten CAs ausgestellt wurden&lt;br /&gt;
&lt;br /&gt;
== Vorteile von mTLS ==&lt;br /&gt;
* Starke Authentifizierung auf beiden Seiten  &lt;br /&gt;
* Schutz vor unautorisierten Clients  &lt;br /&gt;
* Automatische Verschlüsselung der Verbindung  &lt;br /&gt;
* Ideal für APIs, interne Dienste, IoT-Umgebungen&lt;br /&gt;
&lt;br /&gt;
== Einrichtung von Client-Zertifikaten ==&lt;br /&gt;
=== Schritt 1: CA vorbereiten ===&lt;br /&gt;
Wie im Artikel [[Eigene Certificate Authority (CA) erstellen]] beschrieben, benötigen Sie eine Root- oder Intermediate-CA.&lt;br /&gt;
&lt;br /&gt;
=== Schritt 2: Client-Zertifikat erstellen ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Privaten Schlüssel für den Client erstellen&lt;br /&gt;
openssl genrsa -out client.key.pem 2048&lt;br /&gt;
&lt;br /&gt;
# CSR erstellen&lt;br /&gt;
openssl req -new -key client.key.pem -out client.csr.pem&lt;br /&gt;
&lt;br /&gt;
# Zertifikat von CA signieren&lt;br /&gt;
openssl x509 -req -in client.csr.pem -CA intermediate.cert.pem \&lt;br /&gt;
  -CAkey intermediate.key.pem -CAcreateserial \&lt;br /&gt;
  -out client.cert.pem -days 825 -sha256&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Serverkonfiguration für mTLS ==&lt;br /&gt;
=== Nginx Beispiel ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
server {&lt;br /&gt;
    listen 443 ssl;&lt;br /&gt;
    server_name api.example.com;&lt;br /&gt;
&lt;br /&gt;
    ssl_certificate /etc/ssl/certs/server.cert.pem;&lt;br /&gt;
    ssl_certificate_key /etc/ssl/private/server.key.pem;&lt;br /&gt;
&lt;br /&gt;
    ssl_client_certificate /etc/ssl/certs/ca-chain.cert.pem;&lt;br /&gt;
    ssl_verify_client on;&lt;br /&gt;
&lt;br /&gt;
    location / {&lt;br /&gt;
        proxy_pass http://backend;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* `ssl_client_certificate` verweist auf CA, die Client-Zertifikate signiert hat  &lt;br /&gt;
* `ssl_verify_client on` zwingt die Authentifizierung&lt;br /&gt;
&lt;br /&gt;
=== Apache Beispiel ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;VirtualHost *:443&amp;gt;&lt;br /&gt;
    SSLEngine on&lt;br /&gt;
    SSLCertificateFile &amp;quot;/etc/ssl/certs/server.cert.pem&amp;quot;&lt;br /&gt;
    SSLCertificateKeyFile &amp;quot;/etc/ssl/private/server.key.pem&amp;quot;&lt;br /&gt;
    SSLCACertificateFile &amp;quot;/etc/ssl/certs/ca-chain.cert.pem&amp;quot;&lt;br /&gt;
    SSLVerifyClient require&lt;br /&gt;
    SSLVerifyDepth 2&lt;br /&gt;
&lt;br /&gt;
    DocumentRoot &amp;quot;/var/www/html&amp;quot;&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Client-Authentifizierung testen ==&lt;br /&gt;
=== OpenSSL Client Test ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
openssl s_client -connect api.example.com:443 \&lt;br /&gt;
  -cert client.cert.pem -key client.key.pem \&lt;br /&gt;
  -CAfile ca-chain.cert.pem&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Bei erfolgreicher Verbindung prüft der Server das Client-Zertifikat  &lt;br /&gt;
* Fehlende oder ungültige Zertifikate führen zu Verbindungsabbrüchen&lt;br /&gt;
&lt;br /&gt;
== Best Practices ==&lt;br /&gt;
* Client-Zertifikate kurzlebig (z. B. 90–180 Tage) für erhöhte Sicherheit  &lt;br /&gt;
* Automatisierte Erneuerung ähnlich wie bei Server-Zertifikaten  &lt;br /&gt;
* Sperrlisten (OCSP/CRL) prüfen, falls ein Zertifikat kompromittiert wird  &lt;br /&gt;
* Root-CA-Schlüssel offline halten, Intermediate-CA für Signaturen nutzen&lt;br /&gt;
&lt;br /&gt;
== Einsatzbereiche ==&lt;br /&gt;
* Maschinen-zu-Maschinen-Kommunikation (APIs, Microservices)  &lt;br /&gt;
* VPN-Zugänge  &lt;br /&gt;
* IoT-Geräte  &lt;br /&gt;
* Interne Unternehmensanwendungen&lt;br /&gt;
&lt;br /&gt;
== Siehe auch ==&lt;br /&gt;
* [[Einführung in SSL/TLS]]  &lt;br /&gt;
* [[Kryptografische Grundlagen]]  &lt;br /&gt;
* [[Aufbau eines X.509-Zertifikats]]  &lt;br /&gt;
* [[Zertifikatskette und Vertrauensmodell]]  &lt;br /&gt;
* [[HTTPS in der Praxis (Let&amp;#039;s Encrypt)]]  &lt;br /&gt;
* [[Zertifikatserneuerung und Automatisierung]]  &lt;br /&gt;
* [[OpenSSL im Detail]]  &lt;br /&gt;
* [[Eigene Certificate Authority (CA) erstellen]]  &lt;br /&gt;
* [[Zertifikatsprüfung und Sperrlisten (OCSP/CRL)]]&lt;br /&gt;
&lt;br /&gt;
== Externe Quellen ==&lt;br /&gt;
* [https://www.openssl.org/docs/man1.1.1/man1/openssl-s_client.html OpenSSL s_client]  &lt;br /&gt;
* [https://nginx.org/en/docs/http/ngx_http_ssl_module.html Nginx SSL Module]  &lt;br /&gt;
* [https://httpd.apache.org/docs/current/ssl/ssl_howto.html Apache SSL HowTo]  &lt;br /&gt;
* [https://datatracker.ietf.org/doc/html/rfc5246 RFC 5246 – TLS 1.2]  &lt;br /&gt;
* [https://datatracker.ietf.org/doc/html/rfc8446 RFC 8446 – TLS 1.3]&lt;/div&gt;</summary>
		<author><name>Gerhard</name></author>
	</entry>
</feed>