source: postlfs/security/nss.xml@ b68a004

10.0 10.1 11.0 11.1 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 upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since b68a004 was b68a004, checked in by Douglas R. Reno <renodr@…>, 4 years ago

Update to NSS-3.53 (and include the test suite)
Update to librsvg-2.48.5

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23229 af4574ff-66df-0310-9fd7-8a98e5e911e0

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