7 lines
333 B
Bash
Executable file
7 lines
333 B
Bash
Executable file
#!/bin/bash
|
|
|
|
sudo openssl genrsa -out /root/ca.key 4096
|
|
sudo openssl req -x509 -new -nodes -key /root/ca.key -sha256 -days 1024 -out /root/ca.crt -subj "/C=CH/ST=Zurich/L=Zurich/O=InterstellarNet/CN=INTERSTELLAR"
|
|
sudo cp /root/ca.crt /usr/local/share/ca-certificates/
|
|
sudo cp /root/ca.crt /etc/ssl/certs/
|
|
sudo update-ca-certificates
|