10 references to CopyWithPrivateKey
InMemory.FunctionalTests (3)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (3)
233_cert = tmp.CopyWithPrivateKey(rsa); 865intermedCert = intermedPub.CopyWithPrivateKey(intermediateKey); 892endEntityCert = endEntityCert.CopyWithPrivateKey(eeKey);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Certificates\CertificateConfigLoader.cs (1)
110return certificate.CopyWithPrivateKey(rsa);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (3)
233_cert = tmp.CopyWithPrivateKey(rsa); 865intermedCert = intermedPub.CopyWithPrivateKey(intermediateKey); 892endEntityCert = endEntityCert.CopyWithPrivateKey(eeKey);
System.Security.Cryptography (3)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
519return certificate.CopyWithPrivateKey(rsa);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (2)
953Oids.Rsa => ExtractKeyFromPem<RSA>(keyPem, s_RsaPublicKeyPrivateKeyLabels, RSA.Create, certificate.CopyWithPrivateKey), 1024Oids.Rsa => ExtractKeyFromEncryptedPem<RSA>(keyPem, password, RSA.Create, certificate.CopyWithPrivateKey),