20 references to HasPrivateKey
dotnet-svcutil-lib (1)
CmdCredentialsProvider.cs (1)
83if (certificate.HasPrivateKey)
Microsoft.AspNetCore.DataProtection (1)
XmlEncryption\EncryptedXmlDecryptor.cs (1)
151if (!keyDecryptionCert.HasPrivateKey)
Microsoft.AspNetCore.DataProtection.Extensions.Tests (3)
DataProtectionProviderTests.cs (3)
136Assert.True(certificate.HasPrivateKey, "Cert should have a private key"); 177Assert.False(certWithoutKey.HasPrivateKey, "Cert should not have private key"); 189Assert.False(certInStore.HasPrivateKey, "Cert should not have private key");
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (6)
CertificateManagerTests.cs (6)
54Assert.False(exportedCertificate.HasPrivateKey); 58Assert.True(httpsCertificate.HasPrivateKey); 153Assert.True(exportedCertificate.HasPrivateKey); 187Assert.True(exportedCertificate.HasPrivateKey); 220Assert.False(exportedCertificate.HasPrivateKey); 349Assert.True(exportedCertificate.HasPrivateKey);
Microsoft.AspNetCore.Server.Kestrel.Core (5)
CertificateLoader.cs (1)
107=> certificate.HasPrivateKey;
Middleware\HttpsConnectionMiddleware.cs (4)
102if (!certificate.HasPrivateKey) 266Debug.Assert(!certificate.HasPrivateKey, "This should only be called with certificates that don't have a private key"); 295if (certs.Count > 0 && certs[0].HasPrivateKey) 311if (certs.Count > 0 && certs[0].HasPrivateKey)
Microsoft.Bcl.Cryptography (2)
System\Security\Cryptography\X509Certificates\X509CertificateKeyAccessors.cs (2)
94/// A new certificate with the <see cref="X509Certificate2.HasPrivateKey" /> property set to <see langword="true"/>. 171/// A new certificate with the <see cref="X509Certificate2.HasPrivateKey" /> property set to <see langword="true"/>.
PresentationUI (1)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
920if (!collection[i].HasPrivateKey)
System.Security.Cryptography.Pkcs (1)
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
214if (_privateKey == null && !Certificate.HasPrivateKey)