preparation-scripts/installation/ca.sh

8 lines
333 B
Bash
Raw Normal View History

2024-11-19 20:40:38 +01:00
#!/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"
2024-11-19 20:43:42 +01:00
sudo cp /root/ca.crt /usr/local/share/ca-certificates/
2024-11-19 21:59:42 +01:00
sudo cp /root/ca.crt /etc/ssl/certs/
2024-11-19 20:40:38 +01:00
sudo update-ca-certificates