source: postlfs/security/nss.xml@ aa6d44af

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules 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 aa6d44af was 60d4af1, checked in by Douglas R. Reno <renodr@…>, 7 years ago

Update to NSS-3.28
Update to Samba-4.5.3
Fix something in the xfsprogs page
Comment out the test suite in Samba until I can add the Python Modules required

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

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