skip to main content
Using the ODBC Client : Specifying ODBC 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 client 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 client 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 client compares the server name specified in the connection string 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 client throws an exception.
If SSL encryption or certificate validation is not enabled, this attribute is ignored.

Default

None

GUI Tab

Security tab