From 3fbc4b42d44f7885286055b8048df6778a99b6b5 Mon Sep 17 00:00:00 2001 From: James Barnett Date: Wed, 11 Jan 2017 15:05:32 -0600 Subject: [PATCH] Add the Oracle root CA during packer build to fix failures caused by expired Oracle certificate in guest additions. Fixes #75 --- scripts/installs/vm-guest-tools.bat | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/installs/vm-guest-tools.bat b/scripts/installs/vm-guest-tools.bat index 0be6782..387e7eb 100644 --- a/scripts/installs/vm-guest-tools.bat +++ b/scripts/installs/vm-guest-tools.bat @@ -28,12 +28,13 @@ goto :done :virtualbox -:: There needs to be Oracle CA (Certificate Authority) certificates installed in order -:: to prevent user intervention popups which will undermine a silent installation. -cmd /c certutil -addstore -f "TrustedPublisher" A:\oracle-cert.cer - move /Y C:\Users\vagrant\VBoxGuestAdditions.iso C:\Windows\Temp cmd /c ""C:\Program Files\7-Zip\7z.exe" x C:\Windows\Temp\VBoxGuestAdditions.iso -oC:\Windows\Temp\virtualbox" + +:: There needs to be Oracle CA (Certificate Authority) certificates installed in order +:: to prevent user intervention popups which will undermine a silent installation. +cmd /c certutil -addstore -f "TrustedPublisher" C:\Windows\Temp\virtualbox\cert\vbox-sha1.cer + cmd /c C:\Windows\Temp\virtualbox\VBoxWindowsAdditions.exe /S goto :done