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