Handle newer (Mojave) OpenSSL / ssh-keygen formats
@@ -238,7 +238,7 @@ EOF
done
;;
(shieldd)
- ssh-keygen -t rsa -f ${workdir}/config/shieldd_key -N '' >/dev/null
+ ssh-keygen -m PEM -t rsa -f ${workdir}/config/shieldd_key -N '' >/dev/null
rm ${workdir}/config/shieldd_key.pub
cat >${workdir}/etc/shieldd.conf <<EOF
@@ -348,7 +348,7 @@ EOF
sleep 1
done
- ssh-keygen -t rsa -f ${workdir}/var/shield-agent_key -N '' >/dev/null
+ ssh-keygen -m PEM -t rsa -f ${workdir}/var/shield-agent_key -N '' >/dev/null
rm ${workdir}/var/shield-agent_key.pub
`curl -XGET -H "X-Shield-Session: ${SHIELD_API_TOKEN}" http://127.0.0.1:${PORT}/v1/meta/pubkey >> ${workdir}/var/authorized_keys`
