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

Last Modified: Jan 16, 2024

Affected Product(s):
BIG-IP TMOS(all modules)

Known Affected Versions:
11.5.3, 11.5.4, 11.5.5, 11.5.6, 11.5.7, 11.5.8, 11.5.9, 11.5.10, 11.6.0, 11.6.1, 11.6.2, 11.6.3, 11.6.3.1, 11.6.3.2, 11.6.3.3, 11.6.3.4, 11.6.4, 11.6.5, 11.6.5.1, 11.6.5.2, 11.6.5.3, 12.1.0 HF1, 12.1.0 HF2, 12.1.1 HF1, 12.1.1 HF2, 12.1.2 HF1, 12.1.2 HF2

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

Guides & references

K10134038: F5 Bug Tracker Filter Names and Tips