246
Syntax
pki entity
entity-name
undo pki entity
entity-name
Default
No entity exists.
Views
System view
Default command level
2: System level
Parameters
entity-name
: Specifies a PKI entity name, a case-insensitive string of 1 to 15 characters.
Usage guidelines
You can configure a variety of attributes for an entity in PKI entity view. An entity is intended only for
convenience of reference by other commands.
Examples
# Create a PKI entity named
en
and enter its view.
<Sysname> system-view
[Sysname] pki entity en
[Sysname-pki-entity-en]
pki import-certificate
Use
pki import-certificate
to import a CA certificate or local certificate from a file and save it locally.
Syntax
pki import-certificate
{
ca
|
local
}
domain
domain
-
name
{
der
|
p12
|
pem
}
[
filename
filename
]
Views
System view
Default command level
2: System level
Parameters
ca
: Specifies the CA certificate.
local
: Specifies the local certificate.
domain
-
name
: Specifies a PKI domain by its name, a string of 1 to 15 characters.
der
: Specifies the certificate format of DER.
p12
: Specifies the certificate format of P12.
pem
: Specifies the certificate format of PEM.
filename
filename
: Specifies the name of the certificate file to import, a case-insensitive string of 1 to
127 characters. If no file is specified, the system uses the default file name that is used when the
certificate is obtained, that is
domain-name_ca.cer, domain-name_local.cer, or
domain-name_peerentity_entity-name.cer
.