16 references to CertificateKeyExportFormat
Microsoft.AspNetCore.Shared.Tests (16)
src\Shared\CertificateGeneration\CertificateManager.cs (7)
284
CertificateKeyExportFormat
keyExportFormat =
CertificateKeyExportFormat
.Pfx,
604
internal void ExportCertificate(X509Certificate2 certificate, string path, bool includePrivateKey, string? password,
CertificateKeyExportFormat
format)
634
case
CertificateKeyExportFormat
.Pfx:
637
case
CertificateKeyExportFormat
.Pem:
675
if (format ==
CertificateKeyExportFormat
.Pem)
718
if (includePrivateKey && format ==
CertificateKeyExportFormat
.Pem)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (3)
99
ExportCertificate(publicCertificate, tmpFile, includePrivateKey: false, password: null,
CertificateKeyExportFormat
.Pfx);
142
ExportCertificate(candidate, certificatePath, includePrivateKey: true, null,
CertificateKeyExportFormat
.Pfx);
157
ExportCertificate(certificate, tmpFile, includePrivateKey: false, password: null,
CertificateKeyExportFormat
.Pem);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
271
ExportCertificate(certificate, certPath, includePrivateKey: false, password: null,
CertificateKeyExportFormat
.Pem);
TestCertificateManager.cs (5)
128
internal void ExportCertificateToMemory(X509Certificate2 certificate, string path, bool includePrivateKey, string? password,
CertificateKeyExportFormat
format)
158
case
CertificateKeyExportFormat
.Pfx:
161
case
CertificateKeyExportFormat
.Pem:
196
if (format ==
CertificateKeyExportFormat
.Pem)
231
if (includePrivateKey && format ==
CertificateKeyExportFormat
.Pem)