33 references to GetRSAPrivateKey
dotnet-dev-certs (2)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
536key = certificate.GetRSAPrivateKey()!;
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
36using var key = c.GetRSAPrivateKey();
InMemory.FunctionalTests (4)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (4)
225using (RSA rsa = _cert.GetRSAPrivateKey()) 340using (RSA key = _cert.GetRSAPrivateKey()) 478using (RSA key = _cert.GetRSAPrivateKey()) 630using (RSA rsa = responder.GetRSAPrivateKey())
Microsoft.AspNetCore.DataProtection (1)
XmlEncryption\EncryptedXmlDecryptor.cs (1)
156using (var privateKey = keyDecryptionCert.GetRSAPrivateKey())
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
536key = certificate.GetRSAPrivateKey()!;
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (5)
CertificateManagerTests.cs (5)
189Assert.Equal("plaintext", Encoding.ASCII.GetString(exportedCertificate.GetRSAPrivateKey().Decrypt(exportedCertificate.GetRSAPrivateKey().Encrypt(Encoding.ASCII.GetBytes(message), RSAEncryptionPadding.OaepSHA256), RSAEncryptionPadding.OaepSHA256))); 303using var privateKey = httpsCertificate.GetRSAPrivateKey(); 351Assert.Equal("plaintext", Encoding.ASCII.GetString(exportedCertificate.GetRSAPrivateKey().Decrypt(exportedCertificate.GetRSAPrivateKey().Encrypt(Encoding.ASCII.GetBytes(message), RSAEncryptionPadding.OaepSHA256), RSAEncryptionPadding.OaepSHA256)));
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
536key = certificate.GetRSAPrivateKey()!;
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
36using var key = c.GetRSAPrivateKey();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (4)
225using (RSA rsa = _cert.GetRSAPrivateKey()) 340using (RSA key = _cert.GetRSAPrivateKey()) 478using (RSA key = _cert.GetRSAPrivateKey()) 630using (RSA rsa = responder.GetRSAPrivateKey())
Microsoft.Build.Tasks.Core (2)
ManifestUtil\mansign2.cs (1)
724RSA rsaPrivateKey = signer.Certificate.GetRSAPrivateKey();
ManifestUtil\SecurityUtil.cs (1)
684using (RSA rsa = cert.GetRSAPrivateKey())
PresentationUI (1)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
477using (RSA rsa = x509Certificate2.GetRSAPrivateKey())
System.Net.Security (1)
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
78using (RSAOpenSsl? rsa = (RSAOpenSsl?)target.GetRSAPrivateKey())
System.Security.Cryptography (2)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
710RSA? rsa = issuerCertificate.GetRSAPrivateKey();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (1)
190RSA? 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)
99using (RSA? rsa = cert.GetRSAPrivateKey())
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
447using (RSA? privateKey = certificate.GetRSAPrivateKey())
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
536key = certificate.GetRSAPrivateKey()!;
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
536key = certificate.GetRSAPrivateKey()!;
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
536key = certificate.GetRSAPrivateKey()!;
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
536key = certificate.GetRSAPrivateKey()!;
Templates.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
536key = certificate.GetRSAPrivateKey()!;