We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f9027a7 + dd35342 commit 2cc4fdfCopy full SHA for 2cc4fdf
Source/Libraries/GSF.Core/Net/Security/CertificateGenerator.cs
@@ -411,7 +411,7 @@ private static bool CanAccessPrivateKey(X509Certificate2 certificate)
411
// The point here is not only to check if the certificate has a private key,
412
// but also to attempt to access its private key, since doing so might result
413
// in a CryptographicException; certificate.HasPrivateKey will not work
414
- return certificate.PrivateKey is not null;
+ return certificate.GetRSAPrivateKey() is not null;
415
}
416
catch (CryptographicException)
417
{
0 commit comments