Appearance
CheckAsync Method
Definition
- Namespace:
JASE.Network - Assembly:
JASE.Network.dll
Task<CertificateCheck> CheckAsync(string host, SslProtocols protocols, int port = null, int connectionTimeout = null, CancellationToken cancellationToken = null)
csharp
Task<CertificateCheck> CheckAsync(string host, SslProtocols protocols, int port = null, int connectionTimeout = null, CancellationToken cancellationToken = null)Performs a certificate check on the specified host and port using the specified SSL/TLS protocols, and returns a CertificateCheck containing the connection and certificate results.
Parameters
| Name | Description |
|---|---|
cancellationToken | A cancellation token. |
connectionTimeout | The connection timeout, in seconds. Default is 10. |
host | The hostname or IP address to check. |
port | The port to connect to. Default is 443. |
protocols | The SSL/TLS protocols to offer during negotiation. |
Returns
A task that returns a CertificateCheck containing the outcome of the TCP/SSL negotiation and any certificate information gathered during validation.