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