What does key4.db do?

Discussion of general topics about Mozilla Firefox
Post Reply
User avatar
psaulm119
Posts: 646
Joined: November 4th, 2007, 2:23 pm

What does key4.db do?

Post by psaulm119 »

I created a new profile for 57 (FWIW, old profile = 160 megs; new profile = 60 megs) and saw a file named key4.db. I always copy over my key3.db file, and decided to copy over the key4 file also, just in case.

Is this needed at all, to copy over passwords into a new profile? And if not, what is its purpose?
Paul
morat
Posts: 6437
Joined: February 3rd, 2009, 6:29 pm

Re: What does key4.db do?

Post by morat »

Old format
http://www.mankier.com/5/cert8.db
http://www.mankier.com/5/key3.db

New format
http://www.mankier.com/5/cert9.db
http://www.mankier.com/5/key4.db

NSS (Network Security Services) is a set of libraries designed and maintained by Mozilla to support cross-platform development of security-enabled client and server applications.
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: What does key4.db do?

Post by Brummelchen »

those files are not new, they were introduced 2015, not only firefox, but i saw comments for linux and thunderbird.
morat
Posts: 6437
Joined: February 3rd, 2009, 6:29 pm

Re: What does key4.db do?

Post by morat »

IMO, psaulm119 should keep both formats. The NSS developers are going to stop supporting the old format.

switch Mozilla to use the cert9+key4 (aka sql) database file format
http://bugzilla.mozilla.org/show_bug.cgi?id=783994

For reading only as Bugzilla is not a forum.
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: What does key4.db do?

Post by therube »

I created a new profile for 57 ... and saw a file named key4.db.
That was with 57 or 58 where that happened?
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
psaulm119
Posts: 646
Joined: November 4th, 2007, 2:23 pm

Re: What does key4.db do?

Post by psaulm119 »

I'm not saying that key4.db was created just now, when I made my new profile, only that I just noticed it, as I normally jsut transfer over places.sqlite, key3.db, and logins.json files. But noticing the key4, I wondered if it had replaced key3, that's all. No need to copy over an unnecessary file.
therube wrote:
I created a new profile for 57 ... and saw a file named key4.db.
That was with 57 or 58 where that happened?

So for future new profiles, as far as passwords go, I only need key4 and logins.json, correct?
Paul
morat
Posts: 6437
Joined: February 3rd, 2009, 6:29 pm

Re: What does key4.db do?

Post by morat »

@therube

I tested...

Firefox Portable 57 Release has the key3.db file in a fresh profile.
Firefox Portable 58 Beta has the key4.db file in a fresh profile.

C:\FirefoxPortable\Data\profile\key3.db
C:\FirefoxPortableTest\Data\profile\key4.db
User avatar
mightyglydd
Posts: 9813
Joined: November 4th, 2006, 7:07 pm
Location: Hollywood Ca.

Re: What does key4.db do?

Post by mightyglydd »

^Confirmed, ditto.
#KeepFightingMichael and Alex.
User avatar
psaulm119
Posts: 646
Joined: November 4th, 2007, 2:23 pm

Re: What does key4.db do?

Post by psaulm119 »

I installed 58b last night. That could be why I have key4. I usually don't worry about mixing beta and release profiles---I usually just keep the same profile for either version.
Paul
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: What does key4.db do?

Post by Brummelchen »

it is present here since oct'19 - before beta
User avatar
smsmith
Moderator
Posts: 19979
Joined: December 7th, 2004, 8:51 pm
Location: Indiana

Re: What does key4.db do?

Post by smsmith »

My Fx57 profile only has key3.db, while my Nightly profile has key4.db. The bug report indicated "Fixed for Fx58".
Give a man a fish, and he eats for a day. Teach a man to fish, and he eats for a lifetime.
I like poetry, long walks on the beach and poking dead things with a stick.
Please do not PM me for personal support. Keep posts here in the Forums instead and we all learn.
Post Reply