NWebsec.Owin by André N. Klingsheim

<PackageReference Include="NWebsec.Owin" Version="2.1.1" />

 IFluentHpkpOptions

public interface IFluentHpkpOptions : IFluentInterface
Fluent interface to configure options for Http Strict Transport Security.

Specifies that the HPKP header should also be set for HTTP responses. The header is always set for HTTPS responses.

Enables the IncludeSubdomains directive in the HPKP header.

IFluentHpkpOptions MaxAge(int days = 0, int hours = 0, int minutes = 0, int seconds = 0)

Specifies the max age for the HPKP header.

IFluentHpkpOptions PinCertificate(string thumbprint, StoreLocation storeLocation = 2, StoreName storeName = 5)

Specifies a certificate that should be pinned in the HPKP header.

IFluentHpkpOptions ReportUri(string reportUri)

Specifies a report URI where the browser can send HPKP violations.

Specifies one or more certificate pins to include in the HPKP header. A certificate pin is the Base64 encoded SHA-256 hash value of a certficate's SPKI.