source: postlfs/security/nss.xml@ a69ca8e

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 a69ca8e was 209ca23, checked in by Douglas R. Reno <renodr@…>, 4 years ago

Update to nss-3.53.1
Update to lcms2-2.11
Update to pidgin-2.14.1
Updaet to vlc-3.0.11

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

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