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