summaryrefslogtreecommitdiffhomepage
path: root/bin
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-04-01 03:36:49 +0900
committerAdam Malczewski <[email protected]>2026-04-01 03:36:49 +0900
commitaec635c26ab1bb5bfb8b0ac0d7adda6ef17c2d75 (patch)
treeb6736c65074c146e615033a58427e4a5820ca35d /bin
parente872165ed8e6f761aa37d9d9222dd6eeb05984ed (diff)
downloaddispatch-web-backend-tester.tar.gz
dispatch-web-backend-tester.zip
Diffstat (limited to 'bin')
-rwxr-xr-xbin/certs12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/certs b/bin/certs
new file mode 100755
index 0000000..1b00dd6
--- /dev/null
+++ b/bin/certs
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+CERT_DIR="$(dirname "$0")/../tmp/tls"
+mkdir -p "$CERT_DIR"
+
+echo "Extracting TLS certificates from gopass..."
+gopass show tailscale/arch-razer/crt > "$CERT_DIR/cert.pem"
+gopass show tailscale/arch-razer/key > "$CERT_DIR/key.pem"
+chmod 600 "$CERT_DIR/key.pem"
+
+echo "Certificates written to $CERT_DIR"