搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How to migrate saved credentials from SQLite to JSON?

  • 2 个回答
  • 7 人有此问题
  • 52 次查看
  • 最后回复者为 jakobcornell

more options

I think this issue came up when the Debian repositories switched from IceWeasel to actual Firefox ESR. Around this time, Firefox stopped recalling saved passwords and asking to save new passwords. The list in Preferences still contained my credentials.

I consulted this page: http://kb.mozillazine.org/Password_Manager#Troubleshooting

I tried to import the credentials from SQLite using the registry key/restart process in the article, and that didn't work (the registry key was set on restart, but the credential list in Preferences was empty).

Next I tried to export to JSON using the Browser Console code in the article. The output was an empty JSON array.

How to get the Firefox gods to smile upon my migration?

I think this issue came up when the Debian repositories switched from IceWeasel to actual Firefox ESR. Around this time, Firefox stopped recalling saved passwords and asking to save new passwords. The list in Preferences still contained my credentials. I consulted this page: http://kb.mozillazine.org/Password_Manager#Troubleshooting I tried to import the credentials from SQLite using the registry key/restart process in the article, and that didn't work (the registry key was set on restart, but the credential list in Preferences was empty). Next I tried to export to JSON using the Browser Console code in the article. The output was an empty JSON array. How to get the Firefox gods to smile upon my migration?

由jakobcornell于修改

所有回复 (2)

more options

Do you have a signons.sqlite file?

Firefox can still import this file in the Password Manager if you remove the logins.json file and reset signon.importedFromSqlite via the right-click context menu to the default value.

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

more options

Oh, right. No, there's no 'signons.sqlite' in my profile, which I'm guessing is because I've been using a KDE Wallet integration add-on (https://addons.mozilla.org/en-US/firefox/addon/kde-wallet-password-integratio).

I assume Firefox was previously pulling my credentials from KDE's store, and the update broke this interoperability. The developer of the add-on has dropped off the face of the earth, so there'll be no getting help there.

I do have a 'key3.db' file and access to the plaintext username/password pairs through KDE Wallet. With these two things is there a way to produce the encrypted credentials needed to populate 'logins.json'? I think I came across a python program to do that while I was researching for this issue but I can't remember where it was.