Skip to content

Commit 33b5ef2

Browse files
Update src/KubernetesClient/Kubernetes.ConfigInit.cs
Co-authored-by: Copilot <[email protected]>
1 parent 65d84f0 commit 33b5ef2

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)