51 references to Cert
aspire (7)
Certificates\CertificateGeneration\CertificateManager.cs (3)
709
bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.
Cert
)));
719
bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.
Cert
)));
723
bytes = certificate.Export(X509ContentType.
Cert
);
Certificates\CertificateGeneration\MacOSCertificateManager.cs (1)
204
var certBytes = certificate.Export(X509ContentType.
Cert
);
Certificates\CertificateGeneration\UnixCertificateManager.cs (2)
219
using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.
Cert
));
671
var certBytes = certificate.Export(X509ContentType.
Cert
);
Certificates\CertificateGeneration\WindowsCertificateManager.cs (1)
90
using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.
Cert
));
Aspire.Dashboard.Tests (6)
Integration\StartupTests.cs (2)
283
initialData[DashboardConfigNames.DebugSessionServerCertificateName.ConfigKey] = Convert.ToBase64String(testCert.Export(X509ContentType.
Cert
));
1119
data[DashboardConfigNames.DebugSessionServerCertificateName.ConfigKey] = Convert.ToBase64String(testCert.Export(X509ContentType.
Cert
));
Telemetry\DashboardTelemetrySenderTests.cs (3)
40
ServerCertificate = Convert.ToBase64String(TelemetryTestHelpers.GenerateDummyCertificate().Export(X509ContentType.
Cert
)),
67
ServerCertificate = Convert.ToBase64String(TelemetryTestHelpers.GenerateDummyCertificate().Export(X509ContentType.
Cert
)),
114
ServerCertificate = isHttps ? Convert.ToBase64String(TelemetryTestHelpers.GenerateDummyCertificate().Export(X509ContentType.
Cert
)) : null,
Telemetry\DashboardTelemetryServiceTests.cs (1)
91
ServerCertificate = Convert.ToBase64String(TelemetryTestHelpers.GenerateDummyCertificate().Export(X509ContentType.
Cert
)),
Aspire.Hosting.Tests (1)
ExecutionConfigurationGathererTests.cs (1)
496
var publicCert = new X509Certificate2(certificates[i].Export(X509ContentType.
Cert
));
dotnet-dev-certs (7)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (3)
712
bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.
Cert
)));
722
bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.
Cert
)));
726
bytes = certificate.Export(X509ContentType.
Cert
);
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
204
var certBytes = certificate.Export(X509ContentType.
Cert
);
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
219
using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.
Cert
));
671
var certBytes = certificate.Export(X509ContentType.
Cert
);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
94
using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.
Cert
));
Microsoft.AspNetCore.DeveloperCertificates.XPlat (7)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (3)
712
bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.
Cert
)));
722
bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.
Cert
)));
726
bytes = certificate.Export(X509ContentType.
Cert
);
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
204
var certBytes = certificate.Export(X509ContentType.
Cert
);
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
219
using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.
Cert
));
671
var certBytes = certificate.Export(X509ContentType.
Cert
);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
94
using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.
Cert
));
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\Certificates\CertificateConfigLoader.cs (1)
265
if (X509Certificate2.GetCertContentType(certificatePath) == X509ContentType.
Cert
)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (3)
712
bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.
Cert
)));
722
bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.
Cert
)));
726
bytes = certificate.Export(X509ContentType.
Cert
);
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
204
var certBytes = certificate.Export(X509ContentType.
Cert
);
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
219
using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.
Cert
));
671
var certBytes = certificate.Export(X509ContentType.
Cert
);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
94
using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.
Cert
));
Microsoft.DotNet.HotReload.Watch (1)
src\sdk\src\Dotnet.Watch\AspireService\AspireServerService.cs (1)
92
var certBytes = _certificate.Export(X509ContentType.
Cert
);
RepoTasks (7)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (3)
712
bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.
Cert
)));
722
bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.
Cert
)));
726
bytes = certificate.Export(X509ContentType.
Cert
);
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
204
var certBytes = certificate.Export(X509ContentType.
Cert
);
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
219
using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.
Cert
));
671
var certBytes = certificate.Export(X509ContentType.
Cert
);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
94
using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.
Cert
));
System.Security.Cryptography (6)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (3)
36
/// <see cref="X509ContentType.
Cert
" /> by <see cref="X509Certificate2.GetCertContentType(byte[])"/>.
57
/// <see cref="X509ContentType.
Cert
" /> by <see cref="X509Certificate2.GetCertContentType(byte[])"/>.
81
/// <see cref="X509ContentType.
Cert
" /> by <see cref="X509Certificate2.GetCertContentType(string)"/>.
System\Security\Cryptography\X509Certificates\StorePal.Windows.Export.cs (1)
30
case X509ContentType.
Cert
:
System\Security\Cryptography\X509Certificates\X509Certificate.cs (1)
766
if (!(contentType == X509ContentType.
Cert
|| contentType == X509ContentType.SerializedCert || contentType == X509ContentType.Pkcs12))
System\Security\Cryptography\X509Certificates\X509Pal.Windows.GetCertContentType.cs (1)
83
return X509ContentType.
Cert
;
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\Pal\Windows\PkcsPalWindows.Encrypt.cs (1)
171
byte[] certEncoded = originatorCerts[i].Export(X509ContentType.
Cert
);