mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-07-02 01:35:50 +02:00
Add the Oracle root CA during packer build to fix failures caused by expired Oracle certificate in guest additions. Fixes #75
This commit is contained in:
parent
16ff6de74f
commit
3fbc4b42d4
|
@ -28,12 +28,13 @@ goto :done
|
||||||
|
|
||||||
:virtualbox
|
: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
|
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"
|
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
|
cmd /c C:\Windows\Temp\virtualbox\VBoxWindowsAdditions.exe /S
|
||||||
goto :done
|
goto :done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user