59 references to Export
aspire (9)
Certificates\CertificateGeneration\CertificateManager.cs (3)
711bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 721bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 725bytes = certificate.Export(X509ContentType.Cert);
Certificates\CertificateGeneration\MacOSCertificateManager.cs (1)
224var certBytes = certificate.Export(X509ContentType.Cert);
Certificates\CertificateGeneration\UnixCertificateManager.cs (2)
248using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert)); 658var certBytes = certificate.Export(X509ContentType.Cert);
Certificates\CertificateGeneration\WindowsCertificateManager.cs (1)
91using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
Utils\EnvironmentChecker\DcpConnectionChecker.cs (1)
150using var serverCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
Utils\EnvironmentChecker\DcpKubeconfig.cs (1)
105return X509CertificateLoader.LoadPkcs12(certificate.Export(X509ContentType.Pkcs12), password: null, X509KeyStorageFlags.EphemeralKeySet);
Aspire.Cli.Tests (3)
Certificates\DeveloperCertificateCacheWriteTests.cs (1)
37File.WriteAllBytes(onDiskPfxPath, certificate.Export(X509ContentType.Pfx));
Certificates\NativeCertificateToolRunnerTests.cs (1)
70certificateManager.Certificates.Add(certificate.Export(X509ContentType.Pfx));
Utils\DevCertsCheckTests.cs (1)
54return X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
324return X509CertificateLoader.LoadPkcs12(certificate.Export(X509ContentType.Pfx), password: null);
Aspire.Dashboard.Playwright.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
324return X509CertificateLoader.LoadPkcs12(certificate.Export(X509ContentType.Pfx), password: null);
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
324return X509CertificateLoader.LoadPkcs12(certificate.Export(X509ContentType.Pfx), password: null);
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1711using var publicCert = X509CertificateLoader.LoadCertificate(certificates[i].Export(X509ContentType.Cert));
Aspire.Hosting.Native.Core.Tests (1)
TestServices\DcpReadyTestHost.cs (1)
50var certificate = X509CertificateLoader.LoadPkcs12(keyedCertificate.Export(X509ContentType.Pfx), password: null);
Aspire.Hosting.Tests (5)
Dcp\DcpApiServerCertificateFixture.cs (1)
24return X509CertificateLoader.LoadPkcs12(certificate.Export(X509ContentType.Pfx), password: null);
Dcp\DcpHostNotificationTests.cs (1)
794return X509CertificateLoader.LoadPkcs12(certificate.Export(X509ContentType.Pfx), password: null, X509KeyStorageFlags.Exportable);
DeveloperCertificateServiceTests.cs (2)
66using var publicOnly = X509CertificateLoader.LoadCertificate(cert.Export(X509ContentType.Cert)); 95var pfxBytes = selfSigned.Export(X509ContentType.Pfx);
ExecutionConfigurationGathererTests.cs (1)
622using var publicCert = X509CertificateLoader.LoadCertificate(certificates[i].Export(X509ContentType.Cert));
dotnet-dev-certs (8)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (3)
712bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 722bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 726bytes = certificate.Export(X509ContentType.Cert);
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
206var certBytes = certificate.Export(X509ContentType.Cert); 309var certBytes = certificate.Export(X509ContentType.Pfx);
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
220using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert)); 672var certBytes = certificate.Export(X509ContentType.Cert);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
94using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
Infrastructure.Common (1)
CertificateManager.cs (1)
254byte[] der = certificate.Export(X509ContentType.Cert);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (3)
712bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 722bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 726bytes = certificate.Export(X509ContentType.Cert);
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
206var certBytes = certificate.Export(X509ContentType.Cert); 309var certBytes = certificate.Export(X509ContentType.Pfx);
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
220using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert)); 672var certBytes = certificate.Export(X509ContentType.Cert);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
94using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
Microsoft.AspNetCore.Server.Kestrel.Core (8)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (3)
712bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 722bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 726bytes = certificate.Export(X509ContentType.Cert);
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
206var certBytes = certificate.Export(X509ContentType.Cert); 309var certBytes = certificate.Export(X509ContentType.Pfx);
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
220using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert)); 672var certBytes = certificate.Export(X509ContentType.Cert);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
94using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
Microsoft.DotNet.HotReload.Watch (2)
src\sdk\src\Dotnet.Watch\AspireService\AspireServerService.cs (1)
92var certBytes = _certificate.Export(X509ContentType.Cert);
src\sdk\src\Dotnet.Watch\AspireService\Helpers\CertGenerator.cs (1)
41return X509CertificateLoader.LoadPkcs12(cert.Export(X509ContentType.Pfx), password: null, X509KeyStorageFlags.UserKeySet);
RepoTasks (8)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (3)
712bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 722bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 726bytes = certificate.Export(X509ContentType.Cert);
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
206var certBytes = certificate.Export(X509ContentType.Cert); 309var certBytes = certificate.Export(X509ContentType.Pfx);
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
220using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert)); 672var certBytes = certificate.Export(X509ContentType.Cert);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
94using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
System.Net.Quic (1)
System\Net\Quic\Internal\MsQuicConfiguration.cs (1)
278certificateData = certificate.Export(X509ContentType.Pkcs12);
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\Pal\Windows\PkcsPalWindows.Encrypt.cs (1)
171byte[] certEncoded = originatorCerts[i].Export(X509ContentType.Cert);