You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logger.Instance?.WriteLine($"{nameof(InternalConnectionFactory)}.{nameof(UserCertificateValidationCallback)} secure connection failed due to missing TrustedFile parameter.");
204
+
returnfalse;
205
+
}
201
206
202
-
if(otherChainStatusFlags)
207
+
#if !(NETCOREAPP1_0||NETCOREAPP1_1)// these frameworks do not have the following X509Certificate2 constructor...
208
+
// sometimes the chain policy is only a partial chain because it doesn't include a self signed root?
Logger.Instance?.WriteLine($"{nameof(InternalConnectionFactory)}.{nameof(UserCertificateValidationCallback)} secure connection failed due to chain status: {status.Status}");
205
-
returnfalse;
215
+
// Chain validated with extra roots added; accept it
Logger.Instance?.WriteLine($"{nameof(InternalConnectionFactory)}.{nameof(UserCertificateValidationCallback)} secure connection failed due to chain status: {mergedStatusFlags}");
Logger.Instance?.WriteLine($"{nameof(InternalConnectionFactory)}.{nameof(UserCertificateValidationCallback)} secure connection failed due to missing root or intermediate certificate in the certificate store, or the TrustedFile.");
@@ -252,14 +285,7 @@ private bool UserCertificateValidationCallback(object sender, X509Certificate se
252
285
}
253
286
}
254
287
255
-
Logger.Instance?.WriteLine($"{nameof(InternalConnectionFactory)}.{nameof(UserCertificateValidationCallback)} secure connection failed due to missing root or intermediate certificate in the certificate store, or the TrustedFile.");
0 commit comments