source: postlfs/security/nss.xml@ 83c4744

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 83c4744 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 19 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 12.7 KB
Line 
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<!-- for when .0 is not part of the new tarball name, but always referenced -->
8<!ENTITY nss-url "archive.mozilla.org/pub/security/nss/releases">
9
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">-->
12
13<!-- no micro versions -->
14 <!ENTITY nss-download-http "https://&nss-url;/NSS_&nss-dir;_RTM/src/nss-&nss-version;.tar.gz">
15 <!ENTITY nss-download-ftp " ">
16 <!ENTITY nss-md5sum "1ec3c98dec196676ab0f1cae52a6d5c0">
17 <!ENTITY nss-size "81 MB">
18 <!ENTITY nss-buildsize "324 MB (add 288 MB for tests)">
19 <!ENTITY nss-time "2.3 SBU (with parallelism=4, add 60 SBU for tests)">
20 <!-- On my system, I got 64.2 SBU, but Bruce gets 18 SBU. -renodr -->
21 <!-- On my system, I got 63 SBU, but Xi gets ~18 SBU. -pierre (for 3.78) -->
22 <!-- On my 3400G for 3.79 I got 16 SBU -ken -->
23 <!-- Still 17 SBU for 3.81 - bdubbs -->
24 <!-- 73 SBU but I'm on Intel. -renodr -->
25]>
26
27<sect1 id="nss" xreflabel="nss-&nss-version;">
28 <?dbhtml filename="nss.html"?>
29
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
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>
49
50 &lfs112_checked;
51
52 <bridgehead renderas="sect3">Package Information</bridgehead>
53 <itemizedlist spacing="compact">
54 <listitem>
55 <para>
56 Download (HTTP): <ulink url="&nss-download-http;"/>
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download (FTP): <ulink url="&nss-download-ftp;"/>
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Download MD5 sum: &nss-md5sum;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Download size: &nss-size;
72 </para>
73 </listitem>
74 <listitem>
75 <para>
76 Estimated disk space required: &nss-buildsize;
77 </para>
78 </listitem>
79 <listitem>
80 <para>
81 Estimated build time: &nss-time;
82 </para>
83 </listitem>
84 </itemizedlist>
85
86 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
87 <itemizedlist spacing="compact">
88 <listitem>
89 <para>
90 Required patch:
91 <ulink url="&patch-root;/nss-&nss-version;-standalone-1.patch"/>
92 </para>
93 </listitem>
94 </itemizedlist>
95
96 <bridgehead renderas="sect3">NSS Dependencies</bridgehead>
97
98 <bridgehead renderas="sect4">Required</bridgehead>
99 <para role="required">
100 <xref linkend="nspr"/>
101 </para>
102
103 <bridgehead renderas="sect4">Recommended</bridgehead>
104 <para role="recommended">
105 <xref linkend="sqlite"/> and
106 <xref role="runtime" linkend="p11-kit"/> (runtime)
107 </para>
108
109 <para condition="html" role="usernotes">
110 User Notes: <ulink url="&blfs-wiki;/nss"/>
111 </para>
112 </sect2>
113
114 <sect2 role="installation">
115 <title>Installation of NSS</title>
116
117 <!-- In 3.53.x, parallel build was possible.
118 And with another rebuild of nss-3.54, all is well again, but
119 broken in 3.60. Fixed again in 3.62. -->
120<!--
121 <note>
122 <para>
123 This package does not support parallel build.
124 </para>
125 </note>
126-->
127
128 <para>
129 Install <application>NSS</application> by running the following commands:
130 </para>
131
132<screen><userinput>patch -Np1 -i ../nss-&nss-version;-standalone-1.patch &amp;&amp;
133
134cd nss &amp;&amp;
135
136make BUILD_OPT=1 \
137 NSPR_INCLUDE_DIR=/usr/include/nspr \
138 USE_SYSTEM_ZLIB=1 \
139 ZLIB_LIBS=-lz \
140 NSS_ENABLE_WERROR=0 \
141 $([ $(uname -m) = x86_64 ] &amp;&amp; echo USE_64=1) \
142 $([ -f /usr/include/sqlite3.h ] &amp;&amp; echo NSS_USE_SYSTEM_SQLITE=1)</userinput></screen>
143
144 <para>
145 <!-- the unittest files get compiled automatically since nss-3.31.0 -->
146 To run the tests, execute the following commands<!--(1 test is known to fail)-->:
147 </para>
148
149<screen remap="test"><userinput>cd tests &amp;&amp;
150HOST=localhost DOMSUF=localdomain ./all.sh
151cd ../</userinput></screen>
152
153 <note>
154 <para>Some information about the tests:</para>
155 <itemizedlist spacing="compact">
156 <listitem>
157 <para>
158 HOST=localhost and DOMSUF=localdomain are required.
159 Without these variables, a FQDN is
160 required to be specified and this generic way should work for
161 everyone, provided <systemitem>localhost.localdomain</systemitem>
162 is defined in <filename>/etc/hosts</filename>, as done in
163 <ulink url="&lfs-root;/chapter09/network.html#ch-config-hosts">the
164 lfs book</ulink>.
165 </para>
166 </listitem>
167 <listitem>
168 <para>
169 The tests take an extremely long time to run. If desired there is
170 information in the all.sh script about running subsets of the
171 total test suite.
172 </para>
173 </listitem>
174 <listitem>
175 <para>
176 When interrupting the tests, the test suite
177 fails to spin down test servers that are run. This leads to an
178 infinite loop in the tests where the test suite tries to kill a server
179 that doesn't exist anymore because it pulls the wrong PID.
180 </para>
181 </listitem>
182 <listitem>
183 <para>
184 Test suite results (in HTML format!) can be found at
185 ../../test_results/security/localhost.1/results.html
186 </para>
187 </listitem>
188 </itemizedlist>
189 </note>
190
191 <para>
192 Now, as the <systemitem class="username">root</systemitem> user:
193 </para>
194
195<screen role="root"><userinput>cd ../dist &amp;&amp;
196
197install -v -m755 Linux*/lib/*.so /usr/lib &amp;&amp;
198install -v -m644 Linux*/lib/{*.chk,libcrmf.a} /usr/lib &amp;&amp;
199
200install -v -m755 -d /usr/include/nss &amp;&amp;
201cp -v -RL {public,private}/nss/* /usr/include/nss &amp;&amp;
202chmod -v 644 /usr/include/nss/* &amp;&amp;
203
204install -v -m755 Linux*/bin/{certutil,nss-config,pk12util} /usr/bin &amp;&amp;
205
206install -v -m644 Linux*/lib/pkgconfig/nss.pc /usr/lib/pkgconfig</userinput></screen>
207
208 </sect2>
209
210 <sect2 role="commands">
211 <title>Command Explanations</title>
212
213 <para>
214 <parameter>BUILD_OPT=1</parameter>: This option is passed to
215 <command>make</command> so that the build is performed with no debugging
216 symbols built into the binaries and the default compiler optimizations are
217 used.
218 </para>
219
220 <para>
221 <parameter>NSPR_INCLUDE_DIR=/usr/include/nspr</parameter>: This option
222 sets the location of the nspr headers.
223 </para>
224
225 <para>
226 <parameter>USE_SYSTEM_ZLIB=1</parameter>: This option is passed to
227 <command>make</command> to ensure that the
228 <filename class="libraryfile">libssl3.so</filename> library is linked to
229 the system installed <application>zlib</application> instead of the
230 in-tree version.
231 </para>
232
233 <para>
234 <parameter>ZLIB_LIBS=-lz</parameter>: This option provides the
235 linker flags needed to link to the system <application>zlib</application>.
236 </para>
237
238 <para>
239 <command>$([ $(uname -m) = x86_64 ] &amp;&amp; echo USE_64=1)</command>:
240 The <parameter>USE_64=1</parameter> option is <emphasis>required on
241 x86_64</emphasis>, otherwise <command>make</command> will try (and fail)
242 to create 32-bit objects. The [ $(uname -m) = x86_64 ] test ensures it
243 has no effect on a 32 bit system.
244 </para>
245
246 <para>
247 <command>([ -f /usr/include/sqlite3.h ] &amp;&amp; echo
248 NSS_USE_SYSTEM_SQLITE=1)</command>: This tests if
249 <application>sqlite</application> is installed and if so it
250 <command>echo</command>s the option NSS_USE_SYSTEM_SQLITE=1 to
251 <command>make</command> so that
252 <filename class="libraryfile">libsoftokn3.so</filename> will link against
253 the system version of sqlite.
254 </para>
255
256 <para>
257 <option>NSS_DISABLE_GTESTS=1</option>: If you don't need to run
258 NSS test suite, append this option to <command>make</command> command,
259 to prevent the compilation of tests and save some build time.
260 </para>
261
262 </sect2>
263
264 <sect2 role="configuration">
265 <title>Configuring NSS</title>
266
267 <para>
268 If <xref linkend="p11-kit"/> is installed, the
269 <application>p11-kit</application> trust module
270 (<filename>/usr/lib/pkcs11/p11-kit-trust.so</filename>) can be used as a
271 drop-in replacement for <filename>/usr/lib/libnssckbi.so</filename> to
272 transparently make the system CAs available to
273 <application>NSS</application> aware applications, rather than the static
274 list provided by <filename>/usr/lib/libnssckbi.so</filename>. As the
275 <systemitem class="username">root</systemitem> user, execute the following
276 command:
277 </para>
278
279<screen role="root"><userinput>ln -sfv ./pkcs11/p11-kit-trust.so /usr/lib/libnssckbi.so</userinput></screen>
280
281 <para>
282 Additionally, for dependent applications that do not use the internal
283 database (<filename>/usr/lib/libnssckbi.so</filename>), the
284 <filename>/usr/sbin/make-ca</filename> script included on the
285 <xref linkend="make-ca"/> page can generate a system wide NSS DB with the
286 <parameter>-n</parameter> switch, or by modifying the
287 <filename>/etc/make-ca/make-ca.conf</filename> file.
288 </para>
289
290 </sect2>
291
292 <sect2 role="content">
293 <title>Contents</title>
294
295 <segmentedlist>
296 <segtitle>Installed Programs</segtitle>
297 <segtitle>Installed Libraries</segtitle>
298 <segtitle>Installed Directories</segtitle>
299
300 <seglistitem>
301 <seg>
302 certutil, nss-config, and pk12util
303 </seg>
304 <seg>
305 libcrmf.a, libfreebl3.so, libfreeblpriv3.so,
306 libnss3.so, libnssckbi.so, libnssckbi-testlib.so,
307 libnssdbm3.so, libnsssysinit.so, libnssutil3.so,
308 libpkcs11testmodule.so, libsmime3.so, libsoftokn3.so,
309 and libssl3.so
310 </seg>
311 <seg>
312 /usr/include/nss
313 </seg>
314 </seglistitem>
315 </segmentedlist>
316
317 <variablelist>
318 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
319 <?dbfo list-presentation="list"?>
320 <?dbhtml list-presentation="table"?>
321
322 <varlistentry id="certutil">
323 <term><command>certutil</command></term>
324 <listitem>
325 <para>
326 is the Mozilla Certificate Database Tool. It is a command-line
327 utility that can create and modify the Netscape Communicator
328 cert8.db and key3.db database files. It can also list, generate,
329 modify, or delete certificates within the cert8.db file and create
330 or change the password, generate new public and private key pairs,
331 display the contents of the key database, or delete key pairs within
332 the key3.db file
333 </para>
334 <indexterm zone="nss certutil">
335 <primary sortas="b-certutil">certutil</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="nss-config">
341 <term><command>nss-config</command></term>
342 <listitem>
343 <para>
344 is used to determine the NSS library settings of the installed NSS
345 libraries
346 </para>
347 <indexterm zone="nss nss-config">
348 <primary sortas="b-nss-config">nss-config</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
353 <varlistentry id="pk12util">
354 <term><command>pk12util</command></term>
355 <listitem>
356 <para>
357 is a tool for importing certificates and keys from pkcs #12 files
358 into NSS or exporting them. It can also list certificates and keys
359 in such files
360 </para>
361 <indexterm zone="nss pk12util">
362 <primary sortas="b-pk12util">pk12util</primary>
363 </indexterm>
364 </listitem>
365 </varlistentry>
366
367 </variablelist>
368
369 </sect2>
370
371</sect1>
Note: See TracBrowser for help on using the repository browser.