File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/Testcontainers/Builders Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ protected override X509Certificate2 GetClientCertificate()
5656 return Polyfills . X509Certificate2 . CreateFromPemFile ( clientCertificateFilePath , clientCertificateKeyFilePath ) ;
5757#elif NET9_0_OR_GREATER
5858 var certificate = X509Certificate2 . CreateFromPemFile ( clientCertificateFilePath , clientCertificateKeyFilePath ) ;
59- return OperatingSystem . IsWindows ( ) ? X509CertificateLoader . LoadCertificate ( certificate . Export ( X509ContentType . Pfx ) ) : certificate ;
59+ return OperatingSystem . IsWindows ( ) ? X509CertificateLoader . LoadPkcs12 ( certificate . Export ( X509ContentType . Pfx ) , null ) : certificate ;
6060#elif NET6_0_OR_GREATER
6161 var certificate = X509Certificate2 . CreateFromPemFile ( clientCertificateFilePath , clientCertificateKeyFilePath ) ;
6262 return OperatingSystem . IsWindows ( ) ? new X509Certificate2 ( certificate . Export ( X509ContentType . Pfx ) ) : certificate ;
You can’t perform that action at this time.
0 commit comments