source: postlfs/security/nss.xml@ 39b5f49f

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 39b5f49f was 9e1670e1, checked in by Xi Ruoyao <xry111@…>, 2 years ago

Revert "nss: document fails about PayPal certs"

This reverts commit 83996dc912adb46f21690a1998d1dda4ca6077e2.

The upstream has updated PayPal certs and added a check to skip the test
if the certs expire again.

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