Closed Bug 1774659 Opened 3 years ago Closed 2 years ago

NSS needs a database tool that can dump the low level representation of the database.

Categories

(NSS :: Tools, enhancement)

3.79
enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rrelyea, Assigned: rrelyea)

References

Details

Attachments

(1 file, 1 obsolete file)

When debugging the database, it would be helpful to know what is in the database is a nicely formated way. certutil dumps a high level view of the certs and keys, sqlite3 can dump the low level tables and raw entries. It would be useful to dump the database as softoken sees the database.

Since dbm is basically deprecated, this tool only needs to dump sqlite database.

Assignee: nobody → rrelyea
Status: NEW → ASSIGNED
Assignee: nobody → rrelyea
Status: NEW → ASSIGNED

When debugging the database, it would be helpful to know what is in the database is a nicely formated way. certutil dumps a high level view of the certs and keys, sqlite3 can dump the low level tables and raw entries. It would be useful to dump the database as softoken sees the database.

This code grabs a copy of the latest sdb.c from softoken and uses it to fetch the database entries, then parses them as necessary. It uses the pkcs11 table in libsec to format the result data into human readable strings.

Blocks: 1821434

When debugging the database, it would be helpful to know what is in the database is a nicely formated way. certutil dumps a high level view of the certs and keys, sqlite3 can dump the low level tables and raw entries. It would be useful to dump the database as softoken sees the database.

This code grabs a copy of the latest sdb.c from softoken and uses it to fetch the database entries, then parses them as necessary. It uses the pkcs11 table in libsec to format the result data into human readable strings.

Comment on attachment 9331075 [details]
WIP: Bug 1774659 NSS needs a database tool that can dump the low level representation of the database.

Revision D165221 was moved to bug 1774657. Setting attachment 9331075 [details] to obsolete.

Attachment #9331075 - Attachment is obsolete: true
Attachment #9309066 - Attachment description: WIP: Bug 1774659 NSS needs a database tool that can dump the low level representation of the database. → Bug 1774659 NSS needs a database tool that can dump the low level representation of the database.
Component: Libraries → Tools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: