Skip to content

Commit 7d0ccab

Browse files
committed
Avoid nuget errors for nuget repository signature validation
Which fails randomly on macOS/Unix, see dotnet/core#6595, example https://github.com/devlooped/isbn/runs/4694726319?check_suite_focus=true This config file turns off the validation.
1 parent be8f625 commit 7d0ccab

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/nuget.config

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<config>
4+
<add key="signatureValidationMode" value="accept" />
5+
</config>
6+
<trustedSigners>
7+
<author name="Microsoft">
8+
<certificate fingerprint="3F9001EA83C560D712C24CF213C3D312CB3BFF51EE89435D3430BD06B5D0EECE" hashAlgorithm="SHA256" allowUntrustedRoot="true" />
9+
<certificate fingerprint="AA12DA22A49BCE7D5C1AE64CC1F3D892F150DA76140F210ABD2CBFFCA2C18A27" hashAlgorithm="SHA256" allowUntrustedRoot="true" />
10+
</author>
11+
<repository name="nuget.org" serviceIndex="https://api.nuget.org/v3/index.json">
12+
<certificate fingerprint="0E5F38F57DC1BCC806D8494F4F90FBCEDD988B46760709CBEEC6F4219AA6157D" hashAlgorithm="SHA256" allowUntrustedRoot="true" />
13+
<certificate fingerprint="5A2901D6ADA3D18260B9C6DFE2133C95D74B9EEF6AE0E5DC334C8454D1477DF4" hashAlgorithm="SHA256" allowUntrustedRoot="true" />
14+
<certificate fingerprint=" CF7AC17AD047ECD5FDC36822031B12D4EF078B6F2B4C5E6BA41F8FF2CF4BAD67" hashAlgorithm="SHA256" allowUntrustedRoot="true" />
15+
<certificate fingerprint="C474CE76007D02394E0DA5E4DE7C14C680F9E282013CFEF653EF5DB71FDF61F8" hashAlgorithm="SHA256" allowUntrustedRoot="true" />
16+
</repository>
17+
</trustedSigners>
18+
</configuration>

0 commit comments

Comments
 (0)