Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
modutil throws confusing error message when touches sql database without a prefix. It says the database is an old format what is not really true because the database is in new format (sql), the error message is just confusing. The scenario is about user that touches the database without any prefix (nor variable set) that means the user tries to use the old format of nss database that is not available.
Version-Release number of selected component (if applicable):
nss-3.15.3-4.el7
nss-tools-3.15.3-4.el7
How reproducible:
Always
Steps to Reproduce:
1. Create a nss database in new format: certutil -N -d sql:${HOME}/.pki/nssdb
(you should see cert9.db and key4.db files there).
2. List modules without nssdbprefix: modutil -list -dbdir ${HOME}/.pki/nssdb
Actual results:
modutil: function failed: SEC_ERROR_LEGACY_DATABASE: The certificate/key database is in an old, unsupported format.
Expected results:
For example: modutil: function failed: SEC_ERROR_LEGACY_DATABASE: The old unsupported format of certificate/key database is not available.
Additional info:
i:ppc64|m:ppc64 root@ibm-p730-04-lp5 [tmp.L2vnu7aNin]# ls -la /root/.pki/nssdb
total 32
drwxr-xr-x. 2 root root 70 Jan 14 08:24 .
drwxr-xr-x. 3 root root 18 Jan 14 08:24 ..
-rw-------. 1 root root 9216 Jan 14 08:24 cert9.db
-rw-------. 1 root root 11264 Jan 14 08:24 key4.db
-rw-r--r--. 1 root root 2 Jan 14 08:24 nsspassword
-rw-------. 1 root root 423 Jan 14 08:24 pkcs11.txt
i:ppc64|m:ppc64 root@ibm-p730-04-lp5 [tmp.L2vnu7aNin]# modutil -list -dbdir /root/.pki/nssdb
modutil: function failed: SEC_ERROR_LEGACY_DATABASE: The certificate/key database is in an old, unsupported format.
i:ppc64|m:ppc64 root@ibm-p730-04-lp5 [tmp.L2vnu7aNin]# modutil -list -dbdir sql:/root/.pki/nssdb
Listing of PKCS #11 Modules
-----------------------------------------------------------
1. NSS Internal PKCS #11 Module
slots: 2 slots attached
status: loaded
slot: NSS Internal Cryptographic Services
token: NSS Generic Crypto Services
slot: NSS User Private Key and Certificate Services
token: NSS Certificate DB
-----------------------------------------------------------
Comment 1Elio Maldonado Batiz
2014-03-06 22:14:00 UTC
Ales, I agrree. We should file an upstream bug and I'll probably be the one fixing this.
Comment 7Elio Maldonado Batiz
2015-08-18 18:02:29 UTC
We shouldn't include it on RHEL-7.2. This is best handled upstream where I submitted a bug for it.
This issue was not selected to be included either in Red Hat Enterprise Linux 7.7 because it is seen either as low or moderate impact to a small amount of use-cases. The next release will be in Maintenance Support 1 Phase, which means that qualified Critical and Important Security errata advisories (RHSAs) and Urgent Priority Bug Fix errata advisories (RHBAs) may be released as they become available. We will now close this issue, but if you believe that it qualifies for the Maintenance Support 1 Phase, please re-open; otherwise we recommend moving the request to Red Hat Enterprise Linux 8 if applicable.
Description of problem: modutil throws confusing error message when touches sql database without a prefix. It says the database is an old format what is not really true because the database is in new format (sql), the error message is just confusing. The scenario is about user that touches the database without any prefix (nor variable set) that means the user tries to use the old format of nss database that is not available. Version-Release number of selected component (if applicable): nss-3.15.3-4.el7 nss-tools-3.15.3-4.el7 How reproducible: Always Steps to Reproduce: 1. Create a nss database in new format: certutil -N -d sql:${HOME}/.pki/nssdb (you should see cert9.db and key4.db files there). 2. List modules without nssdbprefix: modutil -list -dbdir ${HOME}/.pki/nssdb Actual results: modutil: function failed: SEC_ERROR_LEGACY_DATABASE: The certificate/key database is in an old, unsupported format. Expected results: For example: modutil: function failed: SEC_ERROR_LEGACY_DATABASE: The old unsupported format of certificate/key database is not available. Additional info: i:ppc64|m:ppc64 root@ibm-p730-04-lp5 [tmp.L2vnu7aNin]# ls -la /root/.pki/nssdb total 32 drwxr-xr-x. 2 root root 70 Jan 14 08:24 . drwxr-xr-x. 3 root root 18 Jan 14 08:24 .. -rw-------. 1 root root 9216 Jan 14 08:24 cert9.db -rw-------. 1 root root 11264 Jan 14 08:24 key4.db -rw-r--r--. 1 root root 2 Jan 14 08:24 nsspassword -rw-------. 1 root root 423 Jan 14 08:24 pkcs11.txt i:ppc64|m:ppc64 root@ibm-p730-04-lp5 [tmp.L2vnu7aNin]# modutil -list -dbdir /root/.pki/nssdb modutil: function failed: SEC_ERROR_LEGACY_DATABASE: The certificate/key database is in an old, unsupported format. i:ppc64|m:ppc64 root@ibm-p730-04-lp5 [tmp.L2vnu7aNin]# modutil -list -dbdir sql:/root/.pki/nssdb Listing of PKCS #11 Modules ----------------------------------------------------------- 1. NSS Internal PKCS #11 Module slots: 2 slots attached status: loaded slot: NSS Internal Cryptographic Services token: NSS Generic Crypto Services slot: NSS User Private Key and Certificate Services token: NSS Certificate DB -----------------------------------------------------------