VirtualBox can't start any VM because of certificate expiration

0

So today I started my Windows Server 2008 R2 virtual machine and got an error saying this:

Result Code:  E_FAIL (0x80004005)
Component:    MachineWrap
Interface:    IMachine {5047460a-265d-4538-b23e-ddba5fb84976}

And I did take a look on the VBoxHardening.log file. I noticed several lines about crypt32.dll. But I didn't found any information about this problem on Windows 10, and I tried to reinstall VirtualBox three times. Then I checked my crypt32.dll file and it's certificate was expired.

I changed the date on computer to 05.08.2018 and it worked. But it's temporary solution as changing the date breaks many other certificates.
I'm running Windows 10 Pro (build 1809).

Here is the error in VBoxHardening.log:

1268.143c: Fatal error:
1268.143c: Error loading 'crypt32.dll': 1790 [C:\WINDOWS\system32\crypt32.dll]
52c.2528: supR3HardNtChildWaitFor[2]: Quitting: ExitCode=0x1 (rcNtWait=0x0, rcNt1=0x0, rcNt2=0x103, rcNt3=0x103, 658 ms, the end);
2f14.1988: supR3HardNtChildWaitFor[1]: Quitting: ExitCode=0x1 (rcNtWait=0x0, rcNt1=0x0, rcNt2=0x103, rcNt3=0x103, 1156 ms, the end);
windows-10
virtualbox
certificate
asked on Super User Feb 5, 2019 by dengr1065 • edited Feb 5, 2019 by dengr1065

1 Answer

0

I forgot that I have an Windows 10 ISO. So here's what I did.

First, I mounted the ISO by double-clicking on it.
Then, I opened sources\install.wim file using 7-zip.
I navigated to 1\Windows\system32\ and copied the crypt32.dll file.
Checked digital signature and it was valid.
Then I did reboot to recovery mode with command line, made a backup and replaced the file using these commands:

c:
cd WINDOWS\system32
mv crypt32.dll crypt32.dll.bak
mv C:\Users\<username>\Desktop\crypt32.dll crypt32.dll

I closed the Command Line window and did reboot to normal mode.

answered on Super User Feb 5, 2019 by dengr1065

User contributions licensed under CC BY-SA 3.0