S/MIME mit Thunderbird und eigener CA: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(16 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
 
 
 
== Ziel ==
 
== Ziel ==
  
Zeile 8: Zeile 6:
  
 
== Erzeugung von Key und CSR ==
 
== Erzeugung von Key und CSR ==
 +
*export MAIL=thomas@it113.int
 +
*openssl req -new -newkey rsa:4096 -nodes -keyout $MAIL.key -out $MAIL.csr -subj "/CN=$MAIL/emailAddress=$MAIL"
  
openssl req -new -newkey rsa:4096 -nodes -keyout thomas.key -out thomas.csr -subj "/CN=Thomas Will/emailAddress=thomas@it113.int"
+
== Übergabe an die zentrale CA ==
  
== Übergabe an die zentrale CA ==
+
; Datei '''thomas.csr''' an CA übermitteln (z. B. per Webformular oder Mail)
  
* Datei '''thomas.csr''' an CA übermitteln (z. B. per Webformular oder Mail)
+
;CA erstellt daraus ein S/MIME-Zertifikat, z. B. '''thomas.crt'''
* CA erstellt daraus ein S/MIME-Zertifikat, z. B. '''thomas.crt'''
 
  
 
== Empfang des Zertifikats ==
 
== Empfang des Zertifikats ==
  
* Wenn CA-Zertifikat empfangen:
+
;Wenn CA-Zertifikat empfangen:
* Optional prüfen:
+
 
openssl x509 -in thomas.crt -text -noout
+
;Optional prüfen:
 +
*openssl x509 -in $MAIL.crt -text -noout
  
 
== Erzeugung der PKCS#12-Datei für Thunderbird ==
 
== Erzeugung der PKCS#12-Datei für Thunderbird ==
  
openssl pkcs12 -export -out thomas.p12 -inkey thomas.key -in thomas.crt -certfile ca.crt
+
*openssl pkcs12 -export -inkey $MAIL.key -in $MAIL.crt -out $MAIL.p12
  
 
== Import in Thunderbird ==
 
== Import in Thunderbird ==
 +
;Edit → Settings → Privacy & Security → Certificates → Your Certificates → Import
 +
;Select thomas.p12
 +
;Enter export password (if set)
 +
;Certificate and private key are now available
  
* Einstellungen Datenschutz & Sicherheit → Zertifikate → Ihre Zertifikate → Importieren
+
= S/MIME aktivieren in Thunderbird =
* '''thomas.p12''' auswählen
+
;Account Settings End-to-End Encryption
* Optionales Passwort eingeben
+
;Abschnitt ''S/MIME''
 +
;Auf ''Select'' neben ''Personal certificate for digital signing'' klicken
 +
;Zertifikat für '''thomas@it113.int''' auswählen
 +
;Optional: ''Digitally sign messages by default'' aktivieren
 +
;Optional: Dasselbe Zertifikat für Verschlüsselung auswählen
 +
;Speichern und Fenster schließen
 +
===Import===
 +
[[Datei:S-mime-1.png|800px]]
 +
===Auswahl===
 +
[[Datei:S-mime-2.png|500px]]

Aktuelle Version vom 26. März 2025, 05:03 Uhr

Ziel

  • Zertifikat für thomas@it113.int von zentraler CA signieren lassen
  • Private Schlüssel und CSR lokal erzeugen
  • Keine lokale Signierung

Erzeugung von Key und CSR

  • export MAIL=thomas@it113.int
  • openssl req -new -newkey rsa:4096 -nodes -keyout $MAIL.key -out $MAIL.csr -subj "/CN=$MAIL/emailAddress=$MAIL"

Übergabe an die zentrale CA

Datei thomas.csr an CA übermitteln (z. B. per Webformular oder Mail)
CA erstellt daraus ein S/MIME-Zertifikat, z. B. thomas.crt

Empfang des Zertifikats

Wenn CA-Zertifikat empfangen
Optional prüfen
  • openssl x509 -in $MAIL.crt -text -noout

Erzeugung der PKCS#12-Datei für Thunderbird

  • openssl pkcs12 -export -inkey $MAIL.key -in $MAIL.crt -out $MAIL.p12

Import in Thunderbird

Edit → Settings → Privacy & Security → Certificates → Your Certificates → Import
Select thomas.p12
Enter export password (if set)
Certificate and private key are now available

S/MIME aktivieren in Thunderbird

Account Settings → End-to-End Encryption
Abschnitt S/MIME
Auf Select neben Personal certificate for digital signing klicken
Zertifikat für thomas@it113.int auswählen
Optional
Digitally sign messages by default aktivieren
Optional
Dasselbe Zertifikat für Verschlüsselung auswählen
Speichern und Fenster schließen

Import

S-mime-1.png

Auswahl

S-mime-2.png