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