Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile HEVD using .SLN file - Errors with Self Signing Certificate #29

Open
tekwizz123 opened this issue Aug 26, 2019 · 3 comments

Comments

@tekwizz123
Copy link

When attempting to compile HEVD using the .SLN file (Visual Studio Project Solution file), the following error is returned:

Invalid argument <HEVD.crt> for property <TestCertificate>. HackSysExtremeVulnerableDriver C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets 1422

This is due to the .SLN file still using the HEVD.crt file rather than the HEVD.pfx file which is included.

After testing it appears this doesn't affect the .BAT files as they have already been altered to use the HEVD.pfx file, so only the .SLN file is affected. Discussions about this matter revealed that the issue can likely be fixed by altering the .SLN file to use the HEVD.pfx file and then supplying a valid password in the .SLN file so that HEVD.pfx can be opened and utilized by Visual Studio to sign the driver.

@hacksysteam
Copy link
Owner

Trying to figure out how to specify a password. Changing it to pfx it pops a dialog box to enter password. I have found that tag works. But it's not accepting the password.

Looking into it currently.

@hacksysteam
Copy link
Owner

I have changed the CRT to PFX in the project file and also provided Password. Visual Studio still says "Invalid certificate or password". I'm trying to debug the issue.

@mailler0xa
Copy link

mailler0xa commented Jul 3, 2021

This is coming in pretty late, but to self-sign it, in the properties page for the project,

Set the Configuration to All Configurations, select either x64 or x86/win32 Paltforms(optional)
At the Driver Settings > General, set the Target OS Version as desired (optional)
At the Driver Signing > General, set the Test Certificate option to be blank [remove the HEVD.pfx populated there, leaving it blank]

Apply the changes.

Compiling the solution should be successful now. Tested this for win32/x86 and x64 builds for Windows 7-10 platforms, on Visual Studio 2019

reference: https://docs.microsoft.com/en-us/windows-hardware/drivers/develop/signing-a-driver-during-development-and-testing

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

No branches or pull requests

3 participants