16 references to CertificateKeyExportFormat
aspire (16)
Certificates\CertificateGeneration\CertificateManager.cs (7)
283CertificateKeyExportFormat keyExportFormat = CertificateKeyExportFormat.Pfx, 647internal void ExportCertificate(X509Certificate2 certificate, string path, bool includePrivateKey, string? password, CertificateKeyExportFormat format) 677case CertificateKeyExportFormat.Pfx: 680case CertificateKeyExportFormat.Pem: 718if (format == CertificateKeyExportFormat.Pem) 761if (includePrivateKey && format == CertificateKeyExportFormat.Pem)
Certificates\CertificateGeneration\MacOSCertificateManager.cs (7)
110ExportCertificate(publicCertificate, tmpFile, includePrivateKey: false, password: null, CertificateKeyExportFormat.Pfx); 156ExportCertificate(candidate, onDiskPfxPath, includePrivateKey: true, null, CertificateKeyExportFormat.Pfx); 175ExportCertificate(certificate, tmpFile, includePrivateKey: false, password: null, CertificateKeyExportFormat.Pem); 328ExportCertificate(certificate, GetCertificateFilePath(certificate), includePrivateKey: true, null, CertificateKeyExportFormat.Pfx); 331ExportCertificate(certificate, Path.Combine(s_aspireDevCertsCacheDirectory, $"{aspireLookup}.pfx"), includePrivateKey: true, null, CertificateKeyExportFormat.Pfx); 398ExportCertificate(certificate, onDiskPfxPath, includePrivateKey: true, password: null, CertificateKeyExportFormat.Pfx); 406ExportCertificate(diskCert, Path.Combine(s_aspireDevCertsCacheDirectory, $"{aspireLookup}.pfx"), includePrivateKey: true, null, CertificateKeyExportFormat.Pfx);
Certificates\CertificateGeneration\UnixCertificateManager.cs (1)
296ExportCertificate(certificate, certPath, includePrivateKey: false, password: null, CertificateKeyExportFormat.Pem);
Utils\EnvironmentChecker\DcpDeveloperCertificateCache.cs (1)
33certificateManager.ExportCertificate(certificate, certificatePath, includePrivateKey: !File.Exists(keyPath), password: null, CertificateKeyExportFormat.Pem);