2006-01-23 12:34:54 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2006-01-23 12:34:54 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2016-02-20 14:04:51 +08:00
|
|
|
<!-- for when .0 is not part of the new tarball name, but always referenced -->
|
2019-06-28 09:46:05 +08:00
|
|
|
<!ENTITY nss-url "archive.mozilla.org/pub/security/nss/releases">
|
2013-07-02 21:19:17 +08:00
|
|
|
|
2020-01-15 23:01:19 +08:00
|
|
|
<!-- micro versions -->
|
2020-06-28 04:13:23 +08:00
|
|
|
<!--<!ENTITY nss-download-http "https://&nss-url;/NSS_3_&nss-minor-version;_&nss-micro-version;_RTM/src/nss-&nss-version;.tar.gz">-->
|
2017-01-10 01:41:59 +08:00
|
|
|
|
2020-05-03 10:20:59 +08:00
|
|
|
<!-- no micro versions -->
|
2020-06-28 04:13:23 +08:00
|
|
|
<!ENTITY nss-download-http "https://&nss-url;/NSS_3_&nss-minor-version;_RTM/src/nss-&nss-version;.tar.gz">
|
2017-02-27 03:48:51 +08:00
|
|
|
|
2020-09-03 04:20:34 +08:00
|
|
|
<!ENTITY nss-download-ftp " ">
|
2020-10-18 02:34:20 +08:00
|
|
|
<!ENTITY nss-md5sum "0012ef80308f70e35ab1babc6153cee5">
|
2020-07-26 01:22:40 +08:00
|
|
|
<!ENTITY nss-size "78 MB">
|
2019-06-28 09:46:05 +08:00
|
|
|
<!-- 50 MB increase is due to new test files, see #12187 -->
|
2020-10-18 02:34:20 +08:00
|
|
|
<!ENTITY nss-buildsize "291 MB (add 123 MB for tests)">
|
|
|
|
<!ENTITY nss-time "2.6 SBU (with parallelism=4, add 24 SBU for tests)">
|
2006-01-23 12:34:54 +08:00
|
|
|
]>
|
|
|
|
|
2006-01-24 15:11:58 +08:00
|
|
|
<sect1 id="nss" xreflabel="NSS-&nss-version;">
|
2006-01-23 12:34:54 +08:00
|
|
|
<?dbhtml filename="nss.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>NSS-&nss-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="nss">
|
|
|
|
<primary sortas="a-NSS">NSS</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to NSS</title>
|
|
|
|
|
2012-03-05 07:27:16 +08:00
|
|
|
<para>
|
|
|
|
The Network Security Services (<application>NSS</application>) package is
|
|
|
|
a set of libraries designed to support cross-platform development of
|
|
|
|
security-enabled client and server applications. Applications built with
|
|
|
|
NSS can support SSL v2 and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12,
|
|
|
|
S/MIME, X.509 v3 certificates, and other security standards. This is
|
|
|
|
useful for implementing SSL and S/MIME or other Internet security
|
|
|
|
standards into an application.
|
|
|
|
</para>
|
2006-01-23 12:34:54 +08:00
|
|
|
|
2020-08-17 12:12:39 +08:00
|
|
|
&lfs10_checked;
|
2010-10-27 02:24:49 +08:00
|
|
|
|
2006-01-23 12:34:54 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-03-05 07:27:16 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&nss-download-http;"/>
|
|
|
|
</para>
|
2006-01-23 12:34:54 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-05 07:27:16 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&nss-download-ftp;"/>
|
|
|
|
</para>
|
2006-01-23 12:34:54 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-05 07:27:16 +08:00
|
|
|
<para>
|
2012-03-05 08:17:31 +08:00
|
|
|
Download MD5 sum: &nss-md5sum;
|
|
|
|
</para>
|
2006-01-23 12:34:54 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-05 07:27:16 +08:00
|
|
|
<para>
|
|
|
|
Download size: &nss-size;
|
|
|
|
</para>
|
2006-01-23 12:34:54 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-05 07:27:16 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &nss-buildsize;
|
|
|
|
</para>
|
2006-01-23 12:34:54 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-05 07:27:16 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &nss-time;
|
|
|
|
</para>
|
2006-01-23 12:34:54 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2013-07-02 21:19:17 +08:00
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Required patch:
|
2020-07-26 01:22:40 +08:00
|
|
|
<ulink url="&patch-root;/nss-&nss-version;-standalone-1.patch"/>
|
2013-07-02 21:19:17 +08:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2009-08-29 14:15:05 +08:00
|
|
|
<bridgehead renderas="sect3">NSS Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2012-03-05 07:27:16 +08:00
|
|
|
<para role="required">
|
|
|
|
<xref linkend="nspr"/>
|
|
|
|
</para>
|
2009-08-29 14:15:05 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
2012-03-05 07:27:16 +08:00
|
|
|
<para role="recommended">
|
2017-09-16 04:50:02 +08:00
|
|
|
<xref linkend="sqlite"/> and
|
|
|
|
<xref role="runtime" linkend="p11-kit"/> (runtime)
|
2012-03-05 07:27:16 +08:00
|
|
|
</para>
|
2009-08-29 14:15:05 +08:00
|
|
|
|
2012-03-05 07:27:16 +08:00
|
|
|
<para condition="html" role="usernotes">
|
|
|
|
User Notes: <ulink url="&blfs-wiki;/nss"/>
|
|
|
|
</para>
|
2006-01-23 12:34:54 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of NSS</title>
|
|
|
|
|
2020-06-28 04:13:23 +08:00
|
|
|
<!-- In 3.53.x, parallel build was possible. See
|
|
|
|
http://lists.linuxfromscratch.org/pipermail/blfs-dev/2020-June/037498.html
|
|
|
|
for more information. -->
|
|
|
|
|
2020-06-28 08:41:57 +08:00
|
|
|
<!-- And with another rebuild of nss-3.54, all is well again
|
2020-06-28 04:13:23 +08:00
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
This package does not support parallel build.
|
|
|
|
</para>
|
|
|
|
</note>
|
2020-06-28 08:41:57 +08:00
|
|
|
-->
|
2020-06-28 04:13:23 +08:00
|
|
|
|
2012-03-05 07:27:16 +08:00
|
|
|
<para>
|
|
|
|
Install <application>NSS</application> by running the following commands:
|
|
|
|
</para>
|
|
|
|
|
2020-07-26 01:22:40 +08:00
|
|
|
<screen><userinput>patch -Np1 -i ../nss-&nss-version;-standalone-1.patch &&
|
2014-09-16 13:13:43 +08:00
|
|
|
|
2013-07-02 21:19:17 +08:00
|
|
|
cd nss &&
|
2016-02-04 01:22:58 +08:00
|
|
|
|
2020-06-04 03:46:58 +08:00
|
|
|
make BUILD_OPT=1 \
|
2013-07-01 06:05:20 +08:00
|
|
|
NSPR_INCLUDE_DIR=/usr/include/nspr \
|
|
|
|
USE_SYSTEM_ZLIB=1 \
|
|
|
|
ZLIB_LIBS=-lz \
|
2017-05-10 13:04:28 +08:00
|
|
|
NSS_ENABLE_WERROR=0 \
|
2012-04-24 19:15:27 +08:00
|
|
|
$([ $(uname -m) = x86_64 ] && echo USE_64=1) \
|
2016-02-04 01:22:58 +08:00
|
|
|
$([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1)</userinput></screen>
|
2012-03-05 07:27:16 +08:00
|
|
|
|
|
|
|
<para>
|
2020-01-10 11:14:15 +08:00
|
|
|
<!-- the unittest files get compiled automatically since nss-3.31.0 -->
|
2020-06-02 12:45:35 +08:00
|
|
|
<!-- The unit tests were run during the build.-->
|
|
|
|
To run the tests, execute the following commands:
|
2012-03-05 07:27:16 +08:00
|
|
|
</para>
|
2006-01-23 12:34:54 +08:00
|
|
|
|
2020-06-02 12:45:35 +08:00
|
|
|
<screen remap="test"><userinput>cd tests &&
|
|
|
|
HOST=localhost DOMSUF=localdomain ./all.sh &&
|
|
|
|
cd ../</userinput></screen>
|
|
|
|
|
|
|
|
<!-- Some information about the tests:
|
|
|
|
- HOST=localhost and DOMSUF=localdomain require the changes done to
|
|
|
|
/etc/hosts in r11892 (LFS). Without these variables, a FQDN is
|
|
|
|
required to specified, and this generic way should work for
|
|
|
|
everyone.
|
|
|
|
- With NSS-3.53, there were 53,866 tests. The tests take an
|
|
|
|
extremely long time to run.
|
|
|
|
- Another interesting discovery has to do with interrupting the tests.
|
|
|
|
It was discovered that, when interrupting the tests, the test suite
|
|
|
|
fails to spin down test servers that are run. This leads to an
|
|
|
|
infinite loop in the tests where the test suite tries to kill a server
|
|
|
|
that doesn't exist anymore because it pulls the wrong PID.
|
|
|
|
- Test suite results (in HTML format!) can be found at
|
|
|
|
../../test_results/security/localhost.1/
|
|
|
|
-->
|
|
|
|
|
2012-03-05 07:27:16 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2016-02-04 01:22:58 +08:00
|
|
|
<screen role="root"><userinput>cd ../dist &&
|
|
|
|
|
|
|
|
install -v -m755 Linux*/lib/*.so /usr/lib &&
|
|
|
|
install -v -m644 Linux*/lib/{*.chk,libcrmf.a} /usr/lib &&
|
|
|
|
|
|
|
|
install -v -m755 -d /usr/include/nss &&
|
|
|
|
cp -v -RL {public,private}/nss/* /usr/include/nss &&
|
|
|
|
chmod -v 644 /usr/include/nss/* &&
|
|
|
|
|
2013-07-02 21:19:17 +08:00
|
|
|
install -v -m755 Linux*/bin/{certutil,nss-config,pk12util} /usr/bin &&
|
2016-02-04 01:22:58 +08:00
|
|
|
|
2016-02-04 21:17:26 +08:00
|
|
|
install -v -m644 Linux*/lib/pkgconfig/nss.pc /usr/lib/pkgconfig</userinput></screen>
|
2013-07-02 21:19:17 +08:00
|
|
|
|
2006-01-23 12:34:54 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2012-03-05 07:27:16 +08:00
|
|
|
<para>
|
|
|
|
<parameter>BUILD_OPT=1</parameter>: This option is passed to
|
|
|
|
<command>make</command> so that the build is performed with no debugging
|
|
|
|
symbols built into the binaries and the default compiler optimizations are
|
|
|
|
used.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2013-02-12 02:51:17 +08:00
|
|
|
<parameter>NSPR_INCLUDE_DIR=/usr/include/nspr</parameter>: This option
|
2012-03-05 07:27:16 +08:00
|
|
|
sets the location of the nspr headers.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>USE_SYSTEM_ZLIB=1</parameter>: This option is passed to
|
|
|
|
<command>make</command> to ensure that the
|
|
|
|
<filename class="libraryfile">libssl3.so</filename> library is linked to
|
|
|
|
the system installed <application>zlib</application> instead of the
|
|
|
|
in-tree version.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>ZLIB_LIBS=-lz</parameter>: This option provides the
|
|
|
|
linker flags needed to link to the system <application>zlib</application>.
|
|
|
|
</para>
|
2012-04-24 19:15:27 +08:00
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>$([ $(uname -m) = x86_64 ] && echo USE_64=1)</command>:
|
|
|
|
The <parameter>USE_64=1</parameter> option is <emphasis>required on
|
|
|
|
x86_64</emphasis>, otherwise <command>make</command> will try (and fail)
|
|
|
|
to create 32-bit objects. The [ $(uname -m) = x86_64 ] test ensures it
|
|
|
|
has no effect on a 32 bit system.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>([ -f /usr/include/sqlite3.h ] && echo
|
|
|
|
NSS_USE_SYSTEM_SQLITE=1)</command>: This tests if
|
|
|
|
<application>sqlite</application> is installed and if so it
|
|
|
|
<command>echo</command>s the option NSS_USE_SYSTEM_SQLITE=1 to
|
|
|
|
<command>make</command> so that
|
|
|
|
<filename class="libraryfile">libsoftokn3.so</filename> will link against
|
|
|
|
the system version of sqlite.
|
|
|
|
</para>
|
2013-07-02 21:19:17 +08:00
|
|
|
|
2020-10-03 21:46:26 +08:00
|
|
|
<para>
|
2020-10-03 22:16:46 +08:00
|
|
|
<option>NSS_DISABLE_GTESTS=1</option>: If you don't need to run
|
2020-10-03 21:46:26 +08:00
|
|
|
NSS test suite, append this option to <command>make</command> command,
|
|
|
|
to prevent the compilation of tests and save some build time.
|
|
|
|
</para>
|
|
|
|
|
2006-01-23 12:34:54 +08:00
|
|
|
</sect2>
|
|
|
|
|
2016-11-18 15:13:46 +08:00
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring NSS</title>
|
|
|
|
|
2020-03-25 03:19:44 +08:00
|
|
|
<para>
|
|
|
|
If <xref linkend="p11-kit"/> is installed, the
|
|
|
|
<application>p11-kit</application> trust module
|
|
|
|
(<filename>/usr/lib/pkcs11/p11-kit-trust.so</filename>) can be used as a
|
|
|
|
drop-in replacement for <filename>/usr/lib/libnssckbi.so</filename> to
|
|
|
|
transparently make the system CAs available to
|
|
|
|
<application>NSS</application> aware applications, rather than the static
|
|
|
|
list provided by <filename>/usr/lib/libnssckbi.so</filename>. As the
|
|
|
|
<systemitem class="username">root</systemitem> user, execute the following
|
|
|
|
commands:
|
|
|
|
</para>
|
2016-11-18 15:13:46 +08:00
|
|
|
|
2019-02-25 05:00:49 +08:00
|
|
|
<screen role="root"><userinput>ln -sfv ./pkcs11/p11-kit-trust.so /usr/lib/libnssckbi.so</userinput></screen>
|
2016-11-18 15:13:46 +08:00
|
|
|
|
2020-03-25 03:19:44 +08:00
|
|
|
<para>
|
|
|
|
Additionally, for dependent applications that do not use the internal
|
|
|
|
database (<filename>/usr/lib/libnssckbi.so</filename>), the
|
|
|
|
<filename>/usr/sbin/make-ca</filename> script, included on the
|
|
|
|
<xref linkend="make-ca"/> page can generate a system wide NSS DB with the
|
|
|
|
<parameter>-n</parameter> switch, or by modifying the
|
|
|
|
<filename>/etc/make-ca.conf</filename> file.
|
|
|
|
</para>
|
2016-11-18 15:13:46 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2006-01-23 12:34:54 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2012-03-05 07:27:16 +08:00
|
|
|
<seg>
|
2013-07-02 21:19:17 +08:00
|
|
|
certutil, nss-config, and pk12util
|
2012-08-19 01:58:28 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2020-06-02 12:45:35 +08:00
|
|
|
libcrmf.a, libfreebl3.so, libfreeblpriv3.so,
|
|
|
|
libnss3.so, libnssckbi.so, libnssckbi-testlib.so,
|
2020-05-03 10:20:59 +08:00
|
|
|
libnssdbm3.so, libnsssysinit.so, libnssutil3.so,
|
|
|
|
libpkcs11testmodule.so, libsmime3.so, libsoftokn3.so,
|
2019-06-28 09:46:05 +08:00
|
|
|
and libssl3.so
|
2012-08-19 01:58:28 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/include/nss
|
2012-03-05 07:27:16 +08:00
|
|
|
</seg>
|
2006-01-23 12:34:54 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
2012-03-05 07:27:16 +08:00
|
|
|
<varlistentry id="certutil">
|
|
|
|
<term><command>certutil</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is the Mozilla Certificate Database Tool. It is a command-line
|
|
|
|
utility that can create and modify the Netscape Communicator
|
|
|
|
cert8.db and key3.db database files. It can also list, generate,
|
|
|
|
modify, or delete certificates within the cert8.db file and create
|
|
|
|
or change the password, generate new public and private key pairs,
|
|
|
|
display the contents of the key database, or delete key pairs within
|
|
|
|
the key3.db file.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="nss certutil">
|
|
|
|
<primary sortas="b-certutil">certutil</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-07-02 21:19:17 +08:00
|
|
|
<varlistentry id="nss-config">
|
|
|
|
<term><command>nss-config</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to determine the NSS library settings of the installed NSS
|
|
|
|
libraries.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="nss nss-config">
|
|
|
|
<primary sortas="b-nss-config">nss-config</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-03-05 07:27:16 +08:00
|
|
|
<varlistentry id="pk12util">
|
|
|
|
<term><command>pk12util</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a tool for importing certificates and keys from pkcs #12 files
|
|
|
|
into NSS or exporting them. It can also list certificates and keys
|
2013-02-12 02:51:17 +08:00
|
|
|
in such files.
|
2012-03-05 07:27:16 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="nss pk12util">
|
|
|
|
<primary sortas="b-pk12util">pk12util</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-08-19 01:58:28 +08:00
|
|
|
|
2012-03-05 07:27:16 +08:00
|
|
|
</variablelist>
|
2012-08-19 01:58:28 +08:00
|
|
|
|
2006-01-23 12:34:54 +08:00
|
|
|
</sect2>
|
2012-08-19 01:58:28 +08:00
|
|
|
|
2006-01-23 12:34:54 +08:00
|
|
|
</sect1>
|