[d5404360] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[546b042] | 7 | <!ENTITY gnutls-download-http "http://ftp.gnu.org/gnu/gnutls/gnutls-&gnutls-version;.tar.xz">
|
---|
| 8 | <!ENTITY gnutls-download-ftp "ftp://ftp.gnu.org/gnu/gnutls/gnutls-&gnutls-version;.tar.xz">
|
---|
[5eaf9af8] | 9 | <!ENTITY gnutls-md5sum "7480dff7115e5af85215893c06b3ac5c">
|
---|
| 10 | <!ENTITY gnutls-size "4.5 MB">
|
---|
| 11 | <!ENTITY gnutls-buildsize "95 MB">
|
---|
| 12 | <!ENTITY gnutls-time "1.2 SBU (additional 2.5 SBU if running the testsuite)">
|
---|
[d5404360] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="gnutls" xreflabel="GnuTLS-&gnutls-version;">
|
---|
| 16 | <?dbhtml filename="gnutls.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>GnuTLS-&gnutls-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="gnutls">
|
---|
| 26 | <primary sortas="a-GnuTLS">GnuTLS</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to GnuTLS</title>
|
---|
| 31 |
|
---|
[3ee626e] | 32 | <para>
|
---|
| 33 | The <application>GnuTLS</application> package contains libraries and
|
---|
| 34 | userspace tools which provide a secure layer over a reliable transport
|
---|
| 35 | layer. Currently the <application>GnuTLS</application> library implements
|
---|
| 36 | the proposed standards by the IETF's TLS working group. Quoting from the
|
---|
| 37 | TLS protocol specification:
|
---|
| 38 | </para>
|
---|
| 39 |
|
---|
| 40 | <para>
|
---|
| 41 | <quote>The TLS protocol provides communications privacy over the
|
---|
| 42 | Internet. The protocol allows client/server applications to communicate in
|
---|
| 43 | a way that is designed to prevent eavesdropping, tampering, or message
|
---|
| 44 | forgery.</quote>
|
---|
| 45 | </para>
|
---|
| 46 |
|
---|
| 47 | <para>
|
---|
| 48 | <application>GnuTLS</application> provides support for TLS 1.1, TLS
|
---|
| 49 | 1.0 and SSL 3.0 protocols, TLS extensions, including server name and max
|
---|
| 50 | record size. Additionally, the library supports authentication using the
|
---|
| 51 | SRP protocol, X.509 certificates and OpenPGP keys, along with support for
|
---|
| 52 | the TLS Pre-Shared-Keys (PSK) extension, the Inner Application (TLS/IA)
|
---|
| 53 | extension and X.509 and OpenPGP certificate handling.
|
---|
| 54 | </para>
|
---|
[d5404360] | 55 |
|
---|
[55b07cb] | 56 | &lfs71_checked;
|
---|
[214718a] | 57 |
|
---|
[d5404360] | 58 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 59 | <itemizedlist spacing="compact">
|
---|
[546b042] | 60 | <listitem>
|
---|
[3ee626e] | 61 | <para>
|
---|
| 62 | Download (HTTP): <ulink url="&gnutls-download-http;"/>
|
---|
| 63 | </para>
|
---|
[546b042] | 64 | </listitem>
|
---|
[d5404360] | 65 | <listitem>
|
---|
[3ee626e] | 66 | <para>
|
---|
| 67 | Download (FTP): <ulink url="&gnutls-download-ftp;"/>
|
---|
| 68 | </para>
|
---|
[d5404360] | 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
[3ee626e] | 71 | <para>
|
---|
| 72 | Download MD5 sum: &gnutls-md5sum;
|
---|
| 73 | </para>
|
---|
[d5404360] | 74 | </listitem>
|
---|
| 75 | <listitem>
|
---|
[3ee626e] | 76 | <para>
|
---|
| 77 | Download size: &gnutls-size;
|
---|
| 78 | </para>
|
---|
[d5404360] | 79 | </listitem>
|
---|
| 80 | <listitem>
|
---|
[3ee626e] | 81 | <para>
|
---|
| 82 | Estimated disk space required: &gnutls-buildsize;
|
---|
| 83 | </para>
|
---|
[d5404360] | 84 | </listitem>
|
---|
| 85 | <listitem>
|
---|
[3ee626e] | 86 | <para>
|
---|
| 87 | Estimated build time: &gnutls-time;
|
---|
| 88 | </para>
|
---|
[d5404360] | 89 | </listitem>
|
---|
| 90 | </itemizedlist>
|
---|
| 91 |
|
---|
| 92 | <bridgehead renderas="sect3">GnuTLS Dependencies</bridgehead>
|
---|
| 93 |
|
---|
| 94 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[3ee626e] | 95 | <para role="required">
|
---|
| 96 | <xref linkend="nettle"/>
|
---|
| 97 | </para>
|
---|
[d5404360] | 98 |
|
---|
[5eaf9af8] | 99 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 100 | <para role="recommended">
|
---|
| 101 | <xref linkend="libtasn1"/>
|
---|
| 102 | </para>
|
---|
| 103 |
|
---|
[d5404360] | 104 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[0c6c35d] | 105 | <para role="optional">
|
---|
| 106 | <xref linkend="gtk-doc"/>,
|
---|
| 107 | <xref linkend="guile"/>,
|
---|
[546b042] | 108 | <xref linkend="libidn"/>,
|
---|
| 109 | <xref linkend="p11-kit"/> and
|
---|
[3ee626e] | 110 | <ulink url="http://valgrind.org/">Valgrind</ulink> (used during the test suite)
|
---|
| 111 | </para>
|
---|
[d5404360] | 112 |
|
---|
[3ee626e] | 113 | <para>
|
---|
| 114 | Note that if you do not install <xref linkend="libtasn1"/>, an older
|
---|
| 115 | version shipped in the <application>GnuTLS</application> tarball will be
|
---|
| 116 | used instead.
|
---|
| 117 | </para>
|
---|
[38b68055] | 118 |
|
---|
[d5404360] | 119 | <para condition="html" role="usernotes">User Notes:
|
---|
[5eaf9af8] | 120 | <ulink url="&blfs-wiki;/gnutls"/>
|
---|
| 121 | </para>
|
---|
[d5404360] | 122 | </sect2>
|
---|
| 123 |
|
---|
| 124 | <sect2 role="installation">
|
---|
| 125 | <title>Installation of GnuTLS</title>
|
---|
| 126 |
|
---|
[3ee626e] | 127 | <para>
|
---|
| 128 | Install <application>GnuTLS</application> by running the
|
---|
| 129 | following commands:
|
---|
| 130 | </para>
|
---|
[d5404360] | 131 |
|
---|
[5eaf9af8] | 132 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
[d5404360] | 133 | make</userinput></screen>
|
---|
| 134 |
|
---|
[3ee626e] | 135 | <para>
|
---|
| 136 | To test the results, issue: <command>make check</command>.
|
---|
| 137 | </para>
|
---|
[d5404360] | 138 |
|
---|
[3ee626e] | 139 | <para>
|
---|
| 140 | Now, as the <systemitem class="username">root</systemitem>
|
---|
| 141 | user:
|
---|
| 142 | </para>
|
---|
[d5404360] | 143 |
|
---|
| 144 | <screen role="root"><userinput>make install &&
|
---|
[2e81579] | 145 | install -v -m755 -d /usr/share/doc/gnutls-&gnutls-version; &&
|
---|
| 146 | install -v -m644 doc/*.{html,png,eps,pdf,ps} doc/cyclo/*.html \
|
---|
| 147 | /usr/share/doc/gnutls-&gnutls-version; &&
|
---|
| 148 | cp -v -R doc/credentials \
|
---|
[d5404360] | 149 | /usr/share/doc/gnutls-&gnutls-version;</userinput></screen>
|
---|
| 150 |
|
---|
[3ee626e] | 151 | <para>
|
---|
| 152 | If you did not pass the <option>--enable-gtk-doc</option> parameter
|
---|
| 153 | to the <command>configure</command> script, install the API documentation
|
---|
| 154 | to the <filename class='directory'>/usr/share/gtk-doc/html/gnutls</filename>
|
---|
| 155 | directory using the following command as the
|
---|
| 156 | <systemitem class="username">root</systemitem> user:
|
---|
| 157 | </para>
|
---|
[2e81579] | 158 |
|
---|
| 159 | <screen role="root"><userinput>make -C doc/reference install-data-local</userinput></screen>
|
---|
| 160 |
|
---|
[d5404360] | 161 | </sect2>
|
---|
| 162 |
|
---|
[d309b21] | 163 | <sect2 role="commands">
|
---|
| 164 | <title>Command Explanations</title>
|
---|
| 165 |
|
---|
[3ee626e] | 166 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5eaf9af8] | 167 | href="../../xincludes/static-libraries.xml"/>
|
---|
[3ee626e] | 168 |
|
---|
[e05cd03f] | 169 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5eaf9af8] | 170 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[d309b21] | 171 |
|
---|
| 172 | </sect2>
|
---|
| 173 |
|
---|
[d5404360] | 174 | <sect2 role="content">
|
---|
| 175 | <title>Contents</title>
|
---|
| 176 |
|
---|
| 177 | <segmentedlist>
|
---|
| 178 | <segtitle>Installed Programs</segtitle>
|
---|
| 179 | <segtitle>Installed Libraries</segtitle>
|
---|
[32dfb13c] | 180 | <segtitle>Installed Directories</segtitle>
|
---|
[d5404360] | 181 |
|
---|
| 182 | <seglistitem>
|
---|
[3ee626e] | 183 | <seg>
|
---|
| 184 | certtool, crywrap, gnutls-cli, gnutls-cli-debug, gnutls-serv,
|
---|
| 185 | ocsptool, p11tool, psktool, and srptool
|
---|
| 186 | </seg>
|
---|
| 187 | <seg>
|
---|
[5eaf9af8] | 188 | libgnutls.so, libgnutls-openssl.so, and libgnutlsxx.so
|
---|
[3ee626e] | 189 | </seg>
|
---|
| 190 | <seg>
|
---|
| 191 | /usr/include/gnutls,
|
---|
| 192 | /usr/share/doc/gnutls-&gnutls-version; and
|
---|
| 193 | /usr/share/gtk-doc/html/gnutls
|
---|
| 194 | </seg>
|
---|
[d5404360] | 195 | </seglistitem>
|
---|
| 196 | </segmentedlist>
|
---|
| 197 |
|
---|
| 198 | <variablelist>
|
---|
| 199 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 200 | <?dbfo list-presentation="list"?>
|
---|
| 201 | <?dbhtml list-presentation="table"?>
|
---|
| 202 |
|
---|
| 203 | <varlistentry id="certtool">
|
---|
| 204 | <term><command>certtool</command></term>
|
---|
| 205 | <listitem>
|
---|
[3ee626e] | 206 | <para>
|
---|
| 207 | is used to generate X.509 certificates, certificate requests,
|
---|
| 208 | and private keys.
|
---|
| 209 | </para>
|
---|
[d5404360] | 210 | <indexterm zone="gnutls certtool">
|
---|
| 211 | <primary sortas="b-certtool">certtool</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
| 215 |
|
---|
[0c6c35d] | 216 | <varlistentry id="crywrap">
|
---|
| 217 | <term><command>crywrap</command></term>
|
---|
| 218 | <listitem>
|
---|
[3ee626e] | 219 | <para>
|
---|
| 220 | is a simple wrapper that waits for TLS/SSL connections, and
|
---|
| 221 | proxies them to an unencrypted location.
|
---|
| 222 | </para>
|
---|
[0c6c35d] | 223 | <indexterm zone="gnutls crywrap">
|
---|
| 224 | <primary sortas="b-crywrap">crywrap</primary>
|
---|
| 225 | </indexterm>
|
---|
| 226 | </listitem>
|
---|
| 227 | </varlistentry>
|
---|
| 228 |
|
---|
[d5404360] | 229 | <varlistentry id="gnutls-cli">
|
---|
| 230 | <term><command>gnutls-cli</command></term>
|
---|
| 231 | <listitem>
|
---|
[3ee626e] | 232 | <para>
|
---|
| 233 | is a simple client program to set up a TLS connection to some
|
---|
| 234 | other computer.
|
---|
| 235 | </para>
|
---|
[d5404360] | 236 | <indexterm zone="gnutls gnutls-cli">
|
---|
| 237 | <primary sortas="b-gnutls-cli">gnutls-cli</primary>
|
---|
| 238 | </indexterm>
|
---|
| 239 | </listitem>
|
---|
| 240 | </varlistentry>
|
---|
| 241 |
|
---|
| 242 | <varlistentry id="gnutls-cli-debug">
|
---|
| 243 | <term><command>gnutls-cli-debug</command></term>
|
---|
| 244 | <listitem>
|
---|
[3ee626e] | 245 | <para>
|
---|
| 246 | is a simple client program to set up a TLS connection to some
|
---|
| 247 | other computer and produces very verbose progress results.
|
---|
| 248 | </para>
|
---|
[d5404360] | 249 | <indexterm zone="gnutls gnutls-cli-debug">
|
---|
| 250 | <primary sortas="b-gnutls-cli-debug">gnutls-cli-debug</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
| 254 |
|
---|
| 255 | <varlistentry id="gnutls-serv">
|
---|
| 256 | <term><command>gnutls-serv</command></term>
|
---|
| 257 | <listitem>
|
---|
[3ee626e] | 258 | <para>
|
---|
| 259 | is a simple server program that listens to incoming TLS
|
---|
| 260 | connections.
|
---|
| 261 | </para>
|
---|
[d5404360] | 262 | <indexterm zone="gnutls gnutls-serv">
|
---|
| 263 | <primary sortas="b-gnutls-serv">gnutls-serv</primary>
|
---|
| 264 | </indexterm>
|
---|
| 265 | </listitem>
|
---|
| 266 | </varlistentry>
|
---|
| 267 |
|
---|
[546b042] | 268 | <varlistentry id="ocsptool">
|
---|
| 269 | <term><command>ocsptool</command></term>
|
---|
| 270 | <listitem>
|
---|
[3ee626e] | 271 | <para>
|
---|
| 272 | is a program that can parse and print information about OCSP
|
---|
| 273 | requests/responses, generate requests and verify responses.
|
---|
| 274 | </para>
|
---|
[546b042] | 275 | <indexterm zone="gnutls ocsptool">
|
---|
| 276 | <primary sortas="b-ocsptool">ocsptool</primary>
|
---|
| 277 | </indexterm>
|
---|
| 278 | </listitem>
|
---|
| 279 | </varlistentry>
|
---|
| 280 |
|
---|
| 281 | <varlistentry id="p11tool">
|
---|
| 282 | <term><command>p11tool</command></term>
|
---|
| 283 | <listitem>
|
---|
[3ee626e] | 284 | <para>
|
---|
| 285 | is a program that allows handling data from PKCS #11 smart cards
|
---|
| 286 | and security modules.
|
---|
| 287 | </para>
|
---|
[546b042] | 288 | <indexterm zone="gnutls p11tool">
|
---|
| 289 | <primary sortas="b-p11tool">p11tool</primary>
|
---|
| 290 | </indexterm>
|
---|
| 291 | </listitem>
|
---|
| 292 | </varlistentry>
|
---|
| 293 |
|
---|
[d5404360] | 294 | <varlistentry id="psktool">
|
---|
| 295 | <term><command>psktool</command></term>
|
---|
| 296 | <listitem>
|
---|
[3ee626e] | 297 | <para>
|
---|
| 298 | is a simple program that generates random keys for use with TLS-PSK.
|
---|
| 299 | </para>
|
---|
[d5404360] | 300 | <indexterm zone="gnutls psktool">
|
---|
| 301 | <primary sortas="b-psktool">psktool</primary>
|
---|
| 302 | </indexterm>
|
---|
| 303 | </listitem>
|
---|
| 304 | </varlistentry>
|
---|
| 305 |
|
---|
| 306 | <varlistentry id="srptool">
|
---|
| 307 | <term><command>srptool</command></term>
|
---|
| 308 | <listitem>
|
---|
[3ee626e] | 309 | <para>
|
---|
| 310 | is a simple program that emulates the programs in the Stanford
|
---|
| 311 | SRP (Secure Remote Password) libraries using GnuTLS.
|
---|
| 312 | </para>
|
---|
[d5404360] | 313 | <indexterm zone="gnutls srptool">
|
---|
| 314 | <primary sortas="b-srptool">srptool</primary>
|
---|
| 315 | </indexterm>
|
---|
| 316 | </listitem>
|
---|
| 317 | </varlistentry>
|
---|
| 318 |
|
---|
| 319 | <varlistentry id="libgnutls">
|
---|
[5eaf9af8] | 320 | <term><filename class='libraryfile'>libgnutls.so</filename></term>
|
---|
[d5404360] | 321 | <listitem>
|
---|
[3ee626e] | 322 | <para>
|
---|
| 323 | contains the core API functions and X.509 certificate API functions.
|
---|
| 324 | </para>
|
---|
[d5404360] | 325 | <indexterm zone="gnutls libgnutls">
|
---|
[5eaf9af8] | 326 | <primary sortas="c-libgnutls">libgnutls.so</primary>
|
---|
[d5404360] | 327 | </indexterm>
|
---|
| 328 | </listitem>
|
---|
| 329 | </varlistentry>
|
---|
| 330 |
|
---|
| 331 | </variablelist>
|
---|
| 332 |
|
---|
| 333 | </sect2>
|
---|
| 334 |
|
---|
| 335 | </sect1>
|
---|