21 references to GetRSAPrivateKey
aspire (2)
Certificates\CertificateGeneration\CertificateManager.cs (1)
680key = certificate.GetRSAPrivateKey()!;
Certificates\CertificateGeneration\WindowsCertificateManager.cs (1)
37using var key = c.GetRSAPrivateKey();
Aspire.Hosting (1)
Dcp\DcpExecutor.cs (1)
2869using var privateKey = certificate.GetRSAPrivateKey();
dotnet-dev-certs (2)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
683key = certificate.GetRSAPrivateKey()!;
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
41using var key = c.GetRSAPrivateKey();
Microsoft.AspNetCore.DataProtection (1)
XmlEncryption\EncryptedXmlDecryptor.cs (1)
156using (var privateKey = keyDecryptionCert.GetRSAPrivateKey())
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
683key = certificate.GetRSAPrivateKey()!;
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
683key = certificate.GetRSAPrivateKey()!;
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
41using var key = c.GetRSAPrivateKey();
Microsoft.Build.Tasks.Core (2)
ManifestUtil\mansign2.cs (1)
669RSA rsaPrivateKey = signer.Certificate.GetRSAPrivateKey();
ManifestUtil\SecurityUtil.cs (1)
679using (RSA rsa = cert.GetRSAPrivateKey())
PresentationUI (1)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
474using (RSA rsa = x509Certificate2.GetRSAPrivateKey())
RepoTasks (2)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
683key = certificate.GetRSAPrivateKey()!;
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
41using var key = c.GetRSAPrivateKey();
System.Net.Security (1)
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
64using (RSAOpenSsl? rsa = (RSAOpenSsl?)target.GetRSAPrivateKey())
System.Security.Cryptography (2)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
905RSA? rsa = issuerCertificate.GetRSAPrivateKey();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (1)
192RSA? rsa = issuerCertificate.GetRSAPrivateKey();
System.Security.Cryptography.Pkcs (2)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
80return (T?)(object?)certificate.GetRSAPrivateKey();
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (1)
100using (RSA? rsa = cert.GetRSAPrivateKey())
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
460using (RSA? privateKey = certificate.GetRSAPrivateKey())
System.ServiceModel.Primitives (1)
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (1)
39_privateKey = _certificate.GetRSAPrivateKey();