No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - Security

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the network management feature supported by the device.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
(Optional) Installing the Local Certificate

(Optional) Installing the Local Certificate

Context

The downloaded local certificate must be imported into the device memory to take effect. The device will store the imported certificate file to the ca_config.ini file in the default directory and automatically load the certificate file after restarting.

Prerequisites

The local certificate has been downloaded, and the certificate file has been stored to the device storage.

NOTE:

To prevent a failure to install the local certificate, ensure that the certificate file size does not exceed 1 MB.

You need to manually install the local certificate when the local certificate is applied offline or the CMPv2 method is configured. When the SCEP method is configured, the device automatically downloads the local certificate.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run pki import-certificate { local realm realm-name { der | pkcs12 | pem } [ filename filename ] [ replace ] [ no-check-validate ] [ no-check-hash-alg ] | realm realm-name pem terminal password password }

    Or run pki import-certificate local realm realm-name pkcs12 filename filename [ no-check-validate ] [ no-check-hash-alg ] password password

    The local certificate is imported into the device memory.

    A key pair file may be included in the certificate file, or exist independently of the certificate file. The import methods are different.

    • A certificate file contains a key pair file.

      Run the pki import rsa-key-pair command to import the certificate and key pair files simultaneously.

      NOTE:

      If a certificate file contains a key pair file, the pki import-certificate command imports only the certificate file, but not the key pair file. To import the key pair file, run the pki import rsa-key-pair command after the pki import-certificate command.

    • The key pair file is independent of the certificate file.

      1. Import the certificate file.

        Run the pki import-certificate command.

      2. Import the key pair file.

        Run the pki import rsa-key-pair command.

  3. (Optional) Run pki set-certificate expire-prewarning day

    The expiry prewarning time of the local certificate in the device memory is configured.

    The default expiry prewarning time of the local certificate in the device memory is 7 days.

Follow-up Procedure

  • To copy the local certificate to another device, run the pki export-certificate local realm realm-name { der | pem | pkcs12 } command. Subsequently, the local certificate is exported into the device storage. Subsequently, the local certificate can be obtained through FTP or SFTP.

  • To copy a default built-in local certificate to another device, run the pki export-certificate default local filename filename command. Subsequently, the default built-in local certificate is exported into the device storage. Subsequently, the local certificate can be obtained through FTP or SFTP.

Verifying the Configuration

Run the display pki certificate local realm realm-name command to check the loaded local certificate.

Translation
Download
Updated: 2019-05-20

Document ID: EDOC1100034077

Views: 112103

Downloads: 204

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next