ipmcset -t certificate -d import
更新时间: 2026/07/16
在Gitcode上查看源码

ipmcset -t certificate -d import

返回总览 | 返回命令索引

命令功能

导入证书

命令格式

text
ipmcset -t certificate -d import -v <localpath/URL> <type> [passphrase]

参数说明

NameLocationTypeRequiredDefaultConstraintDescription
pathReqBodystring-[{"Type": "Regex", "Formula": "^((https|sftp|nfs|cifs|scp)😕/.{1,1000}|/tmp/.{1,246})$"}]Localpath e.g.: /tmp/customer.pfx URL : protocol://[username:password@]IP[:port]/directory/filename The parameters in the URL are described as follows: The protocol must be https,sftp,cifs,scp or nfs. The URL can contain only letters, digits, and special characters. The directory or file name cannot contain @. Use double quotation marks (") to enclose the URL that contains a space or double quotation marks ("). Escape the double quotation marks (") and back slash () contained in the URL. For example, if you want to enter: a b\cd" Enter: "a b\cd""
typeReqBodyinteger-[{"Type": "Enum", "Formula": [1]}]Types are: 1 custom certificate, customized p12 or pfx certificate that contains private keys.
passphraseReqBodystring-[{"Type": "Length", "Formula": [0, 32]}]-

响应/输出说明

NameLocationTypeRequiredDefaultConstraintDescription
IsLocalFileRspBody----
ValidateResultRspBody----

后端处理流

StepTypePath/URIInterfaceField/MethodSourceDestination
1Method/bmc/kepler/Managers/1/Security/Filebmc.kepler.Managers.Security.FileIsPermitted-{"Result": "Result"}
2Method/bmc/kepler/CertificateServicebmc.kepler.CertificateServiceImportCertificate-{"Extra": "Extra"}
3Method/bmc/kepler/CertificateServicebmc.kepler.CertificateServiceImportCertificate-{"Extra": "Extra"}
4Task/bmc/kepler/CertificateServicebmc.kepler.CertificateServiceImportCertificate--
5Task/bmc/kepler/CertificateServicebmc.kepler.CertificateServiceImportCertificate--

使用示例

text
ipmcset -t certificate -d import -v <localpath/URL> <type> [passphrase]

输出样例

ScenarioOutputSource
其他Warning: The certificate fails to meet certain security standards, such as the signature algorithm, key length, basic constraints, or key usage. Exercise caution when using it.interface_config/cli/echoes/ipmcset/certificate_import
成功Import certificate successfullyinterface_config/cli/echoes/ipmcset/certificate_import
处理中Downloading...interface_config/cli/echoes/ipmcset/certificate_import
失败Import certificate failed.interface_config/cli/echoes/ipmcset/certificate_import
成功Warning: The certificate fails to meet certain security standards, such as the signature algorithm, key length, basic constraints, or key usage. Exercise caution when using it.interface_config/cli/echoes/ipmcset/certificate_import
成功Import certificate successfullyinterface_config/cli/echoes/ipmcset/certificate_import

来源信息

ItemValue
命令类型ipmcset
targetcertificate
dataitemimport
URI/cli/v1/certificate/import
Interface TypePatch
配置来源interface_config/cli/ipmcset/certificate.json
请求版本26.06_2026.06.30
源码提交5606349e
生成时间2026-07-16T01:48:37