[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 |
|
---|
[9333a525] | 7 | <!ENTITY nss-download-http
|
---|
| 8 | "http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_13_3_RTM/src/nss-&nss-version;.tar.gz">
|
---|
| 9 | <!ENTITY nss-download-ftp
|
---|
| 10 | "ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_13_3_RTM/src/nss-&nss-version;.tar.gz">
|
---|
| 11 | <!ENTITY nss-md5sum "006cb82fa900e9e664b4b14a9b7810ca">
|
---|
| 12 | <!ENTITY nss-size "5.8 MB">
|
---|
| 13 | <!ENTITY nss-buildsize "70 MB (more than double this to run the test suite)">
|
---|
| 14 | <!ENTITY nss-time "1.0 SBU (at least an additional 3.5 SBU to run the test suite)">
|
---|
[30f88917] | 15 | ]>
|
---|
| 16 |
|
---|
[0fa170f] | 17 | <sect1 id="nss" xreflabel="NSS-&nss-version;">
|
---|
[30f88917] | 18 | <?dbhtml filename="nss.html"?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 |
|
---|
| 25 | <title>NSS-&nss-version;</title>
|
---|
| 26 |
|
---|
| 27 | <indexterm zone="nss">
|
---|
| 28 | <primary sortas="a-NSS">NSS</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to NSS</title>
|
---|
| 33 |
|
---|
[9333a525] | 34 | <para>
|
---|
| 35 | The Network Security Services (<application>NSS</application>) package is
|
---|
| 36 | a set of libraries designed to support cross-platform development of
|
---|
| 37 | security-enabled client and server applications. Applications built with
|
---|
| 38 | NSS can support SSL v2 and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12,
|
---|
| 39 | S/MIME, X.509 v3 certificates, and other security standards. This is
|
---|
| 40 | useful for implementing SSL and S/MIME or other Internet security
|
---|
| 41 | standards into an application.
|
---|
| 42 | </para>
|
---|
[30f88917] | 43 |
|
---|
[4c77a949] | 44 | &lfs71_checked;
|
---|
[e3060aa] | 45 |
|
---|
[30f88917] | 46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 47 | <itemizedlist spacing="compact">
|
---|
| 48 | <listitem>
|
---|
[9333a525] | 49 | <para>
|
---|
| 50 | Download (HTTP): <ulink url="&nss-download-http;"/>
|
---|
| 51 | </para>
|
---|
[30f88917] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[9333a525] | 54 | <para>
|
---|
| 55 | Download (FTP): <ulink url="&nss-download-ftp;"/>
|
---|
| 56 | </para>
|
---|
[30f88917] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[9333a525] | 59 | <para>
|
---|
[0f62b2b] | 60 | Download MD5 sum: &nss-md5sum;
|
---|
| 61 | </para>
|
---|
[30f88917] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[9333a525] | 64 | <para>
|
---|
| 65 | Download size: &nss-size;
|
---|
| 66 | </para>
|
---|
[30f88917] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[9333a525] | 69 | <para>
|
---|
| 70 | Estimated disk space required: &nss-buildsize;
|
---|
| 71 | </para>
|
---|
[30f88917] | 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
[9333a525] | 74 | <para>
|
---|
| 75 | Estimated build time: &nss-time;
|
---|
| 76 | </para>
|
---|
[30f88917] | 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
| 79 |
|
---|
| 80 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 81 | <itemizedlist spacing="compact">
|
---|
| 82 | <listitem>
|
---|
[9333a525] | 83 | <para>
|
---|
| 84 | Required patch:
|
---|
| 85 | <ulink url="&patch-root;/nss-&nss-version;-standalone-1.patch"/>
|
---|
| 86 | </para>
|
---|
[30f88917] | 87 | </listitem>
|
---|
| 88 | </itemizedlist>
|
---|
| 89 |
|
---|
[dd44df7e] | 90 | <bridgehead renderas="sect3">NSS Dependencies</bridgehead>
|
---|
| 91 |
|
---|
| 92 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[9333a525] | 93 | <para role="required">
|
---|
| 94 | <xref linkend="nspr"/>
|
---|
| 95 | </para>
|
---|
[dd44df7e] | 96 |
|
---|
| 97 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[9333a525] | 98 | <para role="recommended">
|
---|
| 99 | <xref linkend="sqlite"/> (internal <application>sqlite</application> is
|
---|
| 100 | incompatable with existing or future installations)
|
---|
| 101 | </para>
|
---|
[dd44df7e] | 102 |
|
---|
| 103 |
|
---|
[9333a525] | 104 | <para condition="html" role="usernotes">
|
---|
| 105 | User Notes: <ulink url="&blfs-wiki;/nss"/>
|
---|
| 106 | </para>
|
---|
[30f88917] | 107 | </sect2>
|
---|
| 108 |
|
---|
| 109 | <sect2 role="installation">
|
---|
| 110 | <title>Installation of NSS</title>
|
---|
| 111 |
|
---|
[9333a525] | 112 | <para>
|
---|
| 113 | Install <application>NSS</application> by running the following commands:
|
---|
| 114 | </para>
|
---|
| 115 |
|
---|
| 116 | <screen><userinput>patch -Np1 -i ../nss-&nss-version;-standalone-1.patch &&
|
---|
| 117 | cd mozilla/security/nss &&
|
---|
[60bb78f] | 118 | make nss_build_all $([ $(uname -m) = x86_64 ] && echo USE_64=1) BUILD_OPT=1 \
|
---|
[9333a525] | 119 | NSPR_INCLUDE_DIR=/usr/include/nspr USE_SYSTEM_ZLIB=1 ZLIB_LIBS=-lz \
|
---|
| 120 | $(cat /usr/include/sqlite3.h &> /dev/null && echo NSS_USE_SYSTEM_SQLITE=1)</userinput></screen>
|
---|
| 121 |
|
---|
| 122 | <para>This package does not come with a test suite.</para>
|
---|
| 123 | <!--
|
---|
| 124 | <para>
|
---|
| 125 | If you wish to test the results, you'll need to set the domain name of
|
---|
| 126 | your system in the <envar>DOMSUF</envar> environment variable. Most of the
|
---|
| 127 | tests will fail if you don't provide the correct domain name. The
|
---|
| 128 | voluminous output will report how many of the several thousand tests
|
---|
| 129 | passed, and if any failed. To review the details of any failures, you may
|
---|
| 130 | wish to capture stdout and stderr in a file.
|
---|
| 131 | </para>
|
---|
| 132 |
|
---|
| 133 | <para>
|
---|
| 134 | To run the tests, ensure you change the <command>export DOMSUF</command>
|
---|
| 135 | command below to an appropriate value, e.g.,
|
---|
| 136 | <parameter>mydomain.com</parameter> or, if you do not have any domain in
|
---|
| 137 | your <filename>/etc/hosts</filename> replace this with the developers'
|
---|
| 138 | recommendation of
|
---|
| 139 | <command>"export HOST=localhost DOMSUF=localdomain"</command> and issue
|
---|
| 140 | the following commands:
|
---|
| 141 | </para>
|
---|
[30f88917] | 142 |
|
---|
| 143 | <screen><userinput>bash
|
---|
| 144 |
|
---|
[3373ecb] | 145 | export NSS_LINUXDIR=$(basename `ls -d $PWD/mozilla/dist/Linux*`) &&
|
---|
[3597eb6] | 146 | export DOMSUF=<replaceable><validdomain.name></replaceable> &&
|
---|
[9c34dc7] | 147 | export PATH=$PATH:$PWD/mozilla/dist/$NSS_LINUXDIR/bin &&
|
---|
| 148 | export TEST_RESULTSDIR=$PWD/mozilla/tests_results/security &&
|
---|
[30f88917] | 149 |
|
---|
[9c34dc7] | 150 | cd mozilla/security/nss/tests &&
|
---|
[30f88917] | 151 | sed -i 's/gmake/make/' common/init.sh &&
|
---|
| 152 | ./all.sh &&
|
---|
| 153 |
|
---|
| 154 | grep Passed $TEST_RESULTSDIR/$(hostname).1/results.html | wc -l &&
|
---|
| 155 |
|
---|
| 156 | exit</userinput></screen>
|
---|
[9333a525] | 157 | -->
|
---|
| 158 | <para>
|
---|
| 159 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 160 | </para>
|
---|
| 161 |
|
---|
| 162 | <screen role="root"><userinput>cd ../../dist &&
|
---|
| 163 | install -v -m755 Linux*/lib/*.so /usr/lib &&
|
---|
| 164 | install -v -m644 Linux*/lib/{*.chk,libcrmf.a} /usr/lib &&
|
---|
[9c34dc7] | 165 | install -v -m755 -d /usr/include/nss &&
|
---|
[b3c2553] | 166 | cp -v -RL {public,private}/nss/* /usr/include/nss &&
|
---|
[c2d890f4] | 167 | chmod 644 /usr/include/nss/* &&
|
---|
| 168 | install -v -m755 Linux*/bin/{certutil,nss-config,pk12util} /usr/bin &&
|
---|
| 169 | install -v -m644 Linux*/lib/pkgconfig/nss.pc /usr/lib/pkgconfig</userinput></screen>
|
---|
[30f88917] | 170 | </sect2>
|
---|
| 171 |
|
---|
| 172 | <sect2 role="commands">
|
---|
| 173 | <title>Command Explanations</title>
|
---|
| 174 |
|
---|
[9333a525] | 175 | <para>
|
---|
[60bb78f] | 176 | <parameter>[ $(uname -m) = x86_64 ] && echo USE_64=1</parameter>:
|
---|
[9333a525] | 177 | This option is <emphasis>required on x86_64</emphasis>, otherwise the
|
---|
| 178 | <command>make</command> will attempt to create 32-bit objects and in a
|
---|
| 179 | non-multilib system it will fail. The [ $(arch) = x86_64 ] test ensures it
|
---|
| 180 | has no effect on a 32 bit system.
|
---|
| 181 | </para>
|
---|
| 182 |
|
---|
| 183 | <para>
|
---|
| 184 | <command>cat /usr/include/sqlite3.h ... </command>: This tests if
|
---|
| 185 | <application>sqlite</application> is installed and if so it
|
---|
| 186 | <command>echo</command>s the option NSS_USE_SYSTEM_SQLITE=1 to
|
---|
| 187 | <command>make</command> so that
|
---|
| 188 | <filename class="libraryfile">libsoftokn3.so</filename> will link against
|
---|
| 189 | the system version of sqlite.
|
---|
| 190 | </para>
|
---|
| 191 |
|
---|
| 192 | <para>
|
---|
| 193 | <parameter>BUILD_OPT=1</parameter>: This option is passed to
|
---|
| 194 | <command>make</command> so that the build is performed with no debugging
|
---|
| 195 | symbols built into the binaries and the default compiler optimizations are
|
---|
| 196 | used.
|
---|
| 197 | </para>
|
---|
| 198 |
|
---|
| 199 | <para>
|
---|
| 200 | <parameter>NSPR_INCLUDE_DIR=/usr/include/nspr</parameter>: This option
|
---|
| 201 | sets the location of the nspr headers.
|
---|
| 202 | </para>
|
---|
| 203 |
|
---|
| 204 | <para>
|
---|
| 205 | <parameter>USE_SYSTEM_ZLIB=1</parameter>: This option is passed to
|
---|
| 206 | <command>make</command> to ensure that the
|
---|
| 207 | <filename class="libraryfile">libssl3.so</filename> library is linked to
|
---|
| 208 | the system installed <application>zlib</application> instead of the
|
---|
| 209 | in-tree version.
|
---|
| 210 | </para>
|
---|
| 211 |
|
---|
| 212 | <para>
|
---|
| 213 | <parameter>ZLIB_LIBS=-lz</parameter>: This option provides the
|
---|
| 214 | linker flags needed to link to the system <application>zlib</application>.
|
---|
| 215 | </para>
|
---|
[30f88917] | 216 | </sect2>
|
---|
| 217 |
|
---|
| 218 | <sect2 role="content">
|
---|
| 219 | <title>Contents</title>
|
---|
| 220 |
|
---|
| 221 | <segmentedlist>
|
---|
| 222 | <segtitle>Installed Programs</segtitle>
|
---|
| 223 | <segtitle>Installed Libraries</segtitle>
|
---|
| 224 | <segtitle>Installed Directories</segtitle>
|
---|
| 225 |
|
---|
| 226 | <seglistitem>
|
---|
[9333a525] | 227 | <seg>certutil, nss-config and pk12util</seg>
|
---|
| 228 | <seg>
|
---|
| 229 | libcrmf.a, libfreebl3.so, libnss3.so, libnssckbi.so, libnssdbm3.so,
|
---|
| 230 | libnssutil3.so, libsmime3.so, libsoftokn3.so and libssl3.so
|
---|
| 231 | </seg>
|
---|
[9c34dc7] | 232 | <seg>/usr/include/nss</seg>
|
---|
[30f88917] | 233 | </seglistitem>
|
---|
| 234 | </segmentedlist>
|
---|
| 235 |
|
---|
| 236 | <variablelist>
|
---|
| 237 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 238 | <?dbfo list-presentation="list"?>
|
---|
| 239 | <?dbhtml list-presentation="table"?>
|
---|
| 240 |
|
---|
[9333a525] | 241 | <varlistentry id="certutil">
|
---|
| 242 | <term><command>certutil</command></term>
|
---|
| 243 | <listitem>
|
---|
| 244 | <para>
|
---|
| 245 | is the Mozilla Certificate Database Tool. It is a command-line
|
---|
| 246 | utility that can create and modify the Netscape Communicator
|
---|
| 247 | cert8.db and key3.db database files. It can also list, generate,
|
---|
| 248 | modify, or delete certificates within the cert8.db file and create
|
---|
| 249 | or change the password, generate new public and private key pairs,
|
---|
| 250 | display the contents of the key database, or delete key pairs within
|
---|
| 251 | the key3.db file.
|
---|
| 252 | </para>
|
---|
| 253 | <indexterm zone="nss certutil">
|
---|
| 254 | <primary sortas="b-certutil">certutil</primary>
|
---|
| 255 | </indexterm>
|
---|
| 256 | </listitem>
|
---|
| 257 | </varlistentry>
|
---|
| 258 |
|
---|
[30f88917] | 259 | <varlistentry id="nss-config">
|
---|
| 260 | <term><command>nss-config</command></term>
|
---|
| 261 | <listitem>
|
---|
[9333a525] | 262 | <para>
|
---|
| 263 | is used to determine the NSS library settings of the installed NSS
|
---|
| 264 | libraries.
|
---|
| 265 | </para>
|
---|
[30f88917] | 266 | <indexterm zone="nss nss-config">
|
---|
| 267 | <primary sortas="b-nss-config">nss-config</primary>
|
---|
| 268 | </indexterm>
|
---|
| 269 | </listitem>
|
---|
| 270 | </varlistentry>
|
---|
| 271 |
|
---|
[9333a525] | 272 | <varlistentry id="pk12util">
|
---|
| 273 | <term><command>pk12util</command></term>
|
---|
| 274 | <listitem>
|
---|
| 275 | <para>
|
---|
| 276 | is a tool for importing certificates and keys from pkcs #12 files
|
---|
| 277 | into NSS or exporting them. It can also list certificates and keys
|
---|
| 278 | in such files.
|
---|
| 279 | </para>
|
---|
| 280 | <indexterm zone="nss pk12util">
|
---|
| 281 | <primary sortas="b-pk12util">pk12util</primary>
|
---|
| 282 | </indexterm>
|
---|
| 283 | </listitem>
|
---|
| 284 | </varlistentry>
|
---|
| 285 | </variablelist>
|
---|
[30f88917] | 286 | </sect2>
|
---|
| 287 | </sect1>
|
---|