pki import-certificate

Syntax

pki import-certificate { ca | local } domain domain-name { der | p12 | pem } [ filename filename ]

View

System view

Default level

2: System level

Parameters

ca: Specifies the CA certificate.

local: Specifies the local certificate.

domain-name: Name of the PKI domain, 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, a case-insensitive string of 1 to 127 characters. If no file name is specified, the system uses the default file name that is used when the certificate is retrieved, that is, domain-name_ca.cer or domain-name_local.cer.

Description

Use pki import-certificate to import a CA certificate or local certificate from a file and save it locally.

Related commands: pki domain.

Examples

# Import the CA certificate for PKI domain cer in the PEM format.

<Sysname> system-view
[Sysname] pki import-certificate ca domain cer pem