Weird error message installing a not yet valid certificate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
New
|
Low
|
Unassigned |
Bug Description
Brief Description
-----------------
Running a restore on a VM, the playbook failed with a cryptic error message trying to reinstall the certificates from the backup. Retrying to install the certificates directly on the CLI rendered the same error message:
[sysadmin@
Certificate /tmp/ca-cert.pem not installed: Expecting value: line 1 column 1 (char 0)
After I perceived that the VM date was behind the certificate start_date, but the error message needs improvement.
Severity
--------
Minor: System/Feature is usable with minor issue
Steps to Reproduce
------------------
-Create a certificate
-Take a backup
-Revert VM
-Restore backup
Alternatively, just generate the certificate and set the system date to something before the start_date before issuing certificate-install
Expected Behavior
------------------
certificate-install fails with a meaningful message
Actual Behavior
----------------
Message is just "Certificate /tmp/ca-cert.pem not installed: Expecting value: line 1 column 1 (char 0)"
Reproducibility
---------------
4/4
System Configuration
-------
AIO-SX
Branch/Pull Time/Commit
-------
2022-08-25
Last Pass
---------
N/A
Timestamp/Logs
--------------
[sysadmin@
Certificate /tmp/ca-cert.pem not installed: Expecting value: line 1 column 1 (char 0)
[sysadmin@
ter 16 ago 2022 18:42:17 UTC
[sysadmin@
Password:
seg 29 ago 2022 15:53:32 UTC
[sysadmin@
+------
| Property | Value |
+------
| uuid | 59c7eb3c-
| certtype | ssl_ca |
| signature | ssl_ca_
| start_date | 2021-06-21 17:46:14+00:00 |
| expiry_date | 2032-09-07 17:46:14+00:00 |
| subject | O=Internet Widgits Pty Ltd,ST=
+------
+------
| Property | Value |
+------
| uuid | e0feaa68-
| certtype | ssl_ca |
| signature | ssl_ca_
| start_date | 2022-08-25 17:09:48+00:00 |
| expiry_date | 2022-11-12 17:09:48+00:00 |
| subject | CN=tbrito.
+------
+------
| Property | Value |
+------
| uuid | 238fcad9-
| certtype | ssl_ca |
| signature | ssl_ca_
| start_date | 2022-08-16 17:25:13+00:00 |
| expiry_date | 2032-08-13 17:25:13+00:00 |
| subject | CN=starlingx |
+------
Test Activity
-------------
Developer Testing
Workaround
----------
None
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.update |