Importing an SSL Certificate (certificate -d import)
Function
The certificate -d import command is used to import a Secure Sockets Layer (SSL) certificate to the iBMC.
Format
ipmcset -t certificate -d import -v <filepath | file_URL> <type> [passphrase]
Parameters
Parameter |
Description |
Value |
---|---|---|
filepath |
Specifies the directory in which the SSL certificate is to be imported. NOTE:
The certificate must be in the *.pfx or *.p12 format and cannot exceed 100 KB. |
Absolute path of the certificate on the iBMC, for example, /tmp/test.pfx. |
file_URL |
Specifies the URL of the SSL certificate to be imported. |
Format: protocol://username:password@IP:[port]/directory/filename Where:
NOTE:
For example, https://root:Huawei12#$@10.10.10.1:443/tmp/test.pfx. |
type |
Specifies the type of the SSL certificate. |
It has a fixed value of 1. |
passphrase |
Specifies the password for the SSL certificate. |
This password can be empty. |
Usage Guidelines
Before running this command, use a file transfer tool that supports SFTP, for example WinSCP, to transfer the SSL certificate to the specified directory (for example /tmp) of the iBMC file system.
Example
Import an SSL certificate.
iBMC:/-> ipmcset -t certificate -d import -v /tmp/test-01.pfx 1 Huawei12#$ Import certificate successfully