SSL certificate for localhost: Unterschied zwischen den Versionen

Aus Laemmi´s Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „ sudo openssl genrsa -out /etc/ssl/certs/localhost.key 2048 sudo openssl req -new -x509 -key /etc/ssl/certs/localhost.key -out /etc/ssl/certs/localhost.crt -…“)
 
 
Zeile 1: Zeile 1:
 +
[[Category:Terminal]]
 
  sudo openssl genrsa -out /etc/ssl/certs/localhost.key 2048
 
  sudo openssl genrsa -out /etc/ssl/certs/localhost.key 2048
  

Aktuelle Version vom 18. September 2020, 11:01 Uhr

sudo openssl genrsa -out /etc/ssl/certs/localhost.key 2048
sudo openssl req -new -x509 -key /etc/ssl/certs/localhost.key -out /etc/ssl/certs/localhost.crt -days 3650 -subj /CN=localhost
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /etc/ssl/certs/localhost.crt