rule (PKI access configuration view)

Function

The rule command configures the control rule for certificate attributes.

The undo rule command deletes the control rule for certificate attributes.

By default, no control rule is configured for certificate attributes.

Format

rule id { deny | permit } group-name

undo rule id

undo rule all

Parameters

Parameter Description Value
id

Indicates the number of the access control policy of certificate attributes.

It is an integer ranging from 1 to 256.

deny

Indicates that when the certificate matches the configured attributes in the attribute group, the certificate is invalid and cannot pass the check of the access control policy.

-

permit

Indicates that when the certificate matches the configured attributes in the attribute group, the certificate is valid and passes the check of the access control policy.

-

group-name

Indicates the name of the existing certificate attribute group.

It is a string of 1 to 31 case sensitive characters.

all

Indicates all access control rules for certificate attributes.

-

Views

PKI access configuration view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
pki write

Usage Guidelines

Usage Scenario

To verify the contents of the certificate, you can configure an attribute rule of the certificate, and reference this rule in the certificate attribute control rule, ensuring that the certificate meeting specific conditions passes the verification.

If multiple control rules are configured in a certificate attribute access control policy, the relationship among the rules is "or". That is, related action defined in the access control rule is implemented immediately after the certificate to be authenticated match one rule, and other rules are not matched.

Example

# Create a control rule for certificate attributes. When the certificate matches certificate attribute group mygroup, this certificate is valid and the passes the check of the access control policy.
<HUAWEI> system-view
[~HUAWEI] pki certificate attribute-group group1
[*HUAWEI-pki-attribute-group1] quit
[*HUAWEI] pki certificate access-control-policy policy1
[*HUAWEI-pki-access-policy1] rule 1 permit group1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >