Skip to content

Commit 8c60d5a

Browse files
committed
CustomBuildTool: Fix previous commit
1 parent 1390f91 commit 8c60d5a

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

tools/CustomBuildTool/Build.cs

+2-10
Original file line numberDiff line numberDiff line change
@@ -1331,16 +1331,8 @@ public static bool BuildDeployUploadArtifacts()
13311331
httpClientHandler.AutomaticDecompression = DecompressionMethods.All;
13321332
httpClientHandler.ServerCertificateCustomValidationCallback = (message, cert, chain, sslPolicyErrors) =>
13331333
{
1334-
// Allow this client to communicate with authenticated servers.
1335-
if (sslPolicyErrors == System.Net.Security.SslPolicyErrors.None)
1336-
return true;
1337-
1338-
// Temporarily ignore wj32.org expired certificate.
1339-
if (string.Equals(cert.GetCertHashString(), "b60cb3b6aac5f59075689fc3c7dfd561750ce100", StringComparison.OrdinalIgnoreCase))
1340-
return true;
1341-
1342-
// Do not allow this client to communicate with unauthenticated servers.
1343-
return false;
1334+
// Ignore certificate issues.
1335+
return true;
13441336
};
13451337

13461338
using (HttpClient client = new HttpClient(httpClientHandler))
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)