diff options
author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2014-01-22 22:11:22 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2014-01-22 22:11:22 -0800 |
commit | a0916b926f3db36dccb3b2ce07eb6dd2e6b04909 (patch) | |
tree | 4d9914443cf243057809e1350a8d37538da79d74 /windows | |
parent | 2da6a7570b1bdbb99da9662c7e66c3028f342a5d (diff) | |
download | infinitytier-a0916b926f3db36dccb3b2ce07eb6dd2e6b04909.tar.gz infinitytier-a0916b926f3db36dccb3b2ce07eb6dd2e6b04909.zip |
Finally got the Windows x64 driver signed correctly. Turns out signtool.exe with the older (NDIS5) version of the Windows DDK does not understand cross-certificates, yet it blithely continues on and signs incorrectly anyway. Got it working by using DigiCert's own certificate tool which includes a sign files operation. Must be done manually but this doesn't have to be done often. F@!K.
Diffstat (limited to 'windows')
-rw-r--r-- | windows/TapDriver Package/TapDriver Package.vcxproj | 84 | ||||
-rw-r--r-- | windows/TapDriver/TapDriver.vcxproj | 57 | ||||
-rw-r--r-- | windows/TapDriver/testcert.pfx | bin | 2651 -> 0 bytes |
3 files changed, 129 insertions, 12 deletions
diff --git a/windows/TapDriver Package/TapDriver Package.vcxproj b/windows/TapDriver Package/TapDriver Package.vcxproj index 3f0d1df0..86d2505a 100644 --- a/windows/TapDriver Package/TapDriver Package.vcxproj +++ b/windows/TapDriver Package/TapDriver Package.vcxproj @@ -127,6 +127,8 @@ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Vista Debug|x64'"> <TimeStampServer>http://timestamp.digicert.com/</TimeStampServer> <OutDir>$(SolutionDir)\Build\TapDriverPackage\$(Platform)\$(Configuration)\</OutDir> + <DiagnosticMode>true</DiagnosticMode> + <EnableInf2cat>true</EnableInf2cat> </PropertyGroup> <PropertyGroup> <DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor> @@ -145,42 +147,122 @@ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Win8 Debug|x64'"> <TimeStampServer>http://timestamp.digicert.com/</TimeStampServer> <OutDir>$(SolutionDir)\Build\TapDriverPackage\$(Platform)\$(Configuration)\</OutDir> + <DiagnosticMode>true</DiagnosticMode> + <EnableInf2cat>true</EnableInf2cat> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Vista Release|x64'"> <TimeStampServer>http://timestamp.digicert.com/</TimeStampServer> <OutDir>$(SolutionDir)\Build\TapDriverPackage\$(Platform)\$(Configuration)\</OutDir> + <DiagnosticMode>true</DiagnosticMode> + <EnableInf2cat>true</EnableInf2cat> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Win7 Debug|x64'"> <TimeStampServer>http://timestamp.digicert.com/</TimeStampServer> <OutDir>$(SolutionDir)\Build\TapDriverPackage\$(Platform)\$(Configuration)\</OutDir> + <DiagnosticMode>true</DiagnosticMode> + <EnableInf2cat>true</EnableInf2cat> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Win7 Release|x64'"> <TimeStampServer>http://timestamp.digicert.com/</TimeStampServer> <OutDir>$(SolutionDir)\Build\TapDriverPackage\$(Platform)\$(Configuration)\</OutDir> + <DiagnosticMode>true</DiagnosticMode> + <EnableInf2cat>true</EnableInf2cat> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Win8 Release|x64'"> <TimeStampServer>http://timestamp.digicert.com/</TimeStampServer> <OutDir>$(SolutionDir)\Build\TapDriverPackage\$(Platform)\$(Configuration)\</OutDir> + <DiagnosticMode>true</DiagnosticMode> + <EnableInf2cat>true</EnableInf2cat> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Vista Debug|Win32'"> <OutDir>$(SolutionDir)\Build\TapDriverPackage\$(Platform)\$(Configuration)\</OutDir> + <EnableInf2cat>true</EnableInf2cat> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Win8 Debug|Win32'"> <OutDir>$(SolutionDir)\Build\TapDriverPackage\$(Platform)\$(Configuration)\</OutDir> + <EnableInf2cat>true</EnableInf2cat> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Vista Release|Win32'"> <OutDir>$(SolutionDir)\Build\TapDriverPackage\$(Platform)\$(Configuration)\</OutDir> + <EnableInf2cat>true</EnableInf2cat> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Win7 Debug|Win32'"> <OutDir>$(SolutionDir)\Build\TapDriverPackage\$(Platform)\$(Configuration)\</OutDir> + <EnableInf2cat>true</EnableInf2cat> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Win7 Release|Win32'"> <OutDir>$(SolutionDir)\Build\TapDriverPackage\$(Platform)\$(Configuration)\</OutDir> + <EnableInf2cat>true</EnableInf2cat> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Win8 Release|Win32'"> <OutDir>$(SolutionDir)\Build\TapDriverPackage\$(Platform)\$(Configuration)\</OutDir> + <EnableInf2cat>true</EnableInf2cat> </PropertyGroup> - <ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Vista Debug|x64'"> + <DriverSign> + <FileDigestAlgorithm>SHA1</FileDigestAlgorithm> + </DriverSign> + <Inf2Cat> + <WindowsVersionList>8_X64;Server8_X64;Server2008R2_X64;7_X64;Server2008_X64;Vista_X64;Server2003_X64;XP_X64</WindowsVersionList> + </Inf2Cat> + <Inf2Cat> + <Verbose>true</Verbose> + </Inf2Cat> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Win8 Debug|x64'"> + <DriverSign> + <FileDigestAlgorithm>SHA1</FileDigestAlgorithm> + </DriverSign> + <Inf2Cat> + <WindowsVersionList>8_X64;Server8_X64;Server2008R2_X64;7_X64;Server2008_X64;Vista_X64;Server2003_X64;XP_X64</WindowsVersionList> + </Inf2Cat> + <Inf2Cat> + <Verbose>true</Verbose> + </Inf2Cat> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Vista Release|x64'"> + <DriverSign> + <FileDigestAlgorithm>SHA1</FileDigestAlgorithm> + </DriverSign> + <Inf2Cat> + <WindowsVersionList>8_X64;Server8_X64;Server2008R2_X64;7_X64;Server2008_X64;Vista_X64;Server2003_X64;XP_X64</WindowsVersionList> + </Inf2Cat> + <Inf2Cat> + <Verbose>true</Verbose> + </Inf2Cat> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Win7 Debug|x64'"> + <DriverSign> + <FileDigestAlgorithm>SHA1</FileDigestAlgorithm> + </DriverSign> + <Inf2Cat> + <WindowsVersionList>8_X64;Server8_X64;Server2008R2_X64;7_X64;Server2008_X64;Vista_X64;Server2003_X64;XP_X64</WindowsVersionList> + </Inf2Cat> + <Inf2Cat> + <Verbose>true</Verbose> + </Inf2Cat> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Win7 Release|x64'"> + <DriverSign> + <FileDigestAlgorithm>SHA1</FileDigestAlgorithm> + </DriverSign> + <Inf2Cat> + <WindowsVersionList>8_X64;Server8_X64;Server2008R2_X64;7_X64;Server2008_X64;Vista_X64;Server2003_X64;XP_X64</WindowsVersionList> + </Inf2Cat> + <Inf2Cat> + <Verbose>true</Verbose> + </Inf2Cat> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Win8 Release|x64'"> + <DriverSign> + <FileDigestAlgorithm>SHA1</FileDigestAlgorithm> + </DriverSign> + <Inf2Cat> + <WindowsVersionList>8_X64;Server8_X64;Server2008R2_X64;7_X64;Server2008_X64;Vista_X64;Server2003_X64;XP_X64</WindowsVersionList> + </Inf2Cat> + <Inf2Cat> + <Verbose>true</Verbose> + </Inf2Cat> </ItemDefinitionGroup> <ItemGroup> <FilesToPackage Include="@(Inf->'%(CopyOutput)')" Condition="'@(Inf)'!=''" /> diff --git a/windows/TapDriver/TapDriver.vcxproj b/windows/TapDriver/TapDriver.vcxproj index ec1d9c45..79d9c773 100644 --- a/windows/TapDriver/TapDriver.vcxproj +++ b/windows/TapDriver/TapDriver.vcxproj @@ -163,35 +163,46 @@ <TimeStampServer>http://timestamp.digicert.com/</TimeStampServer> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Vista Debug|x64'"> - <TargetName>ztTap100</TargetName> + <TargetName>zttap200</TargetName> <OutDir>$(SolutionDir)\Build\$(Platform)\$(ConfigurationName)\</OutDir> - <TimeStampServer>http://timestamp.digicert.com/</TimeStampServer> + <TimeStampServer> + </TimeStampServer> + <DiagnosticMode>true</DiagnosticMode> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Win8 Debug|x64'"> - <TargetName>ztTap100</TargetName> + <TargetName>zttap200</TargetName> <OutDir>$(SolutionDir)\Build\$(Platform)\$(ConfigurationName)\</OutDir> - <TimeStampServer>http://timestamp.digicert.com/</TimeStampServer> + <TimeStampServer> + </TimeStampServer> + <DiagnosticMode>true</DiagnosticMode> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Vista Release|x64'"> <TargetName>zttap200</TargetName> <OutDir>$(SolutionDir)\Build\$(Platform)\$(ConfigurationName)\</OutDir> - <TimeStampServer>http://timestamp.digicert.com/</TimeStampServer> + <TimeStampServer> + </TimeStampServer> <DiagnosticMode>true</DiagnosticMode> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Win7 Debug|x64'"> - <TargetName>ztTap100</TargetName> + <TargetName>zttap200</TargetName> <OutDir>$(SolutionDir)\Build\$(Platform)\$(ConfigurationName)\</OutDir> - <TimeStampServer>http://timestamp.digicert.com/</TimeStampServer> + <TimeStampServer> + </TimeStampServer> + <DiagnosticMode>true</DiagnosticMode> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Win7 Release|x64'"> - <TargetName>ztTap100</TargetName> + <TargetName>zttap200</TargetName> <OutDir>$(SolutionDir)\Build\$(Platform)\$(ConfigurationName)\</OutDir> - <TimeStampServer>http://timestamp.digicert.com/</TimeStampServer> + <TimeStampServer> + </TimeStampServer> + <DiagnosticMode>true</DiagnosticMode> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Win8 Release|x64'"> - <TargetName>ztTap100</TargetName> + <TargetName>zttap200</TargetName> <OutDir>$(SolutionDir)\Build\$(Platform)\$(ConfigurationName)\</OutDir> - <TimeStampServer>http://timestamp.digicert.com/</TimeStampServer> + <TimeStampServer> + </TimeStampServer> + <DiagnosticMode>true</DiagnosticMode> </PropertyGroup> <ItemDefinitionGroup> <ClCompile> @@ -265,6 +276,30 @@ <Link> <AdditionalDependencies Condition="'$(Configuration)|$(Platform)'=='Win8 Release|x64'">C:\WinDDK\7600.16385.1\lib\wnet\amd64\ndis.lib;C:\WinDDK\7600.16385.1\lib\wnet\amd64\ntstrsafe.lib;%(AdditionalDependencies)</AdditionalDependencies> </Link> + <DriverSign> + <FileDigestAlgorithm Condition="'$(Configuration)|$(Platform)'=='Vista Debug|x64'">SHA1</FileDigestAlgorithm> + <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Vista Debug|x64'">/t "http://timestamp.digicert.com/" /d "ZeroTier One Virtual Network Port" /sha1 5809bb3255b4f32dd93619c1cf26a7df6c282a89</AdditionalOptions> + </DriverSign> + <DriverSign> + <FileDigestAlgorithm Condition="'$(Configuration)|$(Platform)'=='Win8 Debug|x64'">SHA1</FileDigestAlgorithm> + <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Win8 Debug|x64'">/t "http://timestamp.digicert.com/" /d "ZeroTier One Virtual Network Port" /sha1 5809bb3255b4f32dd93619c1cf26a7df6c282a89</AdditionalOptions> + </DriverSign> + <DriverSign> + <FileDigestAlgorithm Condition="'$(Configuration)|$(Platform)'=='Vista Release|x64'">SHA1</FileDigestAlgorithm> + <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Vista Release|x64'">/t "http://timestamp.digicert.com/" /d "ZeroTier One Virtual Network Port" /sha1 5809bb3255b4f32dd93619c1cf26a7df6c282a89</AdditionalOptions> + </DriverSign> + <DriverSign> + <FileDigestAlgorithm Condition="'$(Configuration)|$(Platform)'=='Win7 Debug|x64'">SHA1</FileDigestAlgorithm> + <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Win7 Debug|x64'">/t "http://timestamp.digicert.com/" /d "ZeroTier One Virtual Network Port" /sha1 5809bb3255b4f32dd93619c1cf26a7df6c282a89</AdditionalOptions> + </DriverSign> + <DriverSign> + <FileDigestAlgorithm Condition="'$(Configuration)|$(Platform)'=='Win7 Release|x64'">SHA1</FileDigestAlgorithm> + <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Win7 Release|x64'">/t "http://timestamp.digicert.com/" /d "ZeroTier One Virtual Network Port" /sha1 5809bb3255b4f32dd93619c1cf26a7df6c282a89</AdditionalOptions> + </DriverSign> + <DriverSign> + <FileDigestAlgorithm Condition="'$(Configuration)|$(Platform)'=='Win8 Release|x64'">SHA1</FileDigestAlgorithm> + <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Win8 Release|x64'">/t "http://timestamp.digicert.com/" /d "ZeroTier One Virtual Network Port" /sha1 5809bb3255b4f32dd93619c1cf26a7df6c282a89</AdditionalOptions> + </DriverSign> </ItemDefinitionGroup> <ItemGroup> <Inf Include="zttap200.inf" /> diff --git a/windows/TapDriver/testcert.pfx b/windows/TapDriver/testcert.pfx Binary files differdeleted file mode 100644 index 74f6b471..00000000 --- a/windows/TapDriver/testcert.pfx +++ /dev/null |