ansible-role-ssh-cert/files/ssh-cert-renew

7 lines
194 B
Plaintext
Raw Permalink Normal View History

2020-09-16 14:19:19 +02:00
#!/usr/bin/env sh
set -e
ssh_ca_host="$1"
filepf="$2"
>"${filepf}-cert.pub.tmp" ssh -o BatchMode=true -i "${filepf}" "${ssh_ca_host}" renew show
mv "${filepf}-cert.pub.tmp" "${filepf}-cert.pub"