11 references to CertificateKeyExportFormat
Microsoft.AspNetCore.Shared.Tests (11)
src\Shared\CertificateGeneration\CertificateManager.cs (7)
235CertificateKeyExportFormat keyExportFormat = CertificateKeyExportFormat.Pfx, 546internal void ExportCertificate(X509Certificate2 certificate, string path, bool includePrivateKey, string? password, CertificateKeyExportFormat format) 576case CertificateKeyExportFormat.Pfx: 579case CertificateKeyExportFormat.Pem: 617if (format == CertificateKeyExportFormat.Pem) 660if (includePrivateKey && format == CertificateKeyExportFormat.Pem)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (3)
99ExportCertificate(publicCertificate, tmpFile, includePrivateKey: false, password: null, CertificateKeyExportFormat.Pfx); 142ExportCertificate(candidate, certificatePath, includePrivateKey: true, null, CertificateKeyExportFormat.Pfx); 157ExportCertificate(certificate, tmpFile, includePrivateKey: false, password: null, CertificateKeyExportFormat.Pem);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
266ExportCertificate(certificate, certPath, includePrivateKey: false, password: null, CertificateKeyExportFormat.Pem);