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