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
RevLine 
[30f88917]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[30f88917]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[09b524b]7<!-- for when .0 is not part of the new tarball name, but always referenced -->
[23ed085]8<!ENTITY nss-url "archive.mozilla.org/pub/security/nss/releases">
[299d5c54]9
[6968e3cb]10<!-- micro versions-->
[fe83f5c]11<!--<!ENTITY nss-download-http "https://&nss-url;/NSS_3_&nss-minor-version;_&nss-micro-version;_RTM/src/nss-&nss-version;.tar.gz">-->
[02b153a]12
[d445316]13<!-- no micro versions -->
[a44d5048]14<!ENTITY nss-download-http "https://&nss-url;/NSS_&nss-dir;_RTM/src/nss-&nss-version;.tar.gz">
[4b65cdf]15
[365c6fb]16 <!ENTITY nss-download-ftp " ">
[65aeaa02]17 <!ENTITY nss-md5sum "d16c020657bcae7eecd9e8d8e04ed29d">
[b4ca8bb]18 <!ENTITY nss-size "81 MB">
[65aeaa02]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)">
[0771e2f]21 <!-- On my system, I got 64.2 SBU, but Bruce gets 18 SBU. -renodr -->
[b0b536c]22 <!-- On my system, I got 63 SBU, but Xi gets ~18 SBU. -pierre (for 3.78) -->
[71e36c7]23 <!-- On my 3400G for 3.79 I got 16 SBU -ken -->
[43fb57c]24 <!-- Still 17 SBU for 3.81 - bdubbs -->
[65aeaa02]25 <!-- 73 SBU but I'm on Intel. -renodr -->
[30f88917]26]>
27
[b4ca8bb]28<sect1 id="nss" xreflabel="nss-&nss-version;">
[30f88917]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
[9333a525]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>
[30f88917]53
[d9622443]54 &lfs111_checked;
[e3060aa]55
[30f88917]56 <bridgehead renderas="sect3">Package Information</bridgehead>
57 <itemizedlist spacing="compact">
58 <listitem>
[9333a525]59 <para>
60 Download (HTTP): <ulink url="&nss-download-http;"/>
61 </para>
[30f88917]62 </listitem>
63 <listitem>
[9333a525]64 <para>
65 Download (FTP): <ulink url="&nss-download-ftp;"/>
66 </para>
[30f88917]67 </listitem>
68 <listitem>
[9333a525]69 <para>
[0f62b2b]70 Download MD5 sum: &nss-md5sum;
71 </para>
[30f88917]72 </listitem>
73 <listitem>
[9333a525]74 <para>
75 Download size: &nss-size;
76 </para>
[30f88917]77 </listitem>
78 <listitem>
[9333a525]79 <para>
80 Estimated disk space required: &nss-buildsize;
81 </para>
[30f88917]82 </listitem>
83 <listitem>
[9333a525]84 <para>
85 Estimated build time: &nss-time;
86 </para>
[30f88917]87 </listitem>
88 </itemizedlist>
89
[299d5c54]90 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
91 <itemizedlist spacing="compact">
92 <listitem>
93 <para>
94 Required patch:
[a41a3ea9]95 <ulink url="&patch-root;/nss-&nss-version;-standalone-1.patch"/>
[299d5c54]96 </para>
97 </listitem>
98 </itemizedlist>
99
[dd44df7e]100 <bridgehead renderas="sect3">NSS Dependencies</bridgehead>
101
102 <bridgehead renderas="sect4">Required</bridgehead>
[9333a525]103 <para role="required">
104 <xref linkend="nspr"/>
105 </para>
[dd44df7e]106
107 <bridgehead renderas="sect4">Recommended</bridgehead>
[9333a525]108 <para role="recommended">
[96e9478]109 <xref linkend="sqlite"/> and
110 <xref role="runtime" linkend="p11-kit"/> (runtime)
[9333a525]111 </para>
[dd44df7e]112
[9333a525]113 <para condition="html" role="usernotes">
114 User Notes: <ulink url="&blfs-wiki;/nss"/>
115 </para>
[30f88917]116 </sect2>
117
118 <sect2 role="installation">
119 <title>Installation of NSS</title>
120
[2c3969a]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
[a9b40fd]125 <!-- And with another rebuild of nss-3.54, all is well again, but broken in 3.60 -->
[dd1d0c08]126 <!-- fixed again in 3.62
[2c3969a]127 <note>
128 <para>
129 This package does not support parallel build.
130 </para>
[dd1d0c08]131 </note>-->
[2c3969a]132
[9333a525]133 <para>
134 Install <application>NSS</application> by running the following commands:
135 </para>
136
[a41a3ea9]137<screen><userinput>patch -Np1 -i ../nss-&nss-version;-standalone-1.patch &amp;&amp;
[b6d3d395]138
[299d5c54]139cd nss &amp;&amp;
[2beaab8]140
[dd1d0c08]141make BUILD_OPT=1 \
[731d374]142 NSPR_INCLUDE_DIR=/usr/include/nspr \
143 USE_SYSTEM_ZLIB=1 \
144 ZLIB_LIBS=-lz \
[af9fba4]145 NSS_ENABLE_WERROR=0 \
[a45062d]146 $([ $(uname -m) = x86_64 ] &amp;&amp; echo USE_64=1) \
[2beaab8]147 $([ -f /usr/include/sqlite3.h ] &amp;&amp; echo NSS_USE_SYSTEM_SQLITE=1)</userinput></screen>
[9333a525]148
149 <para>
[4158a9b]150 <!-- the unittest files get compiled automatically since nss-3.31.0 -->
[9e1670e1]151 To run the tests, execute the following commands<!--(1 test is known to fail)-->:
[9333a525]152 </para>
[30f88917]153
[b68a004]154<screen remap="test"><userinput>cd tests &amp;&amp;
[c7768882]155HOST=localhost DOMSUF=localdomain ./all.sh
[b68a004]156cd ../</userinput></screen>
[8558044]157
158 <note>
[73c6f44e]159 <para>Some information about the tests:</para>
160 <itemizedlist spacing="compact">
161 <listitem>
162 <para>
[6968e3cb]163 HOST=localhost and DOMSUF=localdomain are required.
[73c6f44e]164 Without these variables, a FQDN is
[fef4473]165 required to be specified and this generic way should work for
[b0b536c]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>.
[73c6f44e]170 </para>
171 </listitem>
172 <listitem>
173 <para>
174 The tests take an extremely long time to run. If desired there is
[8558044]175 information in the all.sh script about running subsets of the
[73c6f44e]176 total test suite.
177 </para>
178 </listitem>
179 <listitem>
180 <para>
181 When interrupting the tests, the test suite
[b68a004]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.
[73c6f44e]185 </para>
186 </listitem>
187 <listitem>
188 <para>
[8558044]189 Test suite results (in HTML format!) can be found at
[73c6f44e]190 ../../test_results/security/localhost.1/results.html
191 </para>
192 </listitem>
193 </itemizedlist>
194 </note>
[b68a004]195
[9333a525]196 <para>
197 Now, as the <systemitem class="username">root</systemitem> user:
198 </para>
199
[2beaab8]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
[299d5c54]209install -v -m755 Linux*/bin/{certutil,nss-config,pk12util} /usr/bin &amp;&amp;
[2beaab8]210
[2b64864b]211install -v -m644 Linux*/lib/pkgconfig/nss.pc /usr/lib/pkgconfig</userinput></screen>
[299d5c54]212
[30f88917]213 </sect2>
214
215 <sect2 role="commands">
216 <title>Command Explanations</title>
217
[9333a525]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>
[0d7900a]226 <parameter>NSPR_INCLUDE_DIR=/usr/include/nspr</parameter>: This option
[9333a525]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>
[a45062d]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>
[299d5c54]260
[d65b11c]261 <para>
[26b48ac]262 <option>NSS_DISABLE_GTESTS=1</option>: If you don't need to run
[d65b11c]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
[30f88917]267 </sect2>
268
[4a16903]269 <sect2 role="configuration">
270 <title>Configuring NSS</title>
271
[47274444]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>
[4a16903]283
[5c69a2d]284<screen role="root"><userinput>ln -sfv ./pkcs11/p11-kit-trust.so /usr/lib/libnssckbi.so</userinput></screen>
[4a16903]285
[47274444]286 <para>
287 Additionally, for dependent applications that do not use the internal
288 database (<filename>/usr/lib/libnssckbi.so</filename>), the
[fef4473]289 <filename>/usr/sbin/make-ca</filename> script included on the
[47274444]290 <xref linkend="make-ca"/> page can generate a system wide NSS DB with the
291 <parameter>-n</parameter> switch, or by modifying the
[0771e2f]292 <filename>/etc/make-ca/make-ca.conf</filename> file.
[47274444]293 </para>
[4a16903]294
295 </sect2>
296
[30f88917]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>
[9333a525]306 <seg>
[299d5c54]307 certutil, nss-config, and pk12util
[61562907]308 </seg>
309 <seg>
[b68a004]310 libcrmf.a, libfreebl3.so, libfreeblpriv3.so,
311 libnss3.so, libnssckbi.so, libnssckbi-testlib.so,
[8558044]312 libnssdbm3.so, libnsssysinit.so, libnssutil3.so,
313 libpkcs11testmodule.so, libsmime3.so, libsoftokn3.so,
[23ed085]314 and libssl3.so
[61562907]315 </seg>
316 <seg>
317 /usr/include/nss
[9333a525]318 </seg>
[30f88917]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
[9333a525]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
[4c24eb0a]337 the key3.db file
[9333a525]338 </para>
339 <indexterm zone="nss certutil">
340 <primary sortas="b-certutil">certutil</primary>
341 </indexterm>
342 </listitem>
343 </varlistentry>
344
[299d5c54]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
[4c24eb0a]350 libraries
[299d5c54]351 </para>
352 <indexterm zone="nss nss-config">
353 <primary sortas="b-nss-config">nss-config</primary>
354 </indexterm>
355 </listitem>
356 </varlistentry>
357
[9333a525]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
[4c24eb0a]364 in such files
[9333a525]365 </para>
366 <indexterm zone="nss pk12util">
367 <primary sortas="b-pk12util">pk12util</primary>
368 </indexterm>
369 </listitem>
370 </varlistentry>
[61562907]371
[9333a525]372 </variablelist>
[61562907]373
[30f88917]374 </sect2>
[61562907]375
[30f88917]376</sect1>
Note: See TracBrowser for help on using the repository browser.