preparation-scripts/installation/ca.sh
2024-11-19 20:41:21 +01:00

6 lines
290 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 ca.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates