client ssl-verify peer

Function

The client ssl-verify peer command configures an HTTP client to perform SSL verification on HTTP servers.

The undo client ssl-verify command disables an HTTP client from performing SSL verification on HTTP servers.

By default, an HTTP client does not perform SSL verification on HTTP servers.

Format

client ssl-verify peer

undo client ssl-verify

Parameters

None

Views

HTTP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
https write

Usage Guidelines

Usage Scenario

To configure an HTTP client to perform SSL verification on HTTP servers, run the client ssl-verify peer command. After the HTTP client is granted an SSL digital certificate by a server, the client can verify the validity of the server. This prevents the client from accessing invalid servers, enhancing security.

Precautions

This command takes effect only if the client ssl-policy command has also been run to configure an SSL policy for the client.

Example

# Configure an HTTP client to perform SSL verification on HTTP servers.
<HUAWEI> system-view
[~HUAWEI] http
[*HUAWEI-http] client ssl-verify peer
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >