[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">
|
---|
[73d97caf] | 9 | <!ENTITY gnutls-md5sum "6c075012a57cb4a10285c1d7b166441b">
|
---|
[5eaf9af8] | 10 | <!ENTITY gnutls-size "4.5 MB">
|
---|
[73d97caf] | 11 | <!ENTITY gnutls-buildsize "105 MB">
|
---|
| 12 | <!ENTITY gnutls-time "0.8 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 |
|
---|
[60ecc5bb] | 56 | &lfs72_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 |
|
---|
[73d97caf] | 144 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[d5404360] | 145 |
|
---|
[3ee626e] | 146 | <para>
|
---|
| 147 | If you did not pass the <option>--enable-gtk-doc</option> parameter
|
---|
| 148 | to the <command>configure</command> script, install the API documentation
|
---|
[73d97caf] | 149 | to the <filename class="directory">/usr/share/gtk-doc/html/gnutls</filename>
|
---|
[3ee626e] | 150 | directory using the following command as the
|
---|
| 151 | <systemitem class="username">root</systemitem> user:
|
---|
| 152 | </para>
|
---|
[2e81579] | 153 |
|
---|
| 154 | <screen role="root"><userinput>make -C doc/reference install-data-local</userinput></screen>
|
---|
| 155 |
|
---|
[d5404360] | 156 | </sect2>
|
---|
| 157 |
|
---|
[d309b21] | 158 | <sect2 role="commands">
|
---|
| 159 | <title>Command Explanations</title>
|
---|
| 160 |
|
---|
[3ee626e] | 161 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5eaf9af8] | 162 | href="../../xincludes/static-libraries.xml"/>
|
---|
[3ee626e] | 163 |
|
---|
[e05cd03f] | 164 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5eaf9af8] | 165 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[d309b21] | 166 |
|
---|
| 167 | </sect2>
|
---|
| 168 |
|
---|
[d5404360] | 169 | <sect2 role="content">
|
---|
| 170 | <title>Contents</title>
|
---|
| 171 |
|
---|
| 172 | <segmentedlist>
|
---|
| 173 | <segtitle>Installed Programs</segtitle>
|
---|
| 174 | <segtitle>Installed Libraries</segtitle>
|
---|
[32dfb13c] | 175 | <segtitle>Installed Directories</segtitle>
|
---|
[d5404360] | 176 |
|
---|
| 177 | <seglistitem>
|
---|
[3ee626e] | 178 | <seg>
|
---|
| 179 | certtool, crywrap, gnutls-cli, gnutls-cli-debug, gnutls-serv,
|
---|
| 180 | ocsptool, p11tool, psktool, and srptool
|
---|
| 181 | </seg>
|
---|
| 182 | <seg>
|
---|
[5eaf9af8] | 183 | libgnutls.so, libgnutls-openssl.so, and libgnutlsxx.so
|
---|
[3ee626e] | 184 | </seg>
|
---|
| 185 | <seg>
|
---|
[73d97caf] | 186 | /usr/include/gnutls and
|
---|
[3ee626e] | 187 | /usr/share/gtk-doc/html/gnutls
|
---|
| 188 | </seg>
|
---|
[d5404360] | 189 | </seglistitem>
|
---|
| 190 | </segmentedlist>
|
---|
| 191 |
|
---|
| 192 | <variablelist>
|
---|
| 193 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 194 | <?dbfo list-presentation="list"?>
|
---|
| 195 | <?dbhtml list-presentation="table"?>
|
---|
| 196 |
|
---|
| 197 | <varlistentry id="certtool">
|
---|
| 198 | <term><command>certtool</command></term>
|
---|
| 199 | <listitem>
|
---|
[3ee626e] | 200 | <para>
|
---|
| 201 | is used to generate X.509 certificates, certificate requests,
|
---|
| 202 | and private keys.
|
---|
| 203 | </para>
|
---|
[d5404360] | 204 | <indexterm zone="gnutls certtool">
|
---|
| 205 | <primary sortas="b-certtool">certtool</primary>
|
---|
| 206 | </indexterm>
|
---|
| 207 | </listitem>
|
---|
| 208 | </varlistentry>
|
---|
| 209 |
|
---|
[0c6c35d] | 210 | <varlistentry id="crywrap">
|
---|
| 211 | <term><command>crywrap</command></term>
|
---|
| 212 | <listitem>
|
---|
[3ee626e] | 213 | <para>
|
---|
| 214 | is a simple wrapper that waits for TLS/SSL connections, and
|
---|
| 215 | proxies them to an unencrypted location.
|
---|
| 216 | </para>
|
---|
[0c6c35d] | 217 | <indexterm zone="gnutls crywrap">
|
---|
| 218 | <primary sortas="b-crywrap">crywrap</primary>
|
---|
| 219 | </indexterm>
|
---|
| 220 | </listitem>
|
---|
| 221 | </varlistentry>
|
---|
| 222 |
|
---|
[d5404360] | 223 | <varlistentry id="gnutls-cli">
|
---|
| 224 | <term><command>gnutls-cli</command></term>
|
---|
| 225 | <listitem>
|
---|
[3ee626e] | 226 | <para>
|
---|
| 227 | is a simple client program to set up a TLS connection to some
|
---|
| 228 | other computer.
|
---|
| 229 | </para>
|
---|
[d5404360] | 230 | <indexterm zone="gnutls gnutls-cli">
|
---|
| 231 | <primary sortas="b-gnutls-cli">gnutls-cli</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
| 236 | <varlistentry id="gnutls-cli-debug">
|
---|
| 237 | <term><command>gnutls-cli-debug</command></term>
|
---|
| 238 | <listitem>
|
---|
[3ee626e] | 239 | <para>
|
---|
| 240 | is a simple client program to set up a TLS connection to some
|
---|
| 241 | other computer and produces very verbose progress results.
|
---|
| 242 | </para>
|
---|
[d5404360] | 243 | <indexterm zone="gnutls gnutls-cli-debug">
|
---|
| 244 | <primary sortas="b-gnutls-cli-debug">gnutls-cli-debug</primary>
|
---|
| 245 | </indexterm>
|
---|
| 246 | </listitem>
|
---|
| 247 | </varlistentry>
|
---|
| 248 |
|
---|
| 249 | <varlistentry id="gnutls-serv">
|
---|
| 250 | <term><command>gnutls-serv</command></term>
|
---|
| 251 | <listitem>
|
---|
[3ee626e] | 252 | <para>
|
---|
| 253 | is a simple server program that listens to incoming TLS
|
---|
| 254 | connections.
|
---|
| 255 | </para>
|
---|
[d5404360] | 256 | <indexterm zone="gnutls gnutls-serv">
|
---|
| 257 | <primary sortas="b-gnutls-serv">gnutls-serv</primary>
|
---|
| 258 | </indexterm>
|
---|
| 259 | </listitem>
|
---|
| 260 | </varlistentry>
|
---|
| 261 |
|
---|
[546b042] | 262 | <varlistentry id="ocsptool">
|
---|
| 263 | <term><command>ocsptool</command></term>
|
---|
| 264 | <listitem>
|
---|
[3ee626e] | 265 | <para>
|
---|
| 266 | is a program that can parse and print information about OCSP
|
---|
| 267 | requests/responses, generate requests and verify responses.
|
---|
| 268 | </para>
|
---|
[546b042] | 269 | <indexterm zone="gnutls ocsptool">
|
---|
| 270 | <primary sortas="b-ocsptool">ocsptool</primary>
|
---|
| 271 | </indexterm>
|
---|
| 272 | </listitem>
|
---|
| 273 | </varlistentry>
|
---|
| 274 |
|
---|
| 275 | <varlistentry id="p11tool">
|
---|
| 276 | <term><command>p11tool</command></term>
|
---|
| 277 | <listitem>
|
---|
[3ee626e] | 278 | <para>
|
---|
| 279 | is a program that allows handling data from PKCS #11 smart cards
|
---|
| 280 | and security modules.
|
---|
| 281 | </para>
|
---|
[546b042] | 282 | <indexterm zone="gnutls p11tool">
|
---|
| 283 | <primary sortas="b-p11tool">p11tool</primary>
|
---|
| 284 | </indexterm>
|
---|
| 285 | </listitem>
|
---|
| 286 | </varlistentry>
|
---|
| 287 |
|
---|
[d5404360] | 288 | <varlistentry id="psktool">
|
---|
| 289 | <term><command>psktool</command></term>
|
---|
| 290 | <listitem>
|
---|
[3ee626e] | 291 | <para>
|
---|
| 292 | is a simple program that generates random keys for use with TLS-PSK.
|
---|
| 293 | </para>
|
---|
[d5404360] | 294 | <indexterm zone="gnutls psktool">
|
---|
| 295 | <primary sortas="b-psktool">psktool</primary>
|
---|
| 296 | </indexterm>
|
---|
| 297 | </listitem>
|
---|
| 298 | </varlistentry>
|
---|
| 299 |
|
---|
| 300 | <varlistentry id="srptool">
|
---|
| 301 | <term><command>srptool</command></term>
|
---|
| 302 | <listitem>
|
---|
[3ee626e] | 303 | <para>
|
---|
| 304 | is a simple program that emulates the programs in the Stanford
|
---|
| 305 | SRP (Secure Remote Password) libraries using GnuTLS.
|
---|
| 306 | </para>
|
---|
[d5404360] | 307 | <indexterm zone="gnutls srptool">
|
---|
| 308 | <primary sortas="b-srptool">srptool</primary>
|
---|
| 309 | </indexterm>
|
---|
| 310 | </listitem>
|
---|
| 311 | </varlistentry>
|
---|
| 312 |
|
---|
| 313 | <varlistentry id="libgnutls">
|
---|
[73d97caf] | 314 | <term><filename class="libraryfile">libgnutls.so</filename></term>
|
---|
[d5404360] | 315 | <listitem>
|
---|
[3ee626e] | 316 | <para>
|
---|
| 317 | contains the core API functions and X.509 certificate API functions.
|
---|
| 318 | </para>
|
---|
[d5404360] | 319 | <indexterm zone="gnutls libgnutls">
|
---|
[5eaf9af8] | 320 | <primary sortas="c-libgnutls">libgnutls.so</primary>
|
---|
[d5404360] | 321 | </indexterm>
|
---|
| 322 | </listitem>
|
---|
| 323 | </varlistentry>
|
---|
| 324 |
|
---|
| 325 | </variablelist>
|
---|
| 326 |
|
---|
| 327 | </sect2>
|
---|
| 328 |
|
---|
| 329 | </sect1>
|
---|