This commit is contained in:
mercury
2023-06-05 01:46:11 +04:00
parent d9f177fdb6
commit 4ddaa86daf
12 changed files with 285 additions and 3 deletions
-1
View File
@@ -1,4 +1,3 @@
export IP=$(curl https://ipinfo.io/ip)
rm /ssh/key*
ssh-keygen -m PEM -t rsa -f /ssh/key -N ''
openssl req -newkey rsa:2048 -sha256 -nodes -x509 -days 365 -keyout /certs/self_private -out /certs/self_public -subj "/C=NN/ST=N/L=N/O=N/CN=$IP"