ansible-role-ssh-cert/files/ssh-cert-renew
Denis Knauf 56b505cf94 init
2020-09-16 14:19:19 +02:00

7 lines
194 B
Bash
Executable file

#!/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"