From 9c264ed6c85faa3a4f9f48864c2bf25004ab9b7b Mon Sep 17 00:00:00 2001 From: TheCakeIsNaOH Date: Tue, 12 Jul 2022 16:19:17 -0500 Subject: [PATCH] (#9) Switch to Chocolatey strongname key This adds the Chocolatey strongname keypair used for nuget-chocolatey and switches the sign.target to use it. This requires that the InternalsVisibleTo properties be updated with the new public key. Keyfile from: chocolatey/nuget-chocolatey@7e8d686 --- build/config.props | 10 ++++-- build/sign.targets | 10 ++++-- keys/chocolatey.snk | Bin 0 -> 596 bytes .../Properties/AssemblyInfo.cs | 12 +++++-- .../NuGet.Console/Properties/AssemblyInfo.cs | 16 +++++++-- .../Properties/AssemblyInfo.cs | 26 +++++++++++--- .../Properties/AssemblyInfo.cs | 12 +++++-- .../Properties/AssemblyInfo.cs | 16 ++++++--- .../NuGet.Tools/Properties/AssemblyInfo.cs | 11 +++++- .../Properties/AssemblyInfo.cs | 13 +++++-- .../Properties/AssemblyInfo.cs | 10 +++++- .../Properties/AssemblyInfo.cs | 14 ++++++-- .../Properties/AssemblyInfo.cs | 10 +++++- .../Properties/AssemblyInfo.cs | 10 +++++- .../Properties/AssemblyInfo.cs | 10 +++++- .../Properties/AssemblyInfo.cs | 10 +++++- .../Properties/AssemblyInfo.cs | 15 ++++++-- .../NuGet.Commands/Properties/AssemblyInfo.cs | 18 +++++++--- .../NuGet.Common/Properties/AssemblyInfo.cs | 10 +++++- .../Properties/AssemblyInfo.cs | 34 +++++++++++++----- .../Properties/AssemblyInfo.cs | 10 +++++- .../Properties/AssemblyInfo.cs | 10 +++++- .../NuGet.LibraryModel/AssemblyInfo.cs | 12 +++++-- .../Properties/AssemblyInfo.cs | 13 +++++-- .../Properties/AssemblyInfo.cs | 28 ++++++++++++--- .../Properties/AssemblyInfo.cs | 10 +++++- .../NuGet.Protocol/Properties/AssemblyInfo.cs | 34 +++++++++++++----- .../Test.Utility/Test.Utility.csproj | 24 ++++++++----- 28 files changed, 333 insertions(+), 75 deletions(-) create mode 100644 keys/chocolatey.snk diff --git a/build/config.props b/build/config.props index 354147c14b9..db85ed6583a 100644 --- a/build/config.props +++ b/build/config.props @@ -67,8 +67,14 @@ - $(MSBuildThisFileDirectory)..\keys\NuGetKey.snk - $(MSBuildThisFileDirectory)..\keys\35MSSharedLib1024.snk + + $(MSBuildThisFileDirectory)..\keys\chocolatey.snk + $(MSBuildThisFileDirectory)..\keys\chocolatey.snk + diff --git a/build/sign.targets b/build/sign.targets index 3dd2593c6d0..7ee6dbabecd 100644 --- a/build/sign.targets +++ b/build/sign.targets @@ -18,8 +18,14 @@ true - true - true + + false + false + $(StrongNameKey) $(DefaultStrongNameCert) diff --git a/keys/chocolatey.snk b/keys/chocolatey.snk new file mode 100644 index 0000000000000000000000000000000000000000..ed3455d270a47659ddf14b0ca5a843815ddbe7d3 GIT binary patch literal 596 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa50096$aC0j5t@HII*@J~F#{`&o#F*sxq!Yb% zg~{#31MO^XK!-I5Cu$@ba3JSEN5`Fjq53w_b5x-LkcV9|Xa1Hkm#C&n>G?qtq+ zeoT_pk*84D!$S48cXe?OZ<{@x5VR5%B6pe}_a}C|&N*VrX7P1d8J91&5Bn&az=E^; zUM%>pc&M}QxGcAVRi*i@W(b|-+kJ_o9{hqRKS2*O|ixP&+&tidM3h3$Gz?)Psw~P8<$^28(?Wopt-{0C zfgeHhJFZ)D1C{S0R4x33nQ4`8QJ8SbWbetzGol9DzK(TO2ma1RBq$!U7w1iG^_b15 zf^WTwob>8r@VO-_)uQ~ixhuoDU>bX_2pxC%2{(rakd!-&e$m?7lw*&6{qC^yBAzAA zwGI-g#yGrs=)50xu=8Yz{guOERUG;Nv=^8i6?EfV~@T3T}oj6M1;po}D8Yf29&lPDP?fuqjv@d9jO#(0VzoS-G><8t-x zqrJugNcyc>1Doa<;Mh&U1ZBy$s=DR0@YjjSOMrvJOpQ=rVbHVm=i<false + + - <_Parameter1>Dotnet.Integration.Test,PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9 + <_Parameter1>Dotnet.Integration.Test,PublicKey=00240000048000009400000006020000002400005253413100040000010001003f70732af6adf3f525d983852cc7049878c498e4f8a413bd7685c9edc503ed6c6e4087354c7c1797b7c9f6d9bd3c25cdd5f97b0e810b7dd1aaba2e489f60d17d1f03c0f4db27c63146ee64ce797e4c92d591a750d8c342f5b67775710f6f9b3d9d10b4121522779a1ff72776bcce3962ca66f1755919972fb70ffb289bc082b3 - <_Parameter1>NuGet.CommandLine.FuncTest,PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293 + <_Parameter1>NuGet.CommandLine.FuncTest,PublicKey=00240000048000009400000006020000002400005253413100040000010001003f70732af6adf3f525d983852cc7049878c498e4f8a413bd7685c9edc503ed6c6e4087354c7c1797b7c9f6d9bd3c25cdd5f97b0e810b7dd1aaba2e489f60d17d1f03c0f4db27c63146ee64ce797e4c92d591a750d8c342f5b67775710f6f9b3d9d10b4121522779a1ff72776bcce3962ca66f1755919972fb70ffb289bc082b3 - <_Parameter1>NuGet.Commands.FuncTest,PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9 + <_Parameter1>NuGet.Commands.FuncTest,PublicKey=00240000048000009400000006020000002400005253413100040000010001003f70732af6adf3f525d983852cc7049878c498e4f8a413bd7685c9edc503ed6c6e4087354c7c1797b7c9f6d9bd3c25cdd5f97b0e810b7dd1aaba2e489f60d17d1f03c0f4db27c63146ee64ce797e4c92d591a750d8c342f5b67775710f6f9b3d9d10b4121522779a1ff72776bcce3962ca66f1755919972fb70ffb289bc082b3 - <_Parameter1>NuGet.Commands.Test,PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9 + <_Parameter1>NuGet.Commands.Test,PublicKey=00240000048000009400000006020000002400005253413100040000010001003f70732af6adf3f525d983852cc7049878c498e4f8a413bd7685c9edc503ed6c6e4087354c7c1797b7c9f6d9bd3c25cdd5f97b0e810b7dd1aaba2e489f60d17d1f03c0f4db27c63146ee64ce797e4c92d591a750d8c342f5b67775710f6f9b3d9d10b4121522779a1ff72776bcce3962ca66f1755919972fb70ffb289bc082b3 - <_Parameter1>NuGet.MSSigning.Extensions.FuncTest,PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293 + <_Parameter1>NuGet.MSSigning.Extensions.FuncTest,PublicKey=00240000048000009400000006020000002400005253413100040000010001003f70732af6adf3f525d983852cc7049878c498e4f8a413bd7685c9edc503ed6c6e4087354c7c1797b7c9f6d9bd3c25cdd5f97b0e810b7dd1aaba2e489f60d17d1f03c0f4db27c63146ee64ce797e4c92d591a750d8c342f5b67775710f6f9b3d9d10b4121522779a1ff72776bcce3962ca66f1755919972fb70ffb289bc082b3 - <_Parameter1>NuGet.Packaging.Test,PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9 + <_Parameter1>NuGet.Packaging.Test,PublicKey=00240000048000009400000006020000002400005253413100040000010001003f70732af6adf3f525d983852cc7049878c498e4f8a413bd7685c9edc503ed6c6e4087354c7c1797b7c9f6d9bd3c25cdd5f97b0e810b7dd1aaba2e489f60d17d1f03c0f4db27c63146ee64ce797e4c92d591a750d8c342f5b67775710f6f9b3d9d10b4121522779a1ff72776bcce3962ca66f1755919972fb70ffb289bc082b3 - <_Parameter1>NuGet.Packaging.FuncTest,PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9 + <_Parameter1>NuGet.Packaging.FuncTest,PublicKey=00240000048000009400000006020000002400005253413100040000010001003f70732af6adf3f525d983852cc7049878c498e4f8a413bd7685c9edc503ed6c6e4087354c7c1797b7c9f6d9bd3c25cdd5f97b0e810b7dd1aaba2e489f60d17d1f03c0f4db27c63146ee64ce797e4c92d591a750d8c342f5b67775710f6f9b3d9d10b4121522779a1ff72776bcce3962ca66f1755919972fb70ffb289bc082b3 - <_Parameter1>NuGet.Signing.CrossFramework.Test,PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9 + <_Parameter1>NuGet.Signing.CrossFramework.Test,PublicKey=00240000048000009400000006020000002400005253413100040000010001003f70732af6adf3f525d983852cc7049878c498e4f8a413bd7685c9edc503ed6c6e4087354c7c1797b7c9f6d9bd3c25cdd5f97b0e810b7dd1aaba2e489f60d17d1f03c0f4db27c63146ee64ce797e4c92d591a750d8c342f5b67775710f6f9b3d9d10b4121522779a1ff72776bcce3962ca66f1755919972fb70ffb289bc082b3 + +