skip to main content
Using the ADO Client : ADO Connection Attributes : Hostname In Certificate
 

Hostname In Certificate

Attribute

HostNameInCertificate (HNIC)

Description

Specifies a host name for certificate validation. This attribute provides additional security against man-in-the-middle (MITM) attacks by ensuring that the server the driver is connecting to is the server that was requested. Consult your SSL administrator for the correct value.

Valid Values

string
where string is the host name or a server name.
If set to a host name, the driver compares the specified host name to the values included in the certificate. The connection fails if the Host Name In Certificate value does not match the value in the certificate.
If set to a #SERVERNAME#, the driver compares the server name specified in the connection URL or data source of the connection to the value of the in the certificate. The connection succeeds if the values match. If the values do not match, the connection fails and the driver throws an exception.
If SSL encryption or certificate validation is not enabled, this attribute is ignored.

Default

None

GUI Tab

Security tab