+5
-5
lines changedFilter options
+5
-5
lines changed Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ public static X509Certificate2 GeneratePfx(KubernetesClientConfiguration config)
81
81
if (config.ClientCertificateKeyStoreFlags.HasValue)
82
82
{
83
83
#if NET9_0_OR_GREATER
84
-
X509CertificateLoader.LoadPkcs12(cert.Export(X509ContentType.Pkcs12), nullPassword, config.ClientCertificateKeyStoreFlags.Value);
84
+
cert = X509CertificateLoader.LoadPkcs12(cert.Export(X509ContentType.Pkcs12), nullPassword, config.ClientCertificateKeyStoreFlags.Value);
85
85
#else
86
86
cert = new X509Certificate2(cert.Export(X509ContentType.Pkcs12), nullPassword, config.ClientCertificateKeyStoreFlags.Value);
87
87
#endif
@@ -90,7 +90,7 @@ public static X509Certificate2 GeneratePfx(KubernetesClientConfiguration config)
90
90
else
91
91
{
92
92
#if NET9_0_OR_GREATER
93
-
X509CertificateLoader.LoadPkcs12(cert.Export(X509ContentType.Pkcs12), nullPassword);
93
+
cert = X509CertificateLoader.LoadPkcs12(cert.Export(X509ContentType.Pkcs12), nullPassword);
94
94
#else
95
95
cert = new X509Certificate2(cert.Export(X509ContentType.Pkcs12), nullPassword);
96
96
#endif
Original file line number Diff line number Diff line change
@@ -167,8 +167,8 @@ public void BasicAuth()
167
167
}
168
168
}
169
169
170
-
// this test doesn't work on OSX and is inconsistent on windows
171
-
[OperatingSystemDependentFact(Exclude = OperatingSystems.OSX | OperatingSystems.Windows)]
170
+
// this test doesn't work on OSX
171
+
[OperatingSystemDependentFact(Exclude = OperatingSystems.OSX)]
172
172
public void Cert()
173
173
{
174
174
var serverCertificateData = File.ReadAllText("assets/apiserver-pfx-data.txt");
@@ -273,7 +273,7 @@ public void Cert()
273
273
}
274
274
}
275
275
276
-
[OperatingSystemDependentFact(Exclude = OperatingSystems.OSX | OperatingSystems.Windows)]
276
+
[OperatingSystemDependentFact(Exclude = OperatingSystems.OSX)]
277
277
public void ExternalCertificate()
278
278
{
279
279
const string name = "testing_irrelevant";
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4