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