source: postlfs/security/nss.xml@ a508099

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.7 7.8 7.9 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 krejzi/svn lazarus lxqt nosym 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 a508099 was a508099, checked in by Ken Moffat <ken@…>, 10 years ago

nss-3.17

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

  • Property mode set to 100644
File size: 9.1 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 -->
8 <!ENTITY nss-url "ftp.mozilla.org/pub/mozilla.org/security/nss/releases">
9
10 <!ENTITY nss-download-http
11 "http://&nss-url;/NSS_3_&nss-minor-version;_RTM/src/nss-&nss-version;.tar.gz">
12 <!ENTITY nss-download-ftp
13 "ftp://&nss-url;/NSS_3_&nss-minor-version;_RTM/src/nss-&nss-version;.tar.gz">
14<!-- normal versions
15 <!ENTITY nss-download-http
16 "http://&nss-url;/NSS_3_&nss-minor-version;_&nss-micro-version;_RTM/src/nss-&nss-version;.tar.gz">
17-->
18 <!ENTITY nss-md5sum "081dd99afa12af589c09e2d7cb5f5c6d">
19 <!ENTITY nss-size "6.2 MB">
20 <!ENTITY nss-buildsize "79 MB">
21 <!ENTITY nss-time "0.7 SBU">
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 &lfs75_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"/>
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 <note>
118 <para>
119 This package does not support parallel build.
120 </para>
121 </note>
122
123 <para>
124 Install <application>NSS</application> by running the following commands:
125 </para>
126
127<screen><userinput>patch -Np1 -i ../nss-&nss-version;-standalone-1.patch &amp;&amp;
128cd nss &amp;&amp;
129make BUILD_OPT=1 \
130 NSPR_INCLUDE_DIR=/usr/include/nspr \
131 USE_SYSTEM_ZLIB=1 \
132 ZLIB_LIBS=-lz \
133 $([ $(uname -m) = x86_64 ] &amp;&amp; echo USE_64=1) \
134 $([ -f /usr/include/sqlite3.h ] &amp;&amp; echo NSS_USE_SYSTEM_SQLITE=1) -j1</userinput></screen>
135
136 <para>
137 This package does not come with a test suite.
138 </para>
139
140 <para>
141 Now, as the <systemitem class="username">root</systemitem> user:
142 </para>
143
144<screen role="root"><userinput>cd ../dist &amp;&amp;
145install -v -m755 Linux*/lib/*.so /usr/lib &amp;&amp;
146install -v -m644 Linux*/lib/{*.chk,libcrmf.a} /usr/lib &amp;&amp;
147install -v -m755 -d /usr/include/nss &amp;&amp;
148cp -v -RL {public,private}/nss/* /usr/include/nss &amp;&amp;
149chmod -v 644 /usr/include/nss/* &amp;&amp;
150install -v -m755 Linux*/bin/{certutil,nss-config,pk12util} /usr/bin &amp;&amp;
151install -v -m644 Linux*/lib/pkgconfig/nss.pc /usr/lib/pkgconfig</userinput></screen>
152
153 </sect2>
154
155 <sect2 role="commands">
156 <title>Command Explanations</title>
157
158 <para>
159 <parameter>BUILD_OPT=1</parameter>: This option is passed to
160 <command>make</command> so that the build is performed with no debugging
161 symbols built into the binaries and the default compiler optimizations are
162 used.
163 </para>
164
165 <para>
166 <parameter>NSPR_INCLUDE_DIR=/usr/include/nspr</parameter>: This option
167 sets the location of the nspr headers.
168 </para>
169
170 <para>
171 <parameter>USE_SYSTEM_ZLIB=1</parameter>: This option is passed to
172 <command>make</command> to ensure that the
173 <filename class="libraryfile">libssl3.so</filename> library is linked to
174 the system installed <application>zlib</application> instead of the
175 in-tree version.
176 </para>
177
178 <para>
179 <parameter>ZLIB_LIBS=-lz</parameter>: This option provides the
180 linker flags needed to link to the system <application>zlib</application>.
181 </para>
182
183 <para>
184 <command>$([ $(uname -m) = x86_64 ] &amp;&amp; echo USE_64=1)</command>:
185 The <parameter>USE_64=1</parameter> option is <emphasis>required on
186 x86_64</emphasis>, otherwise <command>make</command> will try (and fail)
187 to create 32-bit objects. The [ $(uname -m) = x86_64 ] test ensures it
188 has no effect on a 32 bit system.
189 </para>
190
191 <para>
192 <command>([ -f /usr/include/sqlite3.h ] &amp;&amp; echo
193 NSS_USE_SYSTEM_SQLITE=1)</command>: This tests if
194 <application>sqlite</application> is installed and if so it
195 <command>echo</command>s the option NSS_USE_SYSTEM_SQLITE=1 to
196 <command>make</command> so that
197 <filename class="libraryfile">libsoftokn3.so</filename> will link against
198 the system version of sqlite.
199 </para>
200
201 </sect2>
202
203 <sect2 role="content">
204 <title>Contents</title>
205
206 <segmentedlist>
207 <segtitle>Installed Programs</segtitle>
208 <segtitle>Installed Libraries</segtitle>
209 <segtitle>Installed Directories</segtitle>
210
211 <seglistitem>
212 <seg>
213 certutil, nss-config, and pk12util
214 </seg>
215 <seg>
216 libcrmf.a, libfreebl3.so, libnss3.so, libnssckbi.so,
217 libnssdbm3.so, libnsssysinit.so, libnssutil3.so,
218 libsmime3.so, libsoftokn3.so, and libssl3.so
219 </seg>
220 <seg>
221 /usr/include/nss
222 </seg>
223 </seglistitem>
224 </segmentedlist>
225
226 <variablelist>
227 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
228 <?dbfo list-presentation="list"?>
229 <?dbhtml list-presentation="table"?>
230
231 <varlistentry id="certutil">
232 <term><command>certutil</command></term>
233 <listitem>
234 <para>
235 is the Mozilla Certificate Database Tool. It is a command-line
236 utility that can create and modify the Netscape Communicator
237 cert8.db and key3.db database files. It can also list, generate,
238 modify, or delete certificates within the cert8.db file and create
239 or change the password, generate new public and private key pairs,
240 display the contents of the key database, or delete key pairs within
241 the key3.db file.
242 </para>
243 <indexterm zone="nss certutil">
244 <primary sortas="b-certutil">certutil</primary>
245 </indexterm>
246 </listitem>
247 </varlistentry>
248
249 <varlistentry id="nss-config">
250 <term><command>nss-config</command></term>
251 <listitem>
252 <para>
253 is used to determine the NSS library settings of the installed NSS
254 libraries.
255 </para>
256 <indexterm zone="nss nss-config">
257 <primary sortas="b-nss-config">nss-config</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261
262 <varlistentry id="pk12util">
263 <term><command>pk12util</command></term>
264 <listitem>
265 <para>
266 is a tool for importing certificates and keys from pkcs #12 files
267 into NSS or exporting them. It can also list certificates and keys
268 in such files.
269 </para>
270 <indexterm zone="nss pk12util">
271 <primary sortas="b-pk12util">pk12util</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
275
276 </variablelist>
277
278 </sect2>
279
280</sect1>
Note: See TracBrowser for help on using the repository browser.