16 references to CertificateKeyExportFormat
aspire (16)
Certificates\CertificateGeneration\CertificateManager.cs (7)
284CertificateKeyExportFormat keyExportFormat = CertificateKeyExportFormat.Pfx, 648internal void ExportCertificate(X509Certificate2 certificate, string path, bool includePrivateKey, string? password, CertificateKeyExportFormat format) 678case CertificateKeyExportFormat.Pfx: 681case CertificateKeyExportFormat.Pem: 719if (format == CertificateKeyExportFormat.Pem) 762if (includePrivateKey && format == CertificateKeyExportFormat.Pem)
Certificates\CertificateGeneration\MacOSCertificateManager.cs (7)
110ExportCertificate(publicCertificate, tmpFile, includePrivateKey: false, password: null, CertificateKeyExportFormat.Pfx); 155ExportCertificate(candidate, onDiskPfxPath, includePrivateKey: true, null, CertificateKeyExportFormat.Pfx); 174ExportCertificate(certificate, tmpFile, includePrivateKey: false, password: null, CertificateKeyExportFormat.Pem); 334ExportCertificate(certificate, GetCertificateFilePath(certificate), includePrivateKey: true, null, CertificateKeyExportFormat.Pfx); 337ExportCertificate(certificate, Path.Combine(s_aspireDevCertsCacheDirectory, $"{aspireLookup}.pfx"), includePrivateKey: true, null, CertificateKeyExportFormat.Pfx); 405ExportCertificate(certificate, onDiskPfxPath, includePrivateKey: true, password: null, CertificateKeyExportFormat.Pfx); 413ExportCertificate(diskCert, Path.Combine(s_aspireDevCertsCacheDirectory, $"{aspireLookup}.pfx"), includePrivateKey: true, null, CertificateKeyExportFormat.Pfx);
Certificates\CertificateGeneration\UnixCertificateManager.cs (1)
300ExportCertificate(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);