Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

vbox additions certificate is expired #230

Closed
rjhornsby opened this issue Feb 28, 2017 · 2 comments
Closed

vbox additions certificate is expired #230

rjhornsby opened this issue Feb 28, 2017 · 2 comments

Comments

@rjhornsby
Copy link

The included vbox guest additions certificate is expired:

$ keytool -printcert -file oracle-cert.cer
Owner: CN=Oracle Corporation, OU=VirtualBox, OU=Digital ID Class 3 - Microsoft Software Validation v2, O=Oracle Corporation, L=Redwood Shores, ST=California, C=US
Issuer: CN=VeriSign Class 3 Code Signing 2010 CA, OU=Terms of use at https://www.verisign.com/rpa (c)10, OU=VeriSign Trust Network, O="VeriSign, Inc.", C=US
Serial number: 51ca009816fdbd80f120e015ee75823e
Valid from: Sun Dec 22 18:00:00 CST 2013 until: Thu Dec 22 17:59:59 CST 2016
...

The certificate will still install in Windows, but causes the scripted vbox additions installation to fail silently.

Logged PR 229 with updated certificate.

@nap
Copy link

nap commented Mar 16, 2017

Replacing the virtualbox goto label definition with the following would also work.
It would also effectively remove the need to maintain the certificate.

:virtualbox
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:\Windows\Temp\virtualbox\cert\VBoxCertUtil add-trusted-publisher C:\Windows\Temp\virtualbox\cert\vbox-sha1.cer --root C:\Windows\Temp\virtualbox\cert\vbox-sha1.cer
cmd /c C:\Windows\Temp\virtualbox\cert\VBoxCertUtil add-trusted-publisher C:\Windows\Temp\virtualbox\cert\vbox-sha256.cer --root C:\Windows\Temp\virtualbox\cert\vbox-sha256.cer
cmd /c C:\Windows\Temp\virtualbox\cert\VBoxCertUtil add-trusted-publisher C:\Windows\Temp\virtualbox\cert\vbox-sha256-r3.cer --root C:\Windows\Temp\virtualbox\cert\vbox-sha256-r3.cer
cmd /c C:\Windows\Temp\virtualbox\VBoxWindowsAdditions.exe /S

@StefanScherer
Copy link
Collaborator

Fixed with #247

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants