50 references to Cert
aspire (8)
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));
Aspire.Cli.Tests (1)
Utils\DevCertsCheckTests.cs (1)
54return X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1711using var publicCert = X509CertificateLoader.LoadCertificate(certificates[i].Export(X509ContentType.Cert));
Aspire.Hosting.Tests (2)
DeveloperCertificateServiceTests.cs (1)
66using var publicOnly = X509CertificateLoader.LoadCertificate(cert.Export(X509ContentType.Cert));
ExecutionConfigurationGathererTests.cs (1)
622using var publicCert = X509CertificateLoader.LoadCertificate(certificates[i].Export(X509ContentType.Cert));
dotnet-dev-certs (7)
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 (1)
206var certBytes = certificate.Export(X509ContentType.Cert);
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 (7)
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 (1)
206var certBytes = certificate.Export(X509ContentType.Cert);
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)
Internal\Certificates\CertificateConfigLoader.cs (1)
265if (X509Certificate2.GetCertContentType(certificatePath) == X509ContentType.Cert)
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 (1)
206var certBytes = certificate.Export(X509ContentType.Cert);
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 (1)
src\sdk\src\Dotnet.Watch\AspireService\AspireServerService.cs (1)
92var certBytes = _certificate.Export(X509ContentType.Cert);
RepoTasks (7)
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 (1)
206var certBytes = certificate.Export(X509ContentType.Cert);
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.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)
30case X509ContentType.Cert:
System\Security\Cryptography\X509Certificates\X509Certificate.cs (1)
766if (!(contentType == X509ContentType.Cert || contentType == X509ContentType.SerializedCert || contentType == X509ContentType.Pkcs12))
System\Security\Cryptography\X509Certificates\X509Pal.Windows.GetCertContentType.cs (1)
83return X509ContentType.Cert;
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\Pal\Windows\PkcsPalWindows.Encrypt.cs (1)
171byte[] certEncoded = originatorCerts[i].Export(X509ContentType.Cert);