Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| lx:ucs:ca [07.11.2022 15:28] – angelegt Andy Haubenschmid | lx:ucs:ca [02.04.2025 21:06] (aktuell) – [CodeSigning] Andy Haubenschmid | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== Zertifiats Authority ====== | ====== Zertifiats Authority ====== | ||
| - | {{ :lx:uni: | + | {{ :lx:ucs: |
| ===== Neues CA Zertifikat erzeugen ===== | ===== Neues CA Zertifikat erzeugen ===== | ||
| Zeile 11: | Zeile 11: | ||
| ===== neues Server Zertifikat erstellen ===== | ===== neues Server Zertifikat erstellen ===== | ||
| < | < | ||
| + | echo \(`date -d 18-Oct-2027 +' | ||
| . / | . / | ||
| declare -x ServerName=FQHN | declare -x ServerName=FQHN | ||
| Zeile 18: | Zeile 19: | ||
| </ | </ | ||
| Ändern oder Anpassen der SAN auf ca Zeile 103. Die Zeile enthält bereits '' | Ändern oder Anpassen der SAN auf ca Zeile 103. Die Zeile enthält bereits '' | ||
| + | |||
| + | Es kann auch in der Sektion | ||
| Dann die Datei '' | Dann die Datei '' | ||
| < | < | ||
| Zeile 24: | Zeile 27: | ||
| univention-certificate renew -name ${ServerName} -days 1825 | univention-certificate renew -name ${ServerName} -days 1825 | ||
| </ | </ | ||
| + | Zertifikatsfingerabdruck auslesen und auf dem Terminalserver via | ||
| + | '' | ||
| ===== sub-CA Zertifikat erstellen ===== | ===== sub-CA Zertifikat erstellen ===== | ||
| < | < | ||
| Zeile 58: | Zeile 62: | ||
| Danach den Zertifikatsrequest mit '' | Danach den Zertifikatsrequest mit '' | ||
| - | === .p12 Datei erzeugen === | + | ===== .p12 Datei erzeugen |
| < | < | ||
| export ServerName=my.domain.name | export ServerName=my.domain.name | ||
| Zeile 64: | Zeile 68: | ||
| </ | </ | ||
| [[https:// | [[https:// | ||
| + | ===== CodeSigning ===== | ||
| + | To be recognized as a CodeSigning Certificate, | ||
| + | |||
| + | To generate a CodeSigning Cert with the Univention CA, follow these steps: | ||
| + | - create a new cert by using univention-certificate new, use a name you recognize as CS Cert | ||
| + | - create a special extension file | ||
| + | - generate the cert again manually by the CA with the extension | ||
| + | - use this cert for signing | ||
| + | |||
| + | < | ||
| + | declare -x CertName=CodeSign-YourName | ||
| + | declare -x ExportPassword=SuperSecurePasswordForP12File | ||
| + | |||
| + | echo \(`date -d 18-Oct-2027 +' | ||
| + | declare -x days=`cat days` | ||
| + | |||
| + | . / | ||
| + | univention-certificate new -name " | ||
| + | cd / | ||
| + | |||
| + | echo " | ||
| + | authorityKeyIdentifier = keyid, | ||
| + | basicConstraints | ||
| + | subjectAltName | ||
| + | extendedKeyUsage | ||
| + | [alt_names] | ||
| + | DNS.1 = ${CertName} | ||
| + | " > code_sign_cert.conf | ||
| + | |||
| + | grep output_password / | ||
| + | openssl x509 -req -CA ../ | ||
| + | |||
| + | openssl pkcs12 -export -out / | ||
| + | </ | ||
| + | |||
| + | created with thanks to the infos found here: [[https:// | ||