无法将 Mozilla 的 cert9.db 与 certutil.exe 一起使用

mir*_*n80 1 certificate nss certutil

以下命令:certutil.exe -L -d \xe2\x80\x9cC:\\Users\\Home\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\1bku2z91.default-1633392324717\\\xe2\x80\x9d\n返回此错误消息:certutil.exe: function failed: SEC_ERROR_LEGACY_DATABASE: The certificate/key database is in an old, unsupported format.

\n\n

我尝试了带引号和不带引号,将反斜杠更改为正斜杠。我发现目标文件夹必须包含注释secmod.db,而我的文件夹没有包含注释,但我认为这适用于cert8.db,而不是cert9.db。我正在根据about:support查找传递正确的文件夹。我的火狐版本是66.0.3

\n

Bec*_*lla 5

您需要在文件夹位置之前添加“sql:”以指定您要读取的 sqlite 数据库,因此它将是:

\n\n
certutil.exe -L -d sql:\xe2\x80\x9cC:\\Users\\Home\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\1bku2z91.default-1633392324717\\\xe2\x80\x9d\n
Run Code Online (Sandbox Code Playgroud)\n