[30f88917] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[30f88917] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[09b524b] | 7 | <!-- for when .0 is not part of the new tarball name, but always referenced -->
|
---|
[299d5c54] | 8 | <!ENTITY nss-url "ftp.mozilla.org/pub/mozilla.org/security/nss/releases">
|
---|
| 9 |
|
---|
[02b153a] | 10 |
|
---|
| 11 | <!ENTITY nss-download-http "https://&nss-url;/NSS_3_&nss-minor-version;_&nss-micro-version;_RTM/src/nss-&nss-version;.tar.gz">
|
---|
[a73fc07f] | 12 |
|
---|
[604bf744] | 13 | <!-- <!ENTITY nss-download-ftp "ftp://&nss-url;/NSS_3_&nss-minor-version;_&nss-micro-version;_RTM/src/nss-&nss-version;.tar.gz">-->
|
---|
[02b153a] | 14 | <!ENTITY nss-download-ftp " ">
|
---|
| 15 |
|
---|
| 16 | <!-- no micro versions -->
|
---|
| 17 | <!--
|
---|
| 18 | <!ENTITY nss-download-http "https://&nss-url;/NSS_3_&nss-minor-version;_RTM/src/nss-&nss-version;.tar.gz">
|
---|
| 19 | <!ENTITY nss-download-ftp "ftp://&nss-url;/NSS_3_&nss-minor-version;_RTM/src/nss-&nss-version;.tar.gz">
|
---|
| 20 | -->
|
---|
[7c44034] | 21 |
|
---|
[02b153a] | 22 | <!ENTITY nss-md5sum "e98d48435cee5792f97ef7fc35a602c3">
|
---|
[a9eec6eb] | 23 | <!ENTITY nss-size "7.1 MB">
|
---|
[02b153a] | 24 | <!ENTITY nss-buildsize "94 MB">
|
---|
| 25 | <!ENTITY nss-time "1.2 SBU">
|
---|
[30f88917] | 26 | ]>
|
---|
| 27 |
|
---|
[0fa170f] | 28 | <sect1 id="nss" xreflabel="NSS-&nss-version;">
|
---|
[30f88917] | 29 | <?dbhtml filename="nss.html"?>
|
---|
| 30 |
|
---|
| 31 | <sect1info>
|
---|
| 32 | <othername>$LastChangedBy$</othername>
|
---|
| 33 | <date>$Date$</date>
|
---|
| 34 | </sect1info>
|
---|
| 35 |
|
---|
| 36 | <title>NSS-&nss-version;</title>
|
---|
| 37 |
|
---|
| 38 | <indexterm zone="nss">
|
---|
| 39 | <primary sortas="a-NSS">NSS</primary>
|
---|
| 40 | </indexterm>
|
---|
| 41 |
|
---|
| 42 | <sect2 role="package">
|
---|
| 43 | <title>Introduction to NSS</title>
|
---|
| 44 |
|
---|
[9333a525] | 45 | <para>
|
---|
| 46 | The Network Security Services (<application>NSS</application>) package is
|
---|
| 47 | a set of libraries designed to support cross-platform development of
|
---|
| 48 | security-enabled client and server applications. Applications built with
|
---|
| 49 | NSS can support SSL v2 and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12,
|
---|
| 50 | S/MIME, X.509 v3 certificates, and other security standards. This is
|
---|
| 51 | useful for implementing SSL and S/MIME or other Internet security
|
---|
| 52 | standards into an application.
|
---|
| 53 | </para>
|
---|
[30f88917] | 54 |
|
---|
[ac55e029] | 55 | &lfs7a_checked;
|
---|
[e3060aa] | 56 |
|
---|
[30f88917] | 57 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 58 | <itemizedlist spacing="compact">
|
---|
| 59 | <listitem>
|
---|
[9333a525] | 60 | <para>
|
---|
| 61 | Download (HTTP): <ulink url="&nss-download-http;"/>
|
---|
| 62 | </para>
|
---|
[30f88917] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[9333a525] | 65 | <para>
|
---|
| 66 | Download (FTP): <ulink url="&nss-download-ftp;"/>
|
---|
| 67 | </para>
|
---|
[30f88917] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[9333a525] | 70 | <para>
|
---|
[0f62b2b] | 71 | Download MD5 sum: &nss-md5sum;
|
---|
| 72 | </para>
|
---|
[30f88917] | 73 | </listitem>
|
---|
| 74 | <listitem>
|
---|
[9333a525] | 75 | <para>
|
---|
| 76 | Download size: &nss-size;
|
---|
| 77 | </para>
|
---|
[30f88917] | 78 | </listitem>
|
---|
| 79 | <listitem>
|
---|
[9333a525] | 80 | <para>
|
---|
| 81 | Estimated disk space required: &nss-buildsize;
|
---|
| 82 | </para>
|
---|
[30f88917] | 83 | </listitem>
|
---|
| 84 | <listitem>
|
---|
[9333a525] | 85 | <para>
|
---|
| 86 | Estimated build time: &nss-time;
|
---|
| 87 | </para>
|
---|
[30f88917] | 88 | </listitem>
|
---|
| 89 | </itemizedlist>
|
---|
| 90 |
|
---|
[299d5c54] | 91 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 92 | <itemizedlist spacing="compact">
|
---|
| 93 | <listitem>
|
---|
| 94 | <para>
|
---|
| 95 | Required patch:
|
---|
[c46a0e5] | 96 | <ulink url="&patch-root;/nss-&nss-version;-standalone-1.patch"/>
|
---|
[299d5c54] | 97 | </para>
|
---|
| 98 | </listitem>
|
---|
| 99 | </itemizedlist>
|
---|
| 100 |
|
---|
[dd44df7e] | 101 | <bridgehead renderas="sect3">NSS Dependencies</bridgehead>
|
---|
| 102 |
|
---|
| 103 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[9333a525] | 104 | <para role="required">
|
---|
| 105 | <xref linkend="nspr"/>
|
---|
| 106 | </para>
|
---|
[dd44df7e] | 107 |
|
---|
| 108 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[9333a525] | 109 | <para role="recommended">
|
---|
[4a16903] | 110 | <xref linkend="sqlite"/> and <xref linkend="p11-kit"/> (runtime)
|
---|
[9333a525] | 111 | </para>
|
---|
[dd44df7e] | 112 |
|
---|
[9333a525] | 113 | <para condition="html" role="usernotes">
|
---|
| 114 | User Notes: <ulink url="&blfs-wiki;/nss"/>
|
---|
| 115 | </para>
|
---|
[30f88917] | 116 | </sect2>
|
---|
| 117 |
|
---|
| 118 | <sect2 role="installation">
|
---|
| 119 | <title>Installation of NSS</title>
|
---|
| 120 |
|
---|
[d190aae9] | 121 | <note>
|
---|
| 122 | <para>
|
---|
| 123 | This package does not support parallel build.
|
---|
| 124 | </para>
|
---|
| 125 | </note>
|
---|
| 126 |
|
---|
[9333a525] | 127 | <para>
|
---|
| 128 | Install <application>NSS</application> by running the following commands:
|
---|
| 129 | </para>
|
---|
| 130 |
|
---|
[c46a0e5] | 131 | <screen><userinput>patch -Np1 -i ../nss-&nss-version;-standalone-1.patch &&
|
---|
[b6d3d395] | 132 |
|
---|
[299d5c54] | 133 | cd nss &&
|
---|
[2beaab8] | 134 |
|
---|
| 135 | make -j1 BUILD_OPT=1 \
|
---|
[731d374] | 136 | NSPR_INCLUDE_DIR=/usr/include/nspr \
|
---|
| 137 | USE_SYSTEM_ZLIB=1 \
|
---|
| 138 | ZLIB_LIBS=-lz \
|
---|
[a45062d] | 139 | $([ $(uname -m) = x86_64 ] && echo USE_64=1) \
|
---|
[2beaab8] | 140 | $([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1)</userinput></screen>
|
---|
[9333a525] | 141 |
|
---|
| 142 | <para>
|
---|
[67bd6fe4] | 143 | This package does not come with a test suite.
|
---|
[9333a525] | 144 | </para>
|
---|
[30f88917] | 145 |
|
---|
[9333a525] | 146 | <para>
|
---|
| 147 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 148 | </para>
|
---|
| 149 |
|
---|
[2beaab8] | 150 | <screen role="root"><userinput>cd ../dist &&
|
---|
| 151 |
|
---|
| 152 | install -v -m755 Linux*/lib/*.so /usr/lib &&
|
---|
| 153 | install -v -m644 Linux*/lib/{*.chk,libcrmf.a} /usr/lib &&
|
---|
| 154 |
|
---|
| 155 | install -v -m755 -d /usr/include/nss &&
|
---|
| 156 | cp -v -RL {public,private}/nss/* /usr/include/nss &&
|
---|
| 157 | chmod -v 644 /usr/include/nss/* &&
|
---|
| 158 |
|
---|
[299d5c54] | 159 | install -v -m755 Linux*/bin/{certutil,nss-config,pk12util} /usr/bin &&
|
---|
[2beaab8] | 160 |
|
---|
[2b64864b] | 161 | install -v -m644 Linux*/lib/pkgconfig/nss.pc /usr/lib/pkgconfig</userinput></screen>
|
---|
[299d5c54] | 162 |
|
---|
[30f88917] | 163 | </sect2>
|
---|
| 164 |
|
---|
| 165 | <sect2 role="commands">
|
---|
| 166 | <title>Command Explanations</title>
|
---|
| 167 |
|
---|
[9333a525] | 168 | <para>
|
---|
| 169 | <parameter>BUILD_OPT=1</parameter>: This option is passed to
|
---|
| 170 | <command>make</command> so that the build is performed with no debugging
|
---|
| 171 | symbols built into the binaries and the default compiler optimizations are
|
---|
| 172 | used.
|
---|
| 173 | </para>
|
---|
| 174 |
|
---|
| 175 | <para>
|
---|
[0d7900a] | 176 | <parameter>NSPR_INCLUDE_DIR=/usr/include/nspr</parameter>: This option
|
---|
[9333a525] | 177 | sets the location of the nspr headers.
|
---|
| 178 | </para>
|
---|
| 179 |
|
---|
| 180 | <para>
|
---|
| 181 | <parameter>USE_SYSTEM_ZLIB=1</parameter>: This option is passed to
|
---|
| 182 | <command>make</command> to ensure that the
|
---|
| 183 | <filename class="libraryfile">libssl3.so</filename> library is linked to
|
---|
| 184 | the system installed <application>zlib</application> instead of the
|
---|
| 185 | in-tree version.
|
---|
| 186 | </para>
|
---|
| 187 |
|
---|
| 188 | <para>
|
---|
| 189 | <parameter>ZLIB_LIBS=-lz</parameter>: This option provides the
|
---|
| 190 | linker flags needed to link to the system <application>zlib</application>.
|
---|
| 191 | </para>
|
---|
[a45062d] | 192 |
|
---|
| 193 | <para>
|
---|
| 194 | <command>$([ $(uname -m) = x86_64 ] && echo USE_64=1)</command>:
|
---|
| 195 | The <parameter>USE_64=1</parameter> option is <emphasis>required on
|
---|
| 196 | x86_64</emphasis>, otherwise <command>make</command> will try (and fail)
|
---|
| 197 | to create 32-bit objects. The [ $(uname -m) = x86_64 ] test ensures it
|
---|
| 198 | has no effect on a 32 bit system.
|
---|
| 199 | </para>
|
---|
| 200 |
|
---|
| 201 | <para>
|
---|
| 202 | <command>([ -f /usr/include/sqlite3.h ] && echo
|
---|
| 203 | NSS_USE_SYSTEM_SQLITE=1)</command>: This tests if
|
---|
| 204 | <application>sqlite</application> is installed and if so it
|
---|
| 205 | <command>echo</command>s the option NSS_USE_SYSTEM_SQLITE=1 to
|
---|
| 206 | <command>make</command> so that
|
---|
| 207 | <filename class="libraryfile">libsoftokn3.so</filename> will link against
|
---|
| 208 | the system version of sqlite.
|
---|
| 209 | </para>
|
---|
[299d5c54] | 210 |
|
---|
[30f88917] | 211 | </sect2>
|
---|
| 212 |
|
---|
[4a16903] | 213 | <sect2 role="configuration">
|
---|
| 214 | <title>Configuring NSS</title>
|
---|
| 215 |
|
---|
| 216 | <para>If <xref linkend="p11-kit"/> is installed,
|
---|
| 217 | <filename>/usr/lib/libp11-kit.so</filename> can be used as a drop-in
|
---|
| 218 | replacement for <filename>/usr/lib/libnssckbi.so</filename> to
|
---|
| 219 | transparently make the system CAs available to
|
---|
| 220 | <application>NSS</application> aware applications, rather than the static
|
---|
| 221 | list provided by <filename>/usr/lib/libnssckbi.so</filename>. As the
|
---|
| 222 | <systemitem class="username">root</systemitem> user, execute the following
|
---|
| 223 | commands:</para>
|
---|
| 224 |
|
---|
| 225 | <screen role="root"><userinput>readlink /usr/lib/libnssckbi.so || \
|
---|
| 226 | mv -v /usr/lib/libnssckbi.so /usr/lib/libnssckbi.so.orig &&
|
---|
| 227 | ln -sfv libp11-kit.so /usr/lib/libnssckbi.so</userinput></screen>
|
---|
| 228 |
|
---|
| 229 | <para>Additionally, for dependent applicaions that do not use the internal
|
---|
| 230 | database (<filename>/usr/lib/libnssckbi.so</filename>), the
|
---|
| 231 | <filename>make-ca.sh</filename> script, incldued on the
|
---|
[45db70f] | 232 | <xref linkend="cacerts"/> page, will generate a system wide NSS DB.</para>
|
---|
[4a16903] | 233 |
|
---|
| 234 | </sect2>
|
---|
| 235 |
|
---|
[30f88917] | 236 | <sect2 role="content">
|
---|
| 237 | <title>Contents</title>
|
---|
| 238 |
|
---|
| 239 | <segmentedlist>
|
---|
| 240 | <segtitle>Installed Programs</segtitle>
|
---|
| 241 | <segtitle>Installed Libraries</segtitle>
|
---|
| 242 | <segtitle>Installed Directories</segtitle>
|
---|
| 243 |
|
---|
| 244 | <seglistitem>
|
---|
[9333a525] | 245 | <seg>
|
---|
[299d5c54] | 246 | certutil, nss-config, and pk12util
|
---|
[61562907] | 247 | </seg>
|
---|
| 248 | <seg>
|
---|
[d900e405] | 249 | libcrmf.a, libfreebl3.so, libfreeblpriv3.so, libgtest1.so, libnss3.so,
|
---|
[0468117] | 250 | libnssckbi.so, libnssdbm3.so, libnsssysinit.so,
|
---|
| 251 | libnssutil3.so, libsmime3.so, libsoftokn3.so, and libssl3.so
|
---|
[61562907] | 252 | </seg>
|
---|
| 253 | <seg>
|
---|
| 254 | /usr/include/nss
|
---|
[9333a525] | 255 | </seg>
|
---|
[30f88917] | 256 | </seglistitem>
|
---|
| 257 | </segmentedlist>
|
---|
| 258 |
|
---|
| 259 | <variablelist>
|
---|
| 260 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 261 | <?dbfo list-presentation="list"?>
|
---|
| 262 | <?dbhtml list-presentation="table"?>
|
---|
| 263 |
|
---|
[9333a525] | 264 | <varlistentry id="certutil">
|
---|
| 265 | <term><command>certutil</command></term>
|
---|
| 266 | <listitem>
|
---|
| 267 | <para>
|
---|
| 268 | is the Mozilla Certificate Database Tool. It is a command-line
|
---|
| 269 | utility that can create and modify the Netscape Communicator
|
---|
| 270 | cert8.db and key3.db database files. It can also list, generate,
|
---|
| 271 | modify, or delete certificates within the cert8.db file and create
|
---|
| 272 | or change the password, generate new public and private key pairs,
|
---|
| 273 | display the contents of the key database, or delete key pairs within
|
---|
| 274 | the key3.db file.
|
---|
| 275 | </para>
|
---|
| 276 | <indexterm zone="nss certutil">
|
---|
| 277 | <primary sortas="b-certutil">certutil</primary>
|
---|
| 278 | </indexterm>
|
---|
| 279 | </listitem>
|
---|
| 280 | </varlistentry>
|
---|
| 281 |
|
---|
[299d5c54] | 282 | <varlistentry id="nss-config">
|
---|
| 283 | <term><command>nss-config</command></term>
|
---|
| 284 | <listitem>
|
---|
| 285 | <para>
|
---|
| 286 | is used to determine the NSS library settings of the installed NSS
|
---|
| 287 | libraries.
|
---|
| 288 | </para>
|
---|
| 289 | <indexterm zone="nss nss-config">
|
---|
| 290 | <primary sortas="b-nss-config">nss-config</primary>
|
---|
| 291 | </indexterm>
|
---|
| 292 | </listitem>
|
---|
| 293 | </varlistentry>
|
---|
| 294 |
|
---|
[9333a525] | 295 | <varlistentry id="pk12util">
|
---|
| 296 | <term><command>pk12util</command></term>
|
---|
| 297 | <listitem>
|
---|
| 298 | <para>
|
---|
| 299 | is a tool for importing certificates and keys from pkcs #12 files
|
---|
| 300 | into NSS or exporting them. It can also list certificates and keys
|
---|
[0d7900a] | 301 | in such files.
|
---|
[9333a525] | 302 | </para>
|
---|
| 303 | <indexterm zone="nss pk12util">
|
---|
| 304 | <primary sortas="b-pk12util">pk12util</primary>
|
---|
| 305 | </indexterm>
|
---|
| 306 | </listitem>
|
---|
| 307 | </varlistentry>
|
---|
[61562907] | 308 |
|
---|
[9333a525] | 309 | </variablelist>
|
---|
[61562907] | 310 |
|
---|
[30f88917] | 311 | </sect2>
|
---|
[61562907] | 312 |
|
---|
[30f88917] | 313 | </sect1>
|
---|