Click or drag to resize

CertificateValidatorAddHostCertificateValidation Method

Adds the host certificate validation.

Namespace:  Koopman.CheckPoint.Common
Assembly:  CheckPoint.NET (in CheckPoint.NET.dll) Version: 0.5.1
Syntax
C#
public void AddHostCertificateValidation(
	CertificateValidation certificateValidation,
	string hostName,
	string expectedCertificateHash
)
Request Example View Source

Parameters

certificateValidation
Type: Koopman.CheckPointCertificateValidation
The certificate validation method(s) to use.
hostName
Type: SystemString
Host name for validation.
expectedCertificateHash
Type: SystemString
The expected certificate hash if pinning.
Exceptions
ExceptionCondition
Exception Cannot use different certificate validation methods under .NET 4.5. or Cannot have two differently pinned certificates for the same host under .NET 4.5. or Failed to add new host name to CertificateValidator
See Also