From 64277546fc9f94795fd5be043b0906770f9a2459 Mon Sep 17 00:00:00 2001
From: Daniil Baturin <daniil@baturin.org>
Date: Wed, 1 Jan 2020 02:56:37 +0100
Subject: Use SHA1 for OVA signatures for compatibility with old VMware
 versions.

---
 scripts/build-vmware-image | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'scripts')

diff --git a/scripts/build-vmware-image b/scripts/build-vmware-image
index 6c61f9a1..51b54137 100755
--- a/scripts/build-vmware-image
+++ b/scripts/build-vmware-image
@@ -203,10 +203,10 @@ openssl sha1 *.vmdk *.ovf > vyos_vmware_image.mf
 
 # Convert the OVF to signed OVA...
 echo 'Converting the OVF to signed OVA...'
-ovftool --privateKey=$private_key vyos_vmware_image.ovf vyos_vmware_image-signed.ova
+ovftool -o --privateKey=$private_key --shaAlgorithm=SHA1 vyos_vmware_image.ovf vyos_vmware_image-signed.ova
 #ovftool vyos_vmware_image.ovf vyos_vmware_image-signed.ova
 
 # Convert the OVF to signed OVF...
 echo 'Converting the OVF to signed OVF...'
-ovftool --privateKey=$private_key vyos_vmware_image.ovf vyos_vmware_image-signed.ovf
+ovftool -o --privateKey=$private_key --shaAlgorithm=SHA1 vyos_vmware_image.ovf vyos_vmware_image-signed.ovf
 #ovftool vyos_vmware_image.ovf vyos_vmware_image-signed.ovf
-- 
cgit v1.2.3