Selbstsigniertes SSL-Zertifikat: Unterschied zwischen den Versionen

Aus MattWiki
(Die Seite wurde neu angelegt: „== Selbst signiertes Zertifikat erzeugen == '''''Evtl. Standardpfad verwenden? Standardpfad ist vermutlich /etc/ssl/xxx''''' <nowiki>mkdir -p /etc/apache2/…“)
 
Keine Bearbeitungszusammenfassung
Zeile 8: Zeile 8:
openssl req -new -x509 -days 365 -nodes -out /etc/apache2/ssl/cert.pem -keyout /etc/apache2/ssl/cert.pem</nowiki>
openssl req -new -x509 -days 365 -nodes -out /etc/apache2/ssl/cert.pem -keyout /etc/apache2/ssl/cert.pem</nowiki>


Folgende Werte eingeben:
Folgende Werte eingeben:
Country Name: DE
Country Name: DE
State or Province: .  ("." entspricht "leer")
State or Province: .  ("." entspricht "leer")
Locality Name: .
Locality Name: .
Organization Name: .
Organization Name: .
Organizational Unit Name: .
Organizational Unit Name: .
Common Name (FQDN-Name): domain.tld
Common Name (FQDN-Name): domain.tld
E-Mail Address: webmaster@localhost
E-Mail Address: webmaster@localhost


  <nowiki>ln -sf /etc/apache2/ssl/cert.pem /etc/apache2/ssl/`/usr/bin/openssl x509 -noout -hash < /etc/apache2/ssl/cert.pem`
  <nowiki>ln -sf /etc/apache2/ssl/cert.pem /etc/apache2/ssl/`/usr/bin/openssl x509 -noout -hash < /etc/apache2/ssl/cert.pem`

Version vom 2. Mai 2015, 22:46 Uhr

Selbst signiertes Zertifikat erzeugen

Evtl. Standardpfad verwenden? Standardpfad ist vermutlich /etc/ssl/xxx


mkdir -p /etc/apache2/ssl

openssl req -new -x509 -days 365 -nodes -out /etc/apache2/ssl/cert.pem -keyout /etc/apache2/ssl/cert.pem
Folgende Werte eingeben:
Country Name: DE
State or Province: .  ("." entspricht "leer")
Locality Name: .
Organization Name: .
Organizational Unit Name: .
Common Name (FQDN-Name): domain.tld
E-Mail Address: webmaster@localhost
ln -sf /etc/apache2/ssl/cert.pem /etc/apache2/ssl/`/usr/bin/openssl x509 -noout -hash < /etc/apache2/ssl/cert.pem`

chmod 600 /etc/apache2/ssl/cert.pem

Zertifikat überprüfen siehe Zertifikat überprüfen (Debian)