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