35 references to TrustLevel
Microsoft.AspNetCore.Server.Kestrel.Core (35)
KestrelServerOptions.cs (2)
416case CertificateManager.TrustLevel.Partial: 419case CertificateManager.TrustLevel.None:
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (9)
477var trustLevel = TrustCertificate(certificate); 480case TrustLevel.Full: 483case TrustLevel.Partial: 491case TrustLevel.None: 630public abstract TrustLevel GetTrustLevel(X509Certificate2 certificate); 634/// <remarks>Implementations may choose to throw, rather than returning <see cref="TrustLevel.None"/>.</remarks> 635protected abstract TrustLevel TrustCertificateCore(X509Certificate2 certificate); 874internal TrustLevel TrustCertificate(X509Certificate2 certificate) 882var trustLevel = TrustCertificateCore(certificate);
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (8)
86protected override TrustLevel TrustCertificateCore(X509Certificate2 publicCertificate) 88var oldTrustLevel = GetTrustLevel(publicCertificate); 89if (oldTrustLevel != TrustLevel.None) 91Debug.Assert(oldTrustLevel == TrustLevel.Full); // Mac trust is all or nothing 114return TrustLevel.Full; 151public override TrustLevel GetTrustLevel(X509Certificate2 certificate) 171return checkTrustProcessOutput.ExitCode == 0 ? TrustLevel.Full : TrustLevel.None;
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (10)
57public override TrustLevel GetTrustLevel(X509Certificate2 certificate) 167? TrustLevel.Partial 168: TrustLevel.Full 169: TrustLevel.None; 204protected override TrustLevel TrustCertificateCore(X509Certificate2 certificate) 255return TrustLevel.None; 264return TrustLevel.None; 348return TrustLevel.None; 440? TrustLevel.Partial 441: TrustLevel.Full;
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (6)
79protected override TrustLevel TrustCertificateCore(X509Certificate2 certificate) 87return TrustLevel.Full; 97return TrustLevel.Full; 125public override TrustLevel GetTrustLevel(X509Certificate2 certificate) 129return isTrusted ? TrustLevel.Full : TrustLevel.None;