sshca: Remove unused signcert script
This commit is contained in:
parent
ba7086f3b1
commit
70629e547e
2 changed files with 0 additions and 34 deletions
|
@ -1,26 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
umask 022
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Usage: $(basename "$0") <pubkey>" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
_basedir="/srv/sshca"
|
||||
_name="$1"
|
||||
|
||||
if ! echo "$_name" | grep -Eq '.foo.sh$'; then
|
||||
echo "ERROR: Only '*.foo.sh' certificates are allowed" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f "/srv/ansible/facts/${_name}" ]; then
|
||||
echo "ERROR: Cannot find host '${_name}'" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ssh-keygen -s "${_basedir}/ca/ca" -I "$_name" -n "$_name" -V -5m:+365d -h \
|
||||
"${_basedir}/pubkeys/${_name}.pub"
|
|
@ -34,11 +34,3 @@
|
|||
mode: "0755"
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: Copy signing script
|
||||
ansible.builtin.copy:
|
||||
dest: /srv/sshca/signcert.sh
|
||||
src: signcert.sh
|
||||
mode: "0755"
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue