Skip to content

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 ​

NameDescription
cancellationTokenA cancellation token.
connectionTimeoutThe connection timeout, in seconds. Default is 10.
hostThe hostname or IP address to check.
portThe port to connect to. Default is 443.
protocolsThe 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.