< Home

auto-enroll

Function

The auto-enroll command enables automatic certificate enrollment and update.

The undo auto-enroll command disables automatic certificate enrollment and update.

By default, the automatic certificate enrollment and update are disabled.

Format

auto-enroll [ percent ] [ regenerate [ key-bit ] ] [ updated-effective ]

undo auto-enroll [ updated-effective ]

Parameters

Parameter

Description

Value

percent

Specifies the percentage of the certificate's validity period after which a new certificate is requested automatically.

The value is an integer that ranges from 10 to 100. The default value is 100. When the old certificate expires, the system requests a new certificate.

regenerate

Indicates the RSA key pair will be generated during certificate updates.

-

key-bit

Specifies the number of bits in the RSA key pair generated during certificate updates.

The value is an integer that ranges from 2048 to 4096. The default value is 2048.

updated-effective

Indicates that the certificate takes effect immediately after being updated. By default, an updated certificate takes effect only after the old one expires.

-

Views

PKI realm view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Automatic certificate enrollment: When the certificates are unavailable, will expire, or have expired, an entity automatically requests a new certificate or renews the certificate using the Simple Certification Enrollment Protocol (SCEP).

By default, the automatic certificate enrollment and update function is disabled. When a certificate has expired, you must request a certificate for an entity manually. You can still request a certificate for an entity manually when the automatic certificate enrollment and update function is enabled.

Precautions

  • If you do not specify regenerate, the system uses the original RSA key pairs during automatic updates.
  • If you specify regenerate, the system generates new RSA key pairs during certificate updates for certificate requests and overwrites the original certificates and RSA key pairs with the new ones.

Example

# Enable automatic certificate enrollment and update for the PKI realm abc.

<HUAWEI> system-view
[HUAWEI] pki realm abc
[HUAWEI-pki-realm-abc] auto-enroll 50 regenerate
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >