File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tests/KubernetesClient.Tests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ public void Cert()
196196 }
197197
198198#if NET9_0_OR_GREATER
199- var clientCertificate = X509CertificateLoader . LoadPkcs12 ( Convert . FromBase64String ( clientCertificateData ) , "" ) ;
199+ var clientCertificate = X509CertificateLoader . LoadCertificate ( Convert . FromBase64String ( clientCertificateData ) ) ;
200200#else
201201 var clientCertificate = new X509Certificate2 ( Convert . FromBase64String ( clientCertificateData ) , "" ) ;
202202#endif
@@ -310,7 +310,7 @@ public void ExternalCertificate()
310310 }
311311
312312#if NET9_0_OR_GREATER
313- var clientCertificate = X509CertificateLoader . LoadPkcs12 ( clientCertificateData , "" ) ;
313+ var clientCertificate = X509CertificateLoader . LoadCertificate ( clientCertificateData ) ;
314314#else
315315 var clientCertificate = new X509Certificate2 ( clientCertificateData , "" ) ;
316316#endif
You can’t perform that action at this time.
0 commit comments