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