source: postlfs/security/nss.xml@ 65aeaa02

11.2 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/soup3 xry111/xf86-video-removal
Last change on this file since 65aeaa02 was 65aeaa02, checked in by Douglas R. Reno <renodr@…>, 21 months ago

Update to nss-3.82

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