security/nss/doc/pk12util.xml

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <?xml version="1.0" encoding="UTF-8"?>
michael@0 2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
michael@0 3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
michael@0 4 <!ENTITY date SYSTEM "date.xml">
michael@0 5 <!ENTITY version SYSTEM "version.xml">
michael@0 6 ]>
michael@0 7
michael@0 8 <refentry id="pk12util">
michael@0 9
michael@0 10 <refentryinfo>
michael@0 11 <date>&date;</date>
michael@0 12 <title>NSS Security Tools</title>
michael@0 13 <productname>nss-tools</productname>
michael@0 14 <productnumber>&version;</productnumber>
michael@0 15 </refentryinfo>
michael@0 16
michael@0 17 <refmeta>
michael@0 18 <refentrytitle>PK12UTIL</refentrytitle>
michael@0 19 <manvolnum>1</manvolnum>
michael@0 20 </refmeta>
michael@0 21
michael@0 22 <refnamediv>
michael@0 23 <refname>pk12util</refname>
michael@0 24 <refpurpose>Export and import keys and certificate to or from a PKCS #12 file and the NSS database</refpurpose>
michael@0 25 </refnamediv>
michael@0 26
michael@0 27 <refsynopsisdiv>
michael@0 28 <cmdsynopsis>
michael@0 29 <command>pk12util</command>
michael@0 30 <arg>-i p12File|-l p12File|-o p12File</arg>
michael@0 31 <arg>-d [sql:]directory</arg>
michael@0 32 <arg>-h tokenname</arg>
michael@0 33 <arg>-P dbprefix</arg>
michael@0 34 <arg>-r</arg>
michael@0 35 <arg>-v</arg>
michael@0 36 <arg>-k slotPasswordFile|-K slotPassword</arg>
michael@0 37 <arg>-w p12filePasswordFile|-W p12filePassword</arg>
michael@0 38 </cmdsynopsis>
michael@0 39 </refsynopsisdiv>
michael@0 40
michael@0 41 <refsection>
michael@0 42 <title>STATUS</title>
michael@0 43 <para>This documentation is still work in progress. Please contribute to the initial review in <ulink url="https://bugzilla.mozilla.org/show_bug.cgi?id=836477">Mozilla NSS bug 836477</ulink>
michael@0 44 </para>
michael@0 45 </refsection>
michael@0 46
michael@0 47 <refsection id="description">
michael@0 48 <title>Description</title>
michael@0 49 <para>The PKCS #12 utility, <command>pk12util</command>, enables sharing certificates among any server that supports PKCS#12. The tool can import certificates and keys from PKCS#12 files into security databases, export certificates, and list certificates and keys.</para>
michael@0 50 </refsection>
michael@0 51
michael@0 52 <refsection id="options">
michael@0 53 <title>Options and Arguments</title>
michael@0 54 <para><command>Options</command></para>
michael@0 55 <variablelist>
michael@0 56 <varlistentry>
michael@0 57 <term>-i p12file</term>
michael@0 58 <listitem><para>Import keys and certificates from a PKCS#12 file into a security database.</para></listitem>
michael@0 59 </varlistentry>
michael@0 60
michael@0 61 <varlistentry>
michael@0 62 <term>-l p12file</term>
michael@0 63 <listitem><para>List the keys and certificates in PKCS#12 file.</para></listitem>
michael@0 64 </varlistentry>
michael@0 65
michael@0 66 <varlistentry>
michael@0 67 <term>-o p12file</term>
michael@0 68 <listitem><para>Export keys and certificates from the security database to a PKCS#12 file.</para></listitem>
michael@0 69 </varlistentry>
michael@0 70 </variablelist>
michael@0 71
michael@0 72 <para><command>Arguments</command></para>
michael@0 73 <variablelist>
michael@0 74 <varlistentry>
michael@0 75 <term>-c keyCipher</term>
michael@0 76 <listitem><para>Specify the key encryption algorithm.</para></listitem>
michael@0 77 </varlistentry>
michael@0 78
michael@0 79 <varlistentry>
michael@0 80 <term>-C certCipher</term>
michael@0 81 <listitem><para>Specify the key cert (overall package) encryption algorithm.</para></listitem>
michael@0 82 </varlistentry>
michael@0 83
michael@0 84 <varlistentry>
michael@0 85 <term>-d [sql:]directory</term>
michael@0 86 <listitem><para>Specify the database directory into which to import to or export from certificates and keys.</para>
michael@0 87 <para><command>pk12util</command> supports two types of databases: the legacy security databases (<filename>cert8.db</filename>, <filename>key3.db</filename>, and <filename>secmod.db</filename>) and new SQLite databases (<filename>cert9.db</filename>, <filename>key4.db</filename>, and <filename>pkcs11.txt</filename>). If the prefix <command>sql:</command> is not used, then the tool assumes that the given databases are in the old format.</para></listitem>
michael@0 88 </varlistentry>
michael@0 89
michael@0 90 <varlistentry>
michael@0 91 <term>-h tokenname</term>
michael@0 92 <listitem><para>Specify the name of the token to import into or export from.</para></listitem>
michael@0 93 </varlistentry>
michael@0 94
michael@0 95 <varlistentry>
michael@0 96 <term>-k slotPasswordFile</term>
michael@0 97 <listitem><para>Specify the text file containing the slot's password.</para></listitem>
michael@0 98 </varlistentry>
michael@0 99
michael@0 100 <varlistentry>
michael@0 101 <term>-K slotPassword</term>
michael@0 102 <listitem><para>Specify the slot's password.</para></listitem>
michael@0 103 </varlistentry>
michael@0 104
michael@0 105 <varlistentry>
michael@0 106 <term>-m | --key-len keyLength</term>
michael@0 107 <listitem><para>Specify the desired length of the symmetric key to be used to encrypt the private key.</para></listitem>
michael@0 108 </varlistentry>
michael@0 109
michael@0 110 <varlistentry>
michael@0 111 <term>-n | --cert-key-len certKeyLength</term>
michael@0 112 <listitem><para>Specify the desired length of the symmetric key to be used to encrypt the certificates and other meta-data.</para></listitem>
michael@0 113 </varlistentry>
michael@0 114
michael@0 115 <varlistentry>
michael@0 116 <term>-n certname</term>
michael@0 117 <listitem><para>Specify the nickname of the cert and private key to export.</para></listitem>
michael@0 118 </varlistentry>
michael@0 119
michael@0 120 <varlistentry>
michael@0 121 <term>-P prefix</term>
michael@0 122 <listitem><para>Specify the prefix used on the certificate and key databases. This option is provided as a special case.
michael@0 123 Changing the names of the certificate and key databases is not recommended.</para></listitem>
michael@0 124 </varlistentry>
michael@0 125
michael@0 126 <varlistentry>
michael@0 127 <term>-r</term>
michael@0 128 <listitem><para>Dumps all of the data in raw (binary) form. This must be saved as a DER file. The default is to return information in a pretty-print ASCII format, which displays the information about the certificates and public keys in the p12 file.</para></listitem>
michael@0 129 </varlistentry>
michael@0 130
michael@0 131 <varlistentry>
michael@0 132 <term>-v </term>
michael@0 133 <listitem><para>Enable debug logging when importing.</para></listitem>
michael@0 134 </varlistentry>
michael@0 135
michael@0 136 <varlistentry>
michael@0 137 <term>-w p12filePasswordFile</term>
michael@0 138 <listitem><para>Specify the text file containing the pkcs #12 file password.</para></listitem>
michael@0 139 </varlistentry>
michael@0 140
michael@0 141 <varlistentry>
michael@0 142 <term>-W p12filePassword</term>
michael@0 143 <listitem><para>Specify the pkcs #12 file password.</para></listitem>
michael@0 144 </varlistentry>
michael@0 145
michael@0 146 </variablelist>
michael@0 147 </refsection>
michael@0 148
michael@0 149 <refsection id="return-codes">
michael@0 150 <title>Return Codes</title>
michael@0 151 <itemizedlist>
michael@0 152 <listitem>
michael@0 153 <para> 0 - No error</para>
michael@0 154 </listitem>
michael@0 155 <listitem>
michael@0 156 <para> 1 - User Cancelled</para>
michael@0 157 </listitem>
michael@0 158 <listitem>
michael@0 159 <para> 2 - Usage error</para>
michael@0 160 </listitem>
michael@0 161 <listitem>
michael@0 162 <para> 6 - NLS init error</para>
michael@0 163 </listitem>
michael@0 164 <listitem>
michael@0 165 <para> 8 - Certificate DB open error</para>
michael@0 166 </listitem>
michael@0 167 <listitem>
michael@0 168 <para> 9 - Key DB open error</para>
michael@0 169 </listitem>
michael@0 170 <listitem>
michael@0 171 <para> 10 - File initialization error</para>
michael@0 172 </listitem>
michael@0 173 <listitem>
michael@0 174 <para> 11 - Unicode conversion error</para>
michael@0 175 </listitem>
michael@0 176 <listitem>
michael@0 177 <para> 12 - Temporary file creation error</para>
michael@0 178 </listitem>
michael@0 179 <listitem>
michael@0 180 <para> 13 - PKCS11 get slot error</para>
michael@0 181 </listitem>
michael@0 182 <listitem>
michael@0 183 <para> 14 - PKCS12 decoder start error</para>
michael@0 184 </listitem>
michael@0 185 <listitem>
michael@0 186 <para> 15 - error read from import file</para>
michael@0 187 </listitem>
michael@0 188 <listitem>
michael@0 189 <para> 16 - pkcs12 decode error</para>
michael@0 190 </listitem>
michael@0 191 <listitem>
michael@0 192 <para> 17 - pkcs12 decoder verify error</para>
michael@0 193 </listitem>
michael@0 194 <listitem>
michael@0 195 <para> 18 - pkcs12 decoder validate bags error</para>
michael@0 196 </listitem>
michael@0 197 <listitem>
michael@0 198 <para> 19 - pkcs12 decoder import bags error</para>
michael@0 199 </listitem>
michael@0 200 <listitem>
michael@0 201 <para> 20 - key db conversion version 3 to version 2 error</para>
michael@0 202 </listitem>
michael@0 203 <listitem>
michael@0 204 <para> 21 - cert db conversion version 7 to version 5 error</para>
michael@0 205 </listitem>
michael@0 206 <listitem>
michael@0 207 <para> 22 - cert and key dbs patch error</para>
michael@0 208 </listitem>
michael@0 209 <listitem>
michael@0 210 <para> 23 - get default cert db error</para>
michael@0 211 </listitem>
michael@0 212 <listitem>
michael@0 213 <para> 24 - find cert by nickname error</para>
michael@0 214 </listitem>
michael@0 215 <listitem>
michael@0 216 <para> 25 - create export context error</para>
michael@0 217 </listitem>
michael@0 218 <listitem>
michael@0 219 <para> 26 - PKCS12 add password itegrity error</para>
michael@0 220 </listitem>
michael@0 221 <listitem>
michael@0 222 <para> 27 - cert and key Safes creation error</para>
michael@0 223 </listitem>
michael@0 224 <listitem>
michael@0 225 <para> 28 - PKCS12 add cert and key error</para>
michael@0 226 </listitem>
michael@0 227 <listitem>
michael@0 228 <para> 29 - PKCS12 encode error</para>
michael@0 229 </listitem>
michael@0 230 </itemizedlist>
michael@0 231 </refsection>
michael@0 232
michael@0 233 <refsection id="examples">
michael@0 234 <title>Examples</title>
michael@0 235 <para><command>Importing Keys and Certificates</command></para>
michael@0 236 <para>The most basic usage of <command>pk12util</command> for importing a certificate or key is the PKCS#12 input file (<option>-i</option>) and some way to specify the security database being accessed (either <option>-d</option> for a directory or <option>-h</option> for a token).
michael@0 237 </para>
michael@0 238 <para>
michael@0 239 pk12util -i p12File [-h tokenname] [-v] [-d [sql:]directory] [-P dbprefix] [-k slotPasswordFile|-K slotPassword] [-w p12filePasswordFile|-W p12filePassword]
michael@0 240 </para>
michael@0 241 <para>For example:</para>
michael@0 242 <para> </para>
michael@0 243 <programlisting># pk12util -i /tmp/cert-files/users.p12 -d sql:/home/my/sharednssdb
michael@0 244
michael@0 245 Enter a password which will be used to encrypt your keys.
michael@0 246 The password should be at least 8 characters long,
michael@0 247 and should contain at least one non-alphabetic character.
michael@0 248
michael@0 249 Enter new password:
michael@0 250 Re-enter password:
michael@0 251 Enter password for PKCS12 file:
michael@0 252 pk12util: PKCS12 IMPORT SUCCESSFUL</programlisting>
michael@0 253
michael@0 254 <para><command>Exporting Keys and Certificates</command></para>
michael@0 255 <para>Using the <command>pk12util</command> command to export certificates and keys requires both the name of the certificate to extract from the database (<option>-n</option>) and the PKCS#12-formatted output file to write to. There are optional parameters that can be used to encrypt the file to protect the certificate material.
michael@0 256 </para>
michael@0 257 <para>pk12util -o p12File -n certname [-c keyCipher] [-C certCipher] [-m|--key_len keyLen] [-n|--cert_key_len certKeyLen] [-d [sql:]directory] [-P dbprefix] [-k slotPasswordFile|-K slotPassword] [-w p12filePasswordFile|-W p12filePassword]</para>
michael@0 258 <para>For example:</para>
michael@0 259 <programlisting># pk12util -o certs.p12 -n Server-Cert -d sql:/home/my/sharednssdb
michael@0 260 Enter password for PKCS12 file:
michael@0 261 Re-enter password: </programlisting>
michael@0 262
michael@0 263 <para><command>Listing Keys and Certificates</command></para>
michael@0 264 <para>The information in a <filename>.p12</filename> file are not human-readable. The certificates and keys in the file can be printed (listed) in a human-readable pretty-print format that shows information for every certificate and any public keys in the <filename>.p12</filename> file.
michael@0 265 </para>
michael@0 266 <para>pk12util -l p12File [-h tokenname] [-r] [-d [sql:]directory] [-P dbprefix] [-k slotPasswordFile|-K slotPassword] [-w p12filePasswordFile|-W p12filePassword]</para>
michael@0 267 <para>For example, this prints the default ASCII output:</para>
michael@0 268 <programlisting># pk12util -l certs.p12
michael@0 269
michael@0 270 Enter password for PKCS12 file:
michael@0 271 Key(shrouded):
michael@0 272 Friendly Name: Thawte Freemail Member's Thawte Consulting (Pty) Ltd. ID
michael@0 273
michael@0 274 Encryption algorithm: PKCS #12 V2 PBE With SHA-1 And 3KEY Triple DES-CBC
michael@0 275 Parameters:
michael@0 276 Salt:
michael@0 277 45:2e:6a:a0:03:4d:7b:a1:63:3c:15:ea:67:37:62:1f
michael@0 278 Iteration Count: 1 (0x1)
michael@0 279 Certificate:
michael@0 280 Data:
michael@0 281 Version: 3 (0x2)
michael@0 282 Serial Number: 13 (0xd)
michael@0 283 Signature Algorithm: PKCS #1 SHA-1 With RSA Encryption
michael@0 284 Issuer: "E=personal-freemail@thawte.com,CN=Thawte Personal Freemail C
michael@0 285 A,OU=Certification Services Division,O=Thawte Consulting,L=Cape T
michael@0 286 own,ST=Western Cape,C=ZA"
michael@0 287 </programlisting>
michael@0 288 <para>Alternatively, the <option>-r</option> prints the certificates and then exports them into separate DER binary files. This allows the certificates to be fed to another application that supports <filename>.p12</filename> files. Each certificate is written to a sequentially-number file, beginning with <filename>file0001.der</filename> and continuing through <filename>file000N.der</filename>, incrementing the number for every certificate:</para>
michael@0 289 <programlisting>pk12util -l test.p12 -r
michael@0 290 Enter password for PKCS12 file:
michael@0 291 Key(shrouded):
michael@0 292 Friendly Name: Thawte Freemail Member's Thawte Consulting (Pty) Ltd. ID
michael@0 293
michael@0 294 Encryption algorithm: PKCS #12 V2 PBE With SHA-1 And 3KEY Triple DES-CBC
michael@0 295 Parameters:
michael@0 296 Salt:
michael@0 297 45:2e:6a:a0:03:4d:7b:a1:63:3c:15:ea:67:37:62:1f
michael@0 298 Iteration Count: 1 (0x1)
michael@0 299 Certificate Friendly Name: Thawte Personal Freemail Issuing CA - Thawte Consulting
michael@0 300
michael@0 301 Certificate Friendly Name: Thawte Freemail Member's Thawte Consulting (Pty) Ltd. ID
michael@0 302 </programlisting>
michael@0 303 </refsection>
michael@0 304
michael@0 305 <refsection id="encryption">
michael@0 306 <title>Password Encryption</title>
michael@0 307 <para>PKCS#12 provides for not only the protection of the private keys but also the certificate and meta-data associated with the keys. Password-based encryption is used to protect private keys on export to a PKCS#12 file and, optionally, the entire package. If no algorithm is specified, the tool defaults to using <command>PKCS12 V2 PBE with SHA1 and 3KEY Triple DES-cbc</command> for private key encryption. <command>PKCS12 V2 PBE with SHA1 and 40 Bit RC4</command> is the default for the overall package encryption when not in FIPS mode. When in FIPS mode, there is no package encryption.</para>
michael@0 308 <para>The private key is always protected with strong encryption by default.</para>
michael@0 309 <para>Several types of ciphers are supported.</para>
michael@0 310 <variablelist>
michael@0 311
michael@0 312 <varlistentry>
michael@0 313 <term>Symmetric CBC ciphers for PKCS#5 V2</term>
michael@0 314 <listitem>
michael@0 315 <itemizedlist>
michael@0 316 <listitem><para>DES-CBC</para></listitem>
michael@0 317 <listitem><para>RC2-CBC</para></listitem>
michael@0 318 <listitem><para>RC5-CBCPad</para></listitem>
michael@0 319 <listitem><para>DES-EDE3-CBC (the default for key encryption)</para></listitem>
michael@0 320 <listitem><para>AES-128-CBC</para></listitem>
michael@0 321 <listitem><para>AES-192-CBC</para></listitem>
michael@0 322 <listitem><para>AES-256-CBC</para></listitem>
michael@0 323 <listitem><para>CAMELLIA-128-CBC</para></listitem>
michael@0 324 <listitem><para>CAMELLIA-192-CBC</para></listitem>
michael@0 325 <listitem><para>CAMELLIA-256-CBC</para></listitem>
michael@0 326 </itemizedlist>
michael@0 327 </listitem>
michael@0 328 </varlistentry>
michael@0 329
michael@0 330 <varlistentry>
michael@0 331 <term>PKCS#12 PBE ciphers</term>
michael@0 332 <listitem>
michael@0 333 <itemizedlist>
michael@0 334 <listitem><para>PKCS #12 PBE with Sha1 and 128 Bit RC4</para></listitem>
michael@0 335 <listitem><para>PKCS #12 PBE with Sha1 and 40 Bit RC4</para></listitem>
michael@0 336 <listitem><para>PKCS #12 PBE with Sha1 and Triple DES CBC</para></listitem>
michael@0 337 <listitem><para>PKCS #12 PBE with Sha1 and 128 Bit RC2 CBC</para></listitem>
michael@0 338 <listitem><para>PKCS #12 PBE with Sha1 and 40 Bit RC2 CBC</para></listitem>
michael@0 339 <listitem><para>PKCS12 V2 PBE with SHA1 and 128 Bit RC4</para></listitem>
michael@0 340 <listitem><para>PKCS12 V2 PBE with SHA1 and 40 Bit RC4 (the default for non-FIPS mode)</para></listitem>
michael@0 341 <listitem><para>PKCS12 V2 PBE with SHA1 and 3KEY Triple DES-cbc</para></listitem>
michael@0 342 <listitem><para>PKCS12 V2 PBE with SHA1 and 2KEY Triple DES-cbc</para></listitem>
michael@0 343 <listitem><para>PKCS12 V2 PBE with SHA1 and 128 Bit RC2 CBC</para></listitem>
michael@0 344 <listitem><para>PKCS12 V2 PBE with SHA1 and 40 Bit RC2 CBC</para></listitem>
michael@0 345 </itemizedlist>
michael@0 346 </listitem>
michael@0 347 </varlistentry>
michael@0 348 <varlistentry><term>PKCS#5 PBE ciphers</term>
michael@0 349 <listitem>
michael@0 350 <itemizedlist>
michael@0 351 <listitem><para>PKCS #5 Password Based Encryption with MD2 and DES CBC</para></listitem>
michael@0 352 <listitem><para>PKCS #5 Password Based Encryption with MD5 and DES CBC</para></listitem>
michael@0 353 <listitem><para>PKCS #5 Password Based Encryption with SHA1 and DES CBC</para></listitem>
michael@0 354 </itemizedlist>
michael@0 355 </listitem>
michael@0 356 </varlistentry>
michael@0 357 </variablelist>
michael@0 358 <para>With PKCS#12, the crypto provider may be the soft token module or an external hardware module. If the cryptographic module does not support the requested algorithm, then the next best fit will be selected (usually the default). If no suitable replacement for the desired algorithm can be found, the tool returns the error <emphasis>no security module can perform the requested operation</emphasis>.</para>
michael@0 359 </refsection>
michael@0 360
michael@0 361 <refsection id="databases"><title>NSS Database Types</title>
michael@0 362 <para>NSS originally used BerkeleyDB databases to store security information.
michael@0 363 The last versions of these <emphasis>legacy</emphasis> databases are:</para>
michael@0 364 <itemizedlist>
michael@0 365 <listitem>
michael@0 366 <para>
michael@0 367 cert8.db for certificates
michael@0 368 </para>
michael@0 369 </listitem>
michael@0 370 <listitem>
michael@0 371 <para>
michael@0 372 key3.db for keys
michael@0 373 </para>
michael@0 374 </listitem>
michael@0 375 <listitem>
michael@0 376 <para>
michael@0 377 secmod.db for PKCS #11 module information
michael@0 378 </para>
michael@0 379 </listitem>
michael@0 380 </itemizedlist>
michael@0 381
michael@0 382 <para>BerkeleyDB has performance limitations, though, which prevent it from being easily used by multiple applications simultaneously. NSS has
michael@0 383 some flexibility that allows applications to use their own, independent database engine while keeping a shared database and working around the access issues. Still, NSS
michael@0 384 requires more flexibility to provide a truly shared security database.</para>
michael@0 385
michael@0 386 <para>In 2009, NSS introduced a new set of databases that are SQLite databases rather than
michael@0 387 BerkleyDB. These new databases provide more accessibility and performance:</para>
michael@0 388 <itemizedlist>
michael@0 389 <listitem>
michael@0 390 <para>
michael@0 391 cert9.db for certificates
michael@0 392 </para>
michael@0 393 </listitem>
michael@0 394 <listitem>
michael@0 395 <para>
michael@0 396 key4.db for keys
michael@0 397 </para>
michael@0 398 </listitem>
michael@0 399 <listitem>
michael@0 400 <para>
michael@0 401 pkcs11.txt, which is listing of all of the PKCS #11 modules contained in a new subdirectory in the security databases directory
michael@0 402 </para>
michael@0 403 </listitem>
michael@0 404 </itemizedlist>
michael@0 405
michael@0 406 <para>Because the SQLite databases are designed to be shared, these are the <emphasis>shared</emphasis> database type. The shared database type is preferred; the legacy format is included for backward compatibility.</para>
michael@0 407
michael@0 408 <para>By default, the tools (<command>certutil</command>, <command>pk12util</command>, <command>modutil</command>) assume that the given security databases follow the more common legacy type.
michael@0 409 Using the SQLite databases must be manually specified by using the <command>sql:</command> prefix with the given security directory. For example:</para>
michael@0 410
michael@0 411 <programlisting># pk12util -i /tmp/cert-files/users.p12 -d sql:/home/my/sharednssdb</programlisting>
michael@0 412
michael@0 413 <para>To set the shared database type as the default type for the tools, set the <envar>NSS_DEFAULT_DB_TYPE</envar> environment variable to <envar>sql</envar>:</para>
michael@0 414 <programlisting>export NSS_DEFAULT_DB_TYPE="sql"</programlisting>
michael@0 415
michael@0 416 <para>This line can be set added to the <filename>~/.bashrc</filename> file to make the change permanent.</para>
michael@0 417
michael@0 418 <para>Most applications do not use the shared database by default, but they can be configured to use them. For example, this how-to article covers how to configure Firefox and Thunderbird to use the new shared NSS databases:</para>
michael@0 419 <itemizedlist>
michael@0 420 <listitem>
michael@0 421 <para>
michael@0 422 https://wiki.mozilla.org/NSS_Shared_DB_Howto</para>
michael@0 423 </listitem>
michael@0 424 </itemizedlist>
michael@0 425 <para>For an engineering draft on the changes in the shared NSS databases, see the NSS project wiki:</para>
michael@0 426 <itemizedlist>
michael@0 427 <listitem>
michael@0 428 <para>
michael@0 429 https://wiki.mozilla.org/NSS_Shared_DB
michael@0 430 </para>
michael@0 431 </listitem>
michael@0 432 </itemizedlist>
michael@0 433 </refsection>
michael@0 434
michael@0 435 <refsection id="seealso">
michael@0 436 <title>See Also</title>
michael@0 437 <para>certutil (1)</para>
michael@0 438 <para>modutil (1)</para>
michael@0 439
michael@0 440 <para>The NSS wiki has information on the new database design and how to configure applications to use it.</para>
michael@0 441 <itemizedlist>
michael@0 442 <listitem>
michael@0 443 <para>
michael@0 444 https://wiki.mozilla.org/NSS_Shared_DB_Howto</para>
michael@0 445 </listitem>
michael@0 446 <listitem>
michael@0 447 <para>
michael@0 448 https://wiki.mozilla.org/NSS_Shared_DB
michael@0 449 </para>
michael@0 450 </listitem>
michael@0 451 </itemizedlist>
michael@0 452 </refsection>
michael@0 453
michael@0 454 <!-- don't change -->
michael@0 455 <refsection id="resources">
michael@0 456 <title>Additional Resources</title>
michael@0 457 <para>For information about NSS and other tools related to NSS (like JSS), check out the NSS project wiki at <ulink url="http://www.mozilla.org/projects/security/pki/nss/">http://www.mozilla.org/projects/security/pki/nss/</ulink>. The NSS site relates directly to NSS code changes and releases.</para>
michael@0 458 <para>Mailing lists: https://lists.mozilla.org/listinfo/dev-tech-crypto</para>
michael@0 459 <para>IRC: Freenode at #dogtag-pki</para>
michael@0 460 </refsection>
michael@0 461
michael@0 462 <!-- fill in your name first; keep the other names for reference -->
michael@0 463 <refsection id="authors">
michael@0 464 <title>Authors</title>
michael@0 465 <para>The NSS tools were written and maintained by developers with Netscape, Red Hat, Sun, Oracle, Mozilla, and Google.</para>
michael@0 466 <para>
michael@0 467 Authors: Elio Maldonado &lt;emaldona@redhat.com>, Deon Lackey &lt;dlackey@redhat.com>.
michael@0 468 </para>
michael@0 469 </refsection>
michael@0 470
michael@0 471 <!-- don't change -->
michael@0 472 <refsection id="license">
michael@0 473 <title>LICENSE</title>
michael@0 474 <para>Licensed under the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 475 </para>
michael@0 476 </refsection>
michael@0 477
michael@0 478 </refentry>

mercurial