From Fedora Project Wiki

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 15: Line 15:
The following cast of characters will be available testing, workarounds, bug fixes, and general discussion ...
The following cast of characters will be available testing, workarounds, bug fixes, and general discussion ...
* Development - [[User:emaldonado]], [[User:rrelyea]]
* Development - [[User:emaldonado]], [[User:rrelyea]]
* Quality Assurance - [[User:amacerek]]
* Quality Assurance - [[User:amacerek]], [[User:avagarwa]], [[User:TBD]]
* Others - [[User:avagarwa]]
* Add yourself here


=== Prerequisite for Test Day ===  
=== Prerequisite for Test Day ===  
Line 44: Line 42:
* How to report back results
* How to report back results


=== Test ===
=== Test Cases ===


Follow any (or all) of these test cases:
Testing out system NSS.


* [[QA:Testcase_enable_system_nss]]
Part 1: enabling system NSS
* [[QA:Testcase_disable_system_nss]]
* [[QA:Testcase_make_Mozilla_applications_use_system_nss]]
* [[QA:Testcase_curl_with_nss]]
* [[QA:Testcase_hmacalc_with_nss]]
* [[QA:Testcase_Openswan_with_nss]]
* [[QA:Testcase_Openoffice_with_nss]]
* [[QA:Testcase_Python_nss]]


* Add other test cases here
In Fedora 12, system NSS is available, but not enabled. The following steps will enable system NSS.
 
1) As root run
certutil -K -X -d sql:/etc/pki/nssdb (this will create sql db's from the local dbm database).
2) as root edit /etc/pki/nssdb/pkcs11.txt
  2a) stanza with NSS Internal PKCS #11 Module, change:
    library=
  to
    library=libnsssysinit.so
  2b) in the same stanza, on the NSS= change the Flags from:
    Flags=internal,critical
  to
    Flags=internal,moduleDBOnly,critical
  2c) save your changes (Note, there should be no spaces in the library= line, nor any spaces between the flags.
3) as yourself, in your .bashrc or .cshrc (or whatever shell you use) add:
    export NSS_DEFAULT_DB_TYPE=sql
  [ of cource for csh/tcsh that sould be setenv 'NSS_DEFAULT_DB_TYPE sql' ]
4) as yourself (not as root!!!) 'certutil -N -d sql:/etc/pki/nssdb'. If you supply a password, this password will eventually become your new firefox/thunderbird master password.
 
Part 2: convince Firefox, Seamonkey, Xulrunner and Thunderbird to use system NSS. Firefox and Thunderbird still use private directories to store their NSS databases. It's possible, however, to convince them to open system NSS. All these steps should be performed as a user. In the future these applications would handle these steps by themselves automatically.
 
Do each of the following steps in each of the profile directories for which you wish to use system NSS in. Firefox, thunderbird, and seamonkey each have their own directories and can have multiple profiles (if you don't know what a profile is, you probably only have one per application). You can the base of the profile directories for firefox at ~/.mozilla/firefox and thunderbird at ~/.thunderbird. In that base directory there is a file called 'profiles.ini' which lists all the profiles that are known for that application. For each profile there's a line called 'Path=' which points to the actual profile directory. Usually it's a subdirectory under the current directory and has a random 'salted' name like 'quxz7me5.default'. do the following instructions while cd'd to that directory:
 
1) certutil -K -X -d sql:.
  (if you have a master password set, You'll have to provide it here). This will create a new sql database from your old dbm database.
 
2) certutil --merge -d sql:~/.pki/nssdb --source-dir sql:.
  (if you have a password set on sql:~/.pki/nssdb (from step 4 above), You'll have to provide it here. If that password is different from the master password for the profile, you'll also have to supply the profile password. If ~/.pki/nssdb has to password, but the profile database does, ~/.pki/nssdb will inherit that password (which you will then need on future instances of this step). If you want to change that password use 'certutil -N -d sql:~/.pki/nssdb'. Supplying an empty password will remove any password.
 
2) edit pkcs11.txt
  2a) in the 'NSS Internal PKCS #11 Module' stanza. change:
    parameters=configdir='/home/{you}/.mozilla/firefox/quxy6me8.default' ..... Flags=internal,critical
      to
    parameters="configdir='sql:/etc/pki/nssdb' ..... Flags=internal,critical,moduleDBOnly"
  NOTE: the ... represents a very long string of parameters that should remain the same. Note the addition of the double quotes around the parameters. This tells NSS to use the parameters as given and now rebuild them based on application input.
  2b) save pkcs11.txt
 
3) Make sure you set NSS_DEFAULT_DB_TYPE to sql in your environment before you start FF or TB
 
 
Restoring your system to the old databases:
Simply unset the NSS_DEFAULT_DB_TYPE variable and all your applications will fall back to their former dbm style datbase


=== Test Results ===
=== Test Results ===
Line 82: Line 114:
|}
|}


[[Category:Proposed_Test_Days]]
[[Category:Test Days]]
Please note that all contributions to Fedora Project Wiki are considered to be released under the Attribution-Share Alike 4.0 International (see Fedora Project Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please solve the following task below and enter the answer in the box (more info):

Cancel Editing help (opens in new window)

Templates used on this page: