Update operations
The horizon client can perform update operations on certificates using the update-cert
command. This will modify the information associated with the certificate on Horizon.
The update-cert command need the 'Update (pop)' common configuration permission enabled on the profile the certificate is linked to.
|
General Parameters
|
The command asks for confirmation after the changes are computed. Use this flag to disable this behavior and proceed directly. (Optional) |
|
Use this flag to be prompted for edition of all the certificate fields. In this mode, using enter on an existing value means the value is not changed. (Optional) |
Input parameters
The update is only possible on local certificates for which you possess the key:
|
Path to the Certificate to update (PEM file, PKCS#12 file, JKS file) or cert thumbprint for Windows certificate store entries. |
|
Path to the private key of the certificate to update if it is not included in the certificate file. (Optional) |
|
Password for the PKCS#12 file to update. (Optional) |
|
Password for the JKS file to update. (Optional) |
|
Alias for the JKS file to update. (Optional) |
|
Alias password for the JKS file to update. (Optional) |
Update Parameters
An update concerns only metadata fields, that is fields added by Horizon.
|
Set the owner of the certificate. An empty string means deletion of this information. (Optional) |
|
Set the team of the certificate. An empty string means deletion of this information. (Optional) |
|
Set the contact email of the certificate. An empty string means deletion of this information. (Optional) |
|
Set the labels of the certificate. An empty string means deletion of this information. (Optional) |
|
Set the technical metadata of the certificate. To use with caution. An empty string means deletion of this information. (Optional) |
Examples
You will find below a few examples detailing how to use the client to update certificates in various context
Updating the owner of a certificate
horizon-cli update-cert --key=/path/to/key --cert=/path/to/cert --owner=newowner