From 93d3fb894c45f6106a21a97b3926ce254272dffd Mon Sep 17 00:00:00 2001 From: Patrick Date: Tue, 19 Nov 2024 20:40:38 +0100 Subject: [PATCH] ca --- installation/ca.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 installation/ca.sh diff --git a/installation/ca.sh b/installation/ca.sh new file mode 100644 index 0000000..1b4ba2e --- /dev/null +++ b/installation/ca.sh @@ -0,0 +1,6 @@ +#!/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