Weiterentwicklung

This commit is contained in:
2025-06-30 22:13:50 +02:00
parent 49ee992202
commit 87203999fe
5 changed files with 140 additions and 0 deletions

13
ca/remote_sign.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/bash
PUBKEY="$1"
USER="$2"
VALIDITY_SECONDS="$3"
CERTFILE="${PUBKEY/.pub/-cert.pub}"
ssh-keygen -s /home/alf/ca_key \
-I "$USER@temp" \
-n "$USER" \
-V +0s:+${VALIDITY_SECONDS}s \
-z $(date +%s) \
"$PUBKEY" && echo "OK: Signed $CERTFILE"