ClientCertificateValidationCompiler.Compile method
Compiles code into a TLS client certificate validation callback.
public static Func<X509Certificate2, X509Chain, SslPolicyErrors, bool> Compile(KestrunHost host,
string code, ScriptLanguage language = ScriptLanguage.CSharp)
| parameter | description |
|---|---|
| host | The Kestrun host (used for logging). |
| code | The code that forms the body of a method returning bool. The method signature is: bool Validate(X509Certificate2 certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors). |
| language | The language used for code. |
Return Value
A compiled callback delegate.
See Also
- class KestrunHost
- enum ScriptLanguage
- class ClientCertificateValidationCompiler
- namespace Kestrun.Certificates