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