You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewException($"Certificate with thumbprint {certThumbprint} was not found");
77
+
78
+
// Use certificate
79
+
Console.WriteLine(cert.FriendlyName);
80
+
81
+
// Consider to call Dispose() on the certificate after it's being used, avaliable in .NET 4.6 and later
73
82
}
74
-
certStore.Close();
75
-
...
76
83
```
77
84
78
85
In Java code, you access the certificate from the "Windows-MY" store using the Subject Common Name field (see [Public key certificate](https://en.wikipedia.org/wiki/Public_key_certificate)). The following code shows how to load a private key certificate:
@@ -107,10 +114,11 @@ The certificate file names are the certificate thumbprints. The following C# cod
0 commit comments