summaryrefslogtreecommitdiff
path: root/config/essentials/shell/functions.sh
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2025-01-05 19:48:25 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2025-01-05 19:48:25 +0100
commit58bf86c706c5a442da4fb01ea26e06f1ed291d45 (patch)
treefbf807aae15c4f3eb467f1475f2329c8709d0e24 /config/essentials/shell/functions.sh
parent0a69f01a5f7f67bd771fd983aa8ba4146cbafcc8 (diff)
checkpoint
Diffstat (limited to 'config/essentials/shell/functions.sh')
-rw-r--r--config/essentials/shell/functions.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh
index ab257fd..f249c14 100644
--- a/config/essentials/shell/functions.sh
+++ b/config/essentials/shell/functions.sh
@@ -381,3 +381,9 @@ ssh() {
done
/usr/bin/ssh $@
}
+
+ssl_req() {
+ [ "$1" ] || return 1
+ [ "$2" ] || return 2
+ openssl req -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out "$1" -keyout "$2"
+}