| 76 | === Only for 64 bit builds: setting up self signing === |
| 77 | |
| 78 | Part 1: creating and installing the test certificate |
| 79 | 1. Launch an elevated command line shell (Vista and later). |
| 80 | 1. {{{makecert.exe -r -pe -ss my -n "CN=MyTestCertificate" mytestcert.cer}}} |
| 81 | 1. {{{certmgr.exe -add mytestcert.cer -s -r localMachine root}}} |
| 82 | 1. Start certmgr.exe and check that "!MyTestCertificate" is listed both under "Personal" and "Trusted Root Certification Authorities". |
| 83 | 1. Keep the mytestcert.cer file in a safe place. |
| 84 | |
| 85 | Part 2: configuring the system to run test signed code (Vista and later) |
| 86 | 1. Launch an elevated command line shell (Vista and later). |
| 87 | 1. Run {{{Bcdedit.exe -set TESTSIGNING ON}}} on an elevated cmd.exe prompt. |
| 88 | 1. {{{certmgr.exe -add mytestcert.cer -s -r localMachine root}}} |
| 89 | 1. {{{certmgr.exe -add mytestcert.cer -s -r localMachine trustedpublisher}}} |
| 90 | 1. Reboot. |
| 91 | 1. Vista: "Test Mode" will appear in all four corners of the desktop and "Microsoft (R) Windows (R) (Build 6000)" will appear on the top. Windows 7: "Test Mode<CR>Windows 7<CR>Build 7600" will appear in the lower right corner. |
| 92 | |
| 93 | Part 3: building !VirtualBox with signing enabled |
| 94 | 1. If you called the certificate something other than !MyTestCertificate you'll have make the appropriate overrides in {{{LocalConfig.kmk}}}. See the {{{Code Signing}}} section of Config.kmk for what can be overridden. |
| 95 | 1. Add {{{VBOX_SIGNING_MODE=test}}} to {{{LocalConfig.kmk}}}. |
| 96 | 1. Build (incremental is sufficient). |