.Curl.SSL.VerifyHost (gb.net.curl)

Property VerifyHost As Boolean

Return or set whether curl verifies that the server certificate is for the server it is known as.

When negotiating a SSL connection, the server sends a certificate indicating its identity.

When this property is set, that certificate must indicate that the server is the server to which you meant to connect, or the connection fails.

Curl considers the server the intended one when the Common Name field or a Subject Alternate Name field in the certificate matches the host name in the URL to which you told Curl to connect.

When this property is not set, the connection succeeds regardless of the names in the certificate.

By default the VerifyHost property is set.

This option controls checking the server's certificate's claimed identity. The server could be lying. To control lying, see VerifyPeer. If libcurl is built against NSS and VerifyPeer is not set, the VerifyHost property is ignored.