59 references to Cert
dotnet-dev-certs (6)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
564bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 574bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 578bytes = certificate.Export(X509ContentType.Cert);
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
204var certBytes = certificate.Export(X509ContentType.Cert);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
200using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
89using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
Microsoft.AspNetCore.DeveloperCertificates.XPlat (6)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
564bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 574bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 578bytes = certificate.Export(X509ContentType.Cert);
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
204var certBytes = certificate.Export(X509ContentType.Cert);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
200using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
89using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (1)
CertificateManagerTests.cs (1)
119Output.WriteLine($"Certificate: {certificate.Subject} '{Convert.ToBase64String(certificate.Export(X509ContentType.Cert))}'.");
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Internal\Certificates\CertificateConfigLoader.cs (1)
157if (X509Certificate2.GetCertContentType(certificatePath) == X509ContentType.Cert)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
564bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 574bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 578bytes = certificate.Export(X509ContentType.Cert);
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
204var certBytes = certificate.Export(X509ContentType.Cert);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
200using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
89using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
System.Security.Cryptography (9)
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (3)
35/// <see cref="X509ContentType.Cert" /> by <see cref="X509Certificate2.GetCertContentType(byte[])"/>. 56/// <see cref="X509ContentType.Cert" /> by <see cref="X509Certificate2.GetCertContentType(byte[])"/>. 80/// <see cref="X509ContentType.Cert" /> by <see cref="X509Certificate2.GetCertContentType(string)"/>.
System\Security\Cryptography\X509Certificates\OpenSslCertificateAssetDownloader.cs (1)
32case X509ContentType.Cert:
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (3)
74return X509ContentType.Cert; 111return X509ContentType.Cert; 120return X509ContentType.Cert;
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (1)
52case X509ContentType.Cert:
System\Security\Cryptography\X509Certificates\X509Certificate.cs (1)
689if (!(contentType == X509ContentType.Cert || contentType == X509ContentType.SerializedCert || contentType == X509ContentType.Pkcs12))
Templates.Blazor.Tests (6)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
564bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 574bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 578bytes = certificate.Export(X509ContentType.Cert);
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
204var certBytes = certificate.Export(X509ContentType.Cert);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
200using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
89using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
Templates.Blazor.WebAssembly.Auth.Tests (6)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
564bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 574bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 578bytes = certificate.Export(X509ContentType.Cert);
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
204var certBytes = certificate.Export(X509ContentType.Cert);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
200using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
89using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
Templates.Blazor.WebAssembly.Tests (6)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
564bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 574bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 578bytes = certificate.Export(X509ContentType.Cert);
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
204var certBytes = certificate.Export(X509ContentType.Cert);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
200using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
89using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
Templates.Mvc.Tests (6)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
564bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 574bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 578bytes = certificate.Export(X509ContentType.Cert);
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
204var certBytes = certificate.Export(X509ContentType.Cert);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
200using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
89using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
Templates.Tests (6)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
564bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 574bytes = Encoding.ASCII.GetBytes(PemEncoding.Write("CERTIFICATE", certificate.Export(X509ContentType.Cert))); 578bytes = certificate.Export(X509ContentType.Cert);
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
204var certBytes = certificate.Export(X509ContentType.Cert);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
200using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
89using var publicCertificate = X509CertificateLoader.LoadCertificate(certificate.Export(X509ContentType.Cert));