[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 |
|
---|
[d900e405] | 19 | <!ENTITY nss-md5sum "35854c549cb02100d0f90a6ef328e2e8">
|
---|
| 20 | <!ENTITY nss-size "7 MB">
|
---|
| 21 | <!ENTITY nss-buildsize "92 MB">
|
---|
| 22 | <!ENTITY nss-time "1.1 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 |
|
---|
[645e6b0] | 52 | &lfs79_checked;
|
---|
[0e78dee] | 53 | &gcc6_checked;
|
---|
[e3060aa] | 54 |
|
---|
[30f88917] | 55 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 56 | <itemizedlist spacing="compact">
|
---|
| 57 | <listitem>
|
---|
[9333a525] | 58 | <para>
|
---|
| 59 | Download (HTTP): <ulink url="&nss-download-http;"/>
|
---|
| 60 | </para>
|
---|
[30f88917] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[9333a525] | 63 | <para>
|
---|
| 64 | Download (FTP): <ulink url="&nss-download-ftp;"/>
|
---|
| 65 | </para>
|
---|
[30f88917] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[9333a525] | 68 | <para>
|
---|
[0f62b2b] | 69 | Download MD5 sum: &nss-md5sum;
|
---|
| 70 | </para>
|
---|
[30f88917] | 71 | </listitem>
|
---|
| 72 | <listitem>
|
---|
[9333a525] | 73 | <para>
|
---|
| 74 | Download size: &nss-size;
|
---|
| 75 | </para>
|
---|
[30f88917] | 76 | </listitem>
|
---|
| 77 | <listitem>
|
---|
[9333a525] | 78 | <para>
|
---|
| 79 | Estimated disk space required: &nss-buildsize;
|
---|
| 80 | </para>
|
---|
[30f88917] | 81 | </listitem>
|
---|
| 82 | <listitem>
|
---|
[9333a525] | 83 | <para>
|
---|
| 84 | Estimated build time: &nss-time;
|
---|
| 85 | </para>
|
---|
[30f88917] | 86 | </listitem>
|
---|
| 87 | </itemizedlist>
|
---|
| 88 |
|
---|
[299d5c54] | 89 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 90 | <itemizedlist spacing="compact">
|
---|
| 91 | <listitem>
|
---|
| 92 | <para>
|
---|
| 93 | Required patch:
|
---|
[c46a0e5] | 94 | <ulink url="&patch-root;/nss-&nss-version;-standalone-1.patch"/>
|
---|
[299d5c54] | 95 | </para>
|
---|
| 96 | </listitem>
|
---|
| 97 | </itemizedlist>
|
---|
| 98 |
|
---|
[dd44df7e] | 99 | <bridgehead renderas="sect3">NSS Dependencies</bridgehead>
|
---|
| 100 |
|
---|
| 101 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[9333a525] | 102 | <para role="required">
|
---|
| 103 | <xref linkend="nspr"/>
|
---|
| 104 | </para>
|
---|
[dd44df7e] | 105 |
|
---|
| 106 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[9333a525] | 107 | <para role="recommended">
|
---|
[c099902d] | 108 | <xref linkend="sqlite"/>
|
---|
[9333a525] | 109 | </para>
|
---|
[dd44df7e] | 110 |
|
---|
[9333a525] | 111 | <para condition="html" role="usernotes">
|
---|
| 112 | User Notes: <ulink url="&blfs-wiki;/nss"/>
|
---|
| 113 | </para>
|
---|
[30f88917] | 114 | </sect2>
|
---|
| 115 |
|
---|
| 116 | <sect2 role="installation">
|
---|
| 117 | <title>Installation of NSS</title>
|
---|
| 118 |
|
---|
[d190aae9] | 119 | <note>
|
---|
| 120 | <para>
|
---|
| 121 | This package does not support parallel build.
|
---|
| 122 | </para>
|
---|
| 123 | </note>
|
---|
| 124 |
|
---|
[9333a525] | 125 | <para>
|
---|
| 126 | Install <application>NSS</application> by running the following commands:
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
[c46a0e5] | 129 | <screen><userinput>patch -Np1 -i ../nss-&nss-version;-standalone-1.patch &&
|
---|
[b6d3d395] | 130 |
|
---|
[299d5c54] | 131 | cd nss &&
|
---|
[2beaab8] | 132 |
|
---|
| 133 | make -j1 BUILD_OPT=1 \
|
---|
[731d374] | 134 | NSPR_INCLUDE_DIR=/usr/include/nspr \
|
---|
| 135 | USE_SYSTEM_ZLIB=1 \
|
---|
| 136 | ZLIB_LIBS=-lz \
|
---|
[a45062d] | 137 | $([ $(uname -m) = x86_64 ] && echo USE_64=1) \
|
---|
[2beaab8] | 138 | $([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1)</userinput></screen>
|
---|
[9333a525] | 139 |
|
---|
| 140 | <para>
|
---|
[67bd6fe4] | 141 | This package does not come with a test suite.
|
---|
[9333a525] | 142 | </para>
|
---|
[30f88917] | 143 |
|
---|
[9333a525] | 144 | <para>
|
---|
| 145 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 146 | </para>
|
---|
| 147 |
|
---|
[2beaab8] | 148 | <screen role="root"><userinput>cd ../dist &&
|
---|
| 149 |
|
---|
| 150 | install -v -m755 Linux*/lib/*.so /usr/lib &&
|
---|
| 151 | install -v -m644 Linux*/lib/{*.chk,libcrmf.a} /usr/lib &&
|
---|
| 152 |
|
---|
| 153 | install -v -m755 -d /usr/include/nss &&
|
---|
| 154 | cp -v -RL {public,private}/nss/* /usr/include/nss &&
|
---|
| 155 | chmod -v 644 /usr/include/nss/* &&
|
---|
| 156 |
|
---|
[299d5c54] | 157 | install -v -m755 Linux*/bin/{certutil,nss-config,pk12util} /usr/bin &&
|
---|
[2beaab8] | 158 |
|
---|
[2b64864b] | 159 | install -v -m644 Linux*/lib/pkgconfig/nss.pc /usr/lib/pkgconfig</userinput></screen>
|
---|
[299d5c54] | 160 |
|
---|
[30f88917] | 161 | </sect2>
|
---|
| 162 |
|
---|
| 163 | <sect2 role="commands">
|
---|
| 164 | <title>Command Explanations</title>
|
---|
| 165 |
|
---|
[9333a525] | 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>
|
---|
[0d7900a] | 174 | <parameter>NSPR_INCLUDE_DIR=/usr/include/nspr</parameter>: This option
|
---|
[9333a525] | 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>
|
---|
[a45062d] | 190 |
|
---|
| 191 | <para>
|
---|
| 192 | <command>$([ $(uname -m) = x86_64 ] && 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 ] && 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>
|
---|
[299d5c54] | 208 |
|
---|
[30f88917] | 209 | </sect2>
|
---|
| 210 |
|
---|
| 211 | <sect2 role="content">
|
---|
| 212 | <title>Contents</title>
|
---|
| 213 |
|
---|
| 214 | <segmentedlist>
|
---|
| 215 | <segtitle>Installed Programs</segtitle>
|
---|
| 216 | <segtitle>Installed Libraries</segtitle>
|
---|
| 217 | <segtitle>Installed Directories</segtitle>
|
---|
| 218 |
|
---|
| 219 | <seglistitem>
|
---|
[9333a525] | 220 | <seg>
|
---|
[299d5c54] | 221 | certutil, nss-config, and pk12util
|
---|
[61562907] | 222 | </seg>
|
---|
| 223 | <seg>
|
---|
[d900e405] | 224 | libcrmf.a, libfreebl3.so, libfreeblpriv3.so, libgtest1.so, libnss3.so,
|
---|
[0468117] | 225 | libnssckbi.so, libnssdbm3.so, libnsssysinit.so,
|
---|
| 226 | libnssutil3.so, libsmime3.so, libsoftokn3.so, and libssl3.so
|
---|
[61562907] | 227 | </seg>
|
---|
| 228 | <seg>
|
---|
| 229 | /usr/include/nss
|
---|
[9333a525] | 230 | </seg>
|
---|
[30f88917] | 231 | </seglistitem>
|
---|
| 232 | </segmentedlist>
|
---|
| 233 |
|
---|
| 234 | <variablelist>
|
---|
| 235 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 236 | <?dbfo list-presentation="list"?>
|
---|
| 237 | <?dbhtml list-presentation="table"?>
|
---|
| 238 |
|
---|
[9333a525] | 239 | <varlistentry id="certutil">
|
---|
| 240 | <term><command>certutil</command></term>
|
---|
| 241 | <listitem>
|
---|
| 242 | <para>
|
---|
| 243 | is the Mozilla Certificate Database Tool. It is a command-line
|
---|
| 244 | utility that can create and modify the Netscape Communicator
|
---|
| 245 | cert8.db and key3.db database files. It can also list, generate,
|
---|
| 246 | modify, or delete certificates within the cert8.db file and create
|
---|
| 247 | or change the password, generate new public and private key pairs,
|
---|
| 248 | display the contents of the key database, or delete key pairs within
|
---|
| 249 | the key3.db file.
|
---|
| 250 | </para>
|
---|
| 251 | <indexterm zone="nss certutil">
|
---|
| 252 | <primary sortas="b-certutil">certutil</primary>
|
---|
| 253 | </indexterm>
|
---|
| 254 | </listitem>
|
---|
| 255 | </varlistentry>
|
---|
| 256 |
|
---|
[299d5c54] | 257 | <varlistentry id="nss-config">
|
---|
| 258 | <term><command>nss-config</command></term>
|
---|
| 259 | <listitem>
|
---|
| 260 | <para>
|
---|
| 261 | is used to determine the NSS library settings of the installed NSS
|
---|
| 262 | libraries.
|
---|
| 263 | </para>
|
---|
| 264 | <indexterm zone="nss nss-config">
|
---|
| 265 | <primary sortas="b-nss-config">nss-config</primary>
|
---|
| 266 | </indexterm>
|
---|
| 267 | </listitem>
|
---|
| 268 | </varlistentry>
|
---|
| 269 |
|
---|
[9333a525] | 270 | <varlistentry id="pk12util">
|
---|
| 271 | <term><command>pk12util</command></term>
|
---|
| 272 | <listitem>
|
---|
| 273 | <para>
|
---|
| 274 | is a tool for importing certificates and keys from pkcs #12 files
|
---|
| 275 | into NSS or exporting them. It can also list certificates and keys
|
---|
[0d7900a] | 276 | in such files.
|
---|
[9333a525] | 277 | </para>
|
---|
| 278 | <indexterm zone="nss pk12util">
|
---|
| 279 | <primary sortas="b-pk12util">pk12util</primary>
|
---|
| 280 | </indexterm>
|
---|
| 281 | </listitem>
|
---|
| 282 | </varlistentry>
|
---|
[61562907] | 283 |
|
---|
[9333a525] | 284 | </variablelist>
|
---|
[61562907] | 285 |
|
---|
[30f88917] | 286 | </sect2>
|
---|
[61562907] | 287 |
|
---|
[30f88917] | 288 | </sect1>
|
---|