http-redirect ssl-server-policy
Use http-redirect ssl-server-policy to associate an SSL server policy with the HTTPS redirect service.
Use undo http-redirect ssl-server-policy to restore the default.
Syntax
http-redirect ssl-server-policy policy-name
undo http-redirect ssl-server-policy
Default
No SSL server policy is associated with the HTTPS redirect service. The HTTPS redirect service uses a self-assigned certificate and the default SSL parameters.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
policy-name: Specifies an SSL server policy by its name, a case-insensitive string of 1 to 31 characters.
Usage guidelines
HTTPS redirect is unavailable if the associated SSL server policy does not exist. You can first associate a nonexistent SSL server policy with the HTTPS redirect service and then configure the SSL server policy.
If you change the SSL server policy associated with the HTTPS redirect service, the new policy takes effect immediately.
If you perform this task multiple times, the most recent configuration takes effect.
Examples
# Associate SSL server policy policy1 with the HTTPS redirect service.
<Sysname> system-view [Sysname] http-redirect ssl-server-policy policy1
Related commands
ssl server-policy