attribute

Function

The attribute command configures the attribute rules for the issuer name, subject name, and alternative subject name of the certificate.

The undo attribute command cancels the attribute rules of the certificate.

By default, the certificate issuer name, subject name, and alternative subject name are not restricted.

Format

attribute id { alt-subject-name fqdn | { issuer-name | subject-name } dn } { ctn | equ | nctn | nequ } attribute-value

undo attribute id

undo attribute all

Parameters

Parameter Description Value
id

Indicates the ID of the certificate attribute rule.

It is an integer and ranges from 1 to 256.

alt-subject-name

Indicates the alternative subject name of the certificate.

-

fqdn

Indicates the FQDN of the entity.

-

issuer-name

Indicates the name of the certificate issuer.

-

subject-name

Indicates the subject name of the certificate.

-

dn

Indicates the DN of the entity.

-

ctn

Indicates the containing operation.

-

equ

Indicates the equivalent operation.

-

nctn

Indicates the non-containing operation.

-

nequ

Indicates the non-equivalent operation.

-

attribute-value

Indicates the attribute value of the certificate.

It is a string of 1 to 255 characters and case sensitive.

all

Indicates all attribute rules.

-

Views

PKI attribute 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.

Prerequisites

The certificate attribute group carries the attribute rules of the certificate. To use such an attribute rule, create a certificate attribute group first.

Example

# Create a certificate attribute rule, which defines that the DN of the subject name contains character string abcde.
<HUAWEI> system-view
[~HUAWEI] pki certificate attribute-group mygroup
[*HUAWEI-pki-attribute-mygroup] attribute 1 subject-name dn ctn abcde
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >