Bug ID 545081: "tmsh install sys crypto cert" command fails to overwrite existing certificate

Last Modified: Jun 30, 2019

Bug Tracker

Affected Product:  See more info
BIG-IP TMOS(all modules)

Known Affected Versions:
11.5.1, 11.5.1 HF1, 11.5.1 HF10, 11.5.1 HF11, 11.5.1 HF2, 11.5.1 HF3, 11.5.1 HF4, 11.5.1 HF5, 11.5.1 HF6, 11.5.1 HF7, 11.5.1 HF8, 11.5.1 HF9, 11.5.2, 11.5.2 HF1, 11.5.3, 11.5.3 HF1, 11.5.3 HF2, 11.5.4, 11.5.4 HF1, 11.5.4 HF2, 11.5.4 HF3, 11.5.4 HF4, 11.5.5, 11.5.6, 11.5.7, 11.5.8, 11.5.9, 11.6.0, 11.6.0 HF1, 11.6.0 HF2, 11.6.0 HF3, 11.6.0 HF4, 11.6.0 HF5, 11.6.0 HF6, 11.6.0 HF7, 11.6.0 HF8, 11.6.1, 11.6.1 HF1, 11.6.1 HF2, 11.6.2, 11.6.2 HF1, 11.6.3, 11.6.3.1, 11.6.3.2, 11.6.3.3, 11.6.3.4, 11.6.4

Fixed In:
12.0.0

Opened: Sep 10, 2015
Severity: 3-Major

Symptoms

When using "tmsh install sys crypto cert cert_name from-local-file /cert_path/cert_file.crt" command, if a cert with the same name has already exists, it should still allow the cert import and overwrite the existing cert if "no-overwrite" is not specified in this tmsh command. However, it fails to overwrite the cert in this case, and still complains that "The requested cert(cert_name.crt) already exists in this scope."

Impact

Unable to simultaneously update and overwrite a certificate using tmsh.

Conditions

-- Using "tmsh install sys crypto cert" to import a cert -- The "no-overwrite" option is not specified in the tmsh command. -- The specified cert name already exists.

Workaround

Although you cannot simultaneously update and overwrite the cert using tmsh, you can achieve the same result using these separate steps: 1. To remove the cert, which prevents the existing cert-overwrite situation, run the following command: tmsh install sys crypto cert cert_name. 2. Run the following command to update the cert: tmsh cert import command.

Fix Information

The existing cert can be overwritten using the tmsh cert import command "tmsh install sys crypto cert cert_name from-local-file /cert_path/cert_file.crt".

Behavior Change