validate-hostname

This command controls whether to validate the hostname in the server certificate during the handshake.

Syntax

validate-hostname on

validate-hostname off

Parameters

on
Validates the hostname in the server certificate.
off
Does not validate the hostname in the server certificate. This setting is the default value.

Guidelines

The validate-hostname command controls whether to validate the hostname in the server certificate during the handshake. When enabled, use the following commands to define the processing of the server certificate.
  • The hostname-validation-flags command to set the flags that fine tunes the validation methods and settings during the handshake.
  • The hostname-validation-fail command to control whether to terminate the handshake when hostname validation fails.
  • When the hostname-validation-fail command is set to off, use the validate-server-cert command to control whether to validate the server certificate during the handshake.
  • When the validate-server-cert command is set to on, use the valcred command to specify the name of the validation credentials to validate the server certificate during the handshake.