Class BeforeSslAuthenticateEventArgs
This is used in transparent endpoint before authenticating client.
Inherited Members
Namespace: Titanium.Web.Proxy.EventArguments
Assembly: Titanium.Web.Proxy.dll
Syntax
public class BeforeSslAuthenticateEventArgs : ProxyEventArgsBase
Properties
| Improve this Doc View SourceDecryptSsl
Should we decrypt the SSL request? If true we decrypt with fake certificate. If false we relay the connection to the hostname mentioned in SniHostname.
Declaration
public bool DecryptSsl { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
ForwardHttpsHostName
We need to know the server hostname we are forwarding the request to. By default its the SNI hostname indicated in SSL handshake, when SNI is available. When SNI is not available, it will use the GenericCertificateName of TransparentEndPoint. This property is used only when DecryptSsl or when BeforeSslAuthenticateEventArgs.DecryptSsl is false. When DecryptSsl is true, we need to explicitly set the Forwarded host and port by setting e.HttpClient.Request.Url inside BeforeRequest event handler.
Declaration
public string ForwardHttpsHostName { get; set; }
Property Value
Type | Description |
---|---|
String |
ForwardHttpsPort
We need to know the server port we are forwarding the request to. By default its the standard https port, 443. This property is used only when DecryptSsl or when BeforeSslAuthenticateEventArgs.DecryptSsl is false. When DecryptSsl is true, we need to explicitly set the Forwarded host and port by setting e.HttpClient.Request.Url inside BeforeRequest event handler.
Declaration
public int ForwardHttpsPort { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
SniHostName
The server name indication hostname if available. Otherwise the GenericCertificateName property of TransparentEndPoint.
Declaration
public string SniHostName { get; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceTerminateSession()
Terminate the request abruptly by closing client/server connections.
Declaration
public void TerminateSession()