certutil: function failed: SEC_ERROR_LEGACY_DATABASE: The certificate/key database is in an old, unsupported format.

certutil can produce some misleading error messages. Make sure that the specified directory exists, contains the expected files, and is readable by the user running certutil.