Skip to content

Commit a8291ea

Browse files
committed
fix(olss): 🐛 enable sha-1 for vagrant/ol9.
The embedded ssh client in vagrant uses sha-1 for rsa keys. Fixes #71 Signed-off-by: Philippe Vanhaesendonck <philippe.vanhaesendonck@oracle.com>
1 parent d1f6011 commit a8291ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

oracle-linux-image-tools/cloud/vagrant-virtualbox/files/vagrant-common.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ vagrant::config()
4444
EOF
4545
fi
4646

47+
# For OL9 re-enable SHA1 as the vagrant embedded ssh client insists to use
48+
# SHA1 for RSA keys -- See hashicorp/vagrant#12344
49+
if [[ "${ORACLE_RELEASE}" = "9" ]]; then
50+
/bin/update-crypto-policies --set DEFAULT:SHA1
51+
fi
52+
4753
cat >>/etc/sysconfig/sshd <<EOF
4854
4955
# Decrease connection time by preventing reverse DNS lookups

0 commit comments

Comments
 (0)