// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Security.Cryptography.X509Certificates; using System.Threading; using System.Threading.Tasks; namespace Microsoft.AspNetCore.Http.Features { public interface ITlsConnectionFeature { /// /// Synchronously retrieves the client certificate, if any. /// X509Certificate2 ClientCertificate { get; set; } /// /// Asynchronously retrieves the client certificate, if any. /// /// Task GetClientCertificateAsync(CancellationToken cancellationToken); } }