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]参数说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
path | ReqBody | string | 是 | - | [{"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"" |
type | ReqBody | integer | 是 | - | [{"Type": "Enum", "Formula": [1]}] | Types are: 1 custom certificate, customized p12 or pfx certificate that contains private keys. |
passphrase | ReqBody | string | 否 | - | [{"Type": "Length", "Formula": [0, 32]}] | - |
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
IsLocalFile | RspBody | - | 否 | - | - | - |
ValidateResult | RspBody | - | 否 | - | - | - |
后端处理流
| Step | Type | Path/URI | Interface | Field/Method | Source | Destination |
|---|---|---|---|---|---|---|
| 1 | Method | /bmc/kepler/Managers/1/Security/File | bmc.kepler.Managers.Security.File | IsPermitted | - | {"Result": "Result"} |
| 2 | Method | /bmc/kepler/CertificateService | bmc.kepler.CertificateService | ImportCertificate | - | {"Extra": "Extra"} |
| 3 | Method | /bmc/kepler/CertificateService | bmc.kepler.CertificateService | ImportCertificate | - | {"Extra": "Extra"} |
| 4 | Task | /bmc/kepler/CertificateService | bmc.kepler.CertificateService | ImportCertificate | - | - |
| 5 | Task | /bmc/kepler/CertificateService | bmc.kepler.CertificateService | ImportCertificate | - | - |
使用示例
text
ipmcset -t certificate -d import -v <localpath/URL> <type> [passphrase]输出样例
| Scenario | Output | Source |
|---|---|---|
| 其他 | 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 successfully | interface_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 successfully | interface_config/cli/echoes/ipmcset/certificate_import |
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcset |
| target | certificate |
| dataitem | import |
| URI | /cli/v1/certificate/import |
| Interface Type | Patch |
| 配置来源 | interface_config/cli/ipmcset/certificate.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |