Skip to content

Commit 27a95f0

Browse files
committed
Merge branch 'net8ca' of https://github.com/tg123/csharp into net8ca
2 parents 3739514 + 33b5ef2 commit 27a95f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KubernetesClient/Kubernetes.ConfigInit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public static bool CertificateValidationCallBack(
218218
chain.ChainPolicy.CustomTrustStore.AddRange(caCerts);
219219
chain.ChainPolicy.TrustMode = X509ChainTrustMode.CustomRootTrust;
220220
#else
221-
throw new NotSupportedException("Custom trust store is not supported on this platform.");
221+
throw new NotSupportedException("Custom trust store requires .NET 5.0 or later. Current platform does not support this feature.");
222222
#endif
223223
var isValid = chain.Build((X509Certificate2)certificate);
224224

0 commit comments

Comments
 (0)