2007-08-17 06:34:29 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2013-01-06 04:01:59 +08:00
|
|
|
<!ENTITY gnutls-download-http " ">
|
2014-04-12 23:39:01 +08:00
|
|
|
<!ENTITY gnutls-download-ftp "ftp://ftp.gnutls.org/gcrypt/gnutls/v3.3/gnutls-&gnutls-version;.tar.xz">
|
2014-06-27 22:16:20 +08:00
|
|
|
<!ENTITY gnutls-md5sum "1f396dcf3c14ea67de7243821006d1a2">
|
|
|
|
<!ENTITY gnutls-size "5.8 MB">
|
|
|
|
<!ENTITY gnutls-buildsize "104 MB (additional 8 MB for the tests)">
|
|
|
|
<!ENTITY gnutls-time "0.9 SBU (additional 1.9 SBU for the tests)">
|
2007-08-17 06:34:29 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="gnutls" xreflabel="GnuTLS-&gnutls-version;">
|
|
|
|
<?dbhtml filename="gnutls.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>GnuTLS-&gnutls-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="gnutls">
|
|
|
|
<primary sortas="a-GnuTLS">GnuTLS</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to GnuTLS</title>
|
|
|
|
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
The <application>GnuTLS</application> package contains libraries and
|
|
|
|
userspace tools which provide a secure layer over a reliable transport
|
|
|
|
layer. Currently the <application>GnuTLS</application> library implements
|
|
|
|
the proposed standards by the IETF's TLS working group. Quoting from the
|
|
|
|
TLS protocol specification:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<quote>The TLS protocol provides communications privacy over the
|
|
|
|
Internet. The protocol allows client/server applications to communicate in
|
|
|
|
a way that is designed to prevent eavesdropping, tampering, or message
|
|
|
|
forgery.</quote>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<application>GnuTLS</application> provides support for TLS 1.1, TLS
|
|
|
|
1.0 and SSL 3.0 protocols, TLS extensions, including server name and max
|
|
|
|
record size. Additionally, the library supports authentication using the
|
|
|
|
SRP protocol, X.509 certificates and OpenPGP keys, along with support for
|
|
|
|
the TLS Pre-Shared-Keys (PSK) extension, the Inner Application (TLS/IA)
|
|
|
|
extension and X.509 and OpenPGP certificate handling.
|
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
|
2014-02-20 22:45:35 +08:00
|
|
|
&lfs75_checked;
|
2009-10-17 15:50:57 +08:00
|
|
|
|
2007-08-17 06:34:29 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
2012-03-06 08:45:51 +08:00
|
|
|
<listitem>
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&gnutls-download-http;"/>
|
|
|
|
</para>
|
2012-03-06 08:45:51 +08:00
|
|
|
</listitem>
|
2007-08-17 06:34:29 +08:00
|
|
|
<listitem>
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&gnutls-download-ftp;"/>
|
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &gnutls-md5sum;
|
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
Download size: &gnutls-size;
|
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &gnutls-buildsize;
|
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &gnutls-time;
|
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">GnuTLS Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2012-05-09 03:06:25 +08:00
|
|
|
<para role="required">
|
|
|
|
<xref linkend="nettle"/>
|
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
|
2012-07-22 00:25:13 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
2013-03-01 20:31:35 +08:00
|
|
|
<xref linkend="cacerts"/> and
|
2012-07-22 00:25:13 +08:00
|
|
|
<xref linkend="libtasn1"/>
|
|
|
|
</para>
|
|
|
|
|
2007-08-17 06:34:29 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2011-11-11 06:12:32 +08:00
|
|
|
<para role="optional">
|
2014-02-02 05:46:04 +08:00
|
|
|
<ulink url="http://ftp.gnu.org/gnu/autogen/">autogen</ulink>,
|
2011-11-11 06:12:32 +08:00
|
|
|
<xref linkend="gtk-doc"/>,
|
2014-04-21 23:36:31 +08:00
|
|
|
<xref linkend="guile"/>,
|
2012-03-06 08:45:51 +08:00
|
|
|
<xref linkend="libidn"/>,
|
2013-01-11 02:03:28 +08:00
|
|
|
<xref linkend="p11-kit"/>,
|
2013-12-21 20:49:19 +08:00
|
|
|
<ulink url="http://sourceforge.net/projects/trousers/files/trousers/">Trousers</ulink> (Trusted Platform Module support),
|
2013-07-22 07:16:47 +08:00
|
|
|
<xref linkend="unbound"/> (to build the DANE library), and
|
2014-03-16 07:51:18 +08:00
|
|
|
<xref linkend="valgrind"/> (used during the test suite)
|
2012-05-09 03:06:25 +08:00
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
|
2013-07-22 07:16:47 +08:00
|
|
|
<note><para>
|
2012-05-09 03:06:25 +08:00
|
|
|
Note that if you do not install <xref linkend="libtasn1"/>, an older
|
|
|
|
version shipped in the <application>GnuTLS</application> tarball will be
|
|
|
|
used instead.
|
2013-07-22 07:16:47 +08:00
|
|
|
</para></note>
|
2010-03-24 21:43:05 +08:00
|
|
|
|
2007-08-17 06:34:29 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
2012-07-22 00:25:13 +08:00
|
|
|
<ulink url="&blfs-wiki;/gnutls"/>
|
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of GnuTLS</title>
|
|
|
|
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
Install <application>GnuTLS</application> by running the
|
|
|
|
following commands:
|
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
|
2014-05-09 20:09:03 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
2013-03-01 20:31:35 +08:00
|
|
|
--with-default-trust-store-file=/etc/ssl/ca-bundle.crt &&
|
2007-08-17 06:34:29 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
2014-04-21 23:36:31 +08:00
|
|
|
To test the results, issue: <command>make check</command>.
|
2012-05-09 03:06:25 +08:00
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem>
|
|
|
|
user:
|
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
|
2012-10-07 17:59:17 +08:00
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
2007-08-17 06:34:29 +08:00
|
|
|
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
If you did not pass the <option>--enable-gtk-doc</option> parameter
|
2013-07-14 23:24:46 +08:00
|
|
|
to the <command>configure</command> script, you can install the API documentation
|
2013-02-12 02:51:17 +08:00
|
|
|
to the <filename class="directory">/usr/share/gtk-doc/html/gnutls</filename>
|
|
|
|
directory using the following command as the
|
2012-05-09 03:06:25 +08:00
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2010-03-24 01:49:13 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>make -C doc/reference install-data-local</userinput></screen>
|
|
|
|
|
2007-08-17 06:34:29 +08:00
|
|
|
</sect2>
|
|
|
|
|
2010-01-06 09:42:52 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2013-03-01 20:31:35 +08:00
|
|
|
<para>
|
|
|
|
<parameter>--with-default-trust-store-file=/etc/ssl/ca-bundle.crt</parameter>:
|
|
|
|
This switch tells <command>configure</command> where to find the
|
|
|
|
CA Certificates.
|
|
|
|
</para>
|
|
|
|
|
2010-04-22 02:48:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2012-07-22 00:25:13 +08:00
|
|
|
href="../../xincludes/gtk-doc-rebuild.xml"/>
|
2010-01-06 09:42:52 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2007-08-17 06:34:29 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
2011-01-04 05:38:16 +08:00
|
|
|
<segtitle>Installed Directories</segtitle>
|
2007-08-17 06:34:29 +08:00
|
|
|
|
|
|
|
<seglistitem>
|
2012-05-09 03:06:25 +08:00
|
|
|
<seg>
|
2013-07-14 23:24:46 +08:00
|
|
|
certtool, crywrap, danetool, gnutls-cli, gnutls-cli-debug,
|
2014-04-21 23:36:31 +08:00
|
|
|
gnutls-serv, ocsptool, p11tool, psktool, and srptool
|
2012-05-09 03:06:25 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2014-04-21 23:36:31 +08:00
|
|
|
libgnutls.so, libgnutls-dane.so,
|
|
|
|
libgnutls-openssl.so, libgnutlsxx.so, and
|
|
|
|
/usr/lib/guile/2.0/guile-gnutls-v-2.so
|
2012-05-09 03:06:25 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2014-04-21 23:36:31 +08:00
|
|
|
/usr/include/gnutls,
|
|
|
|
/usr/share/gtk-doc/html/gnutls, and
|
2014-06-01 03:29:49 +08:00
|
|
|
/usr/share/guile/site/gnutls
|
2012-05-09 03:06:25 +08:00
|
|
|
</seg>
|
2007-08-17 06:34:29 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="certtool">
|
|
|
|
<term><command>certtool</command></term>
|
|
|
|
<listitem>
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
is used to generate X.509 certificates, certificate requests,
|
|
|
|
and private keys.
|
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
<indexterm zone="gnutls certtool">
|
|
|
|
<primary sortas="b-certtool">certtool</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-07-14 23:33:46 +08:00
|
|
|
<varlistentry id="crywrap">
|
|
|
|
<term><command>crywrap</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2014-02-02 05:46:04 +08:00
|
|
|
is a simple wrapper that waits for TLS/SSL connections,
|
2013-11-24 21:25:41 +08:00
|
|
|
and proxies them to an unencrypted location. Only installed if
|
2013-10-26 22:10:15 +08:00
|
|
|
<xref linkend="libidn"/> is present.
|
2013-07-14 23:33:46 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="gnutls crywrap">
|
|
|
|
<primary sortas="b-crywrap">crywrap</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-03-01 20:31:35 +08:00
|
|
|
<varlistentry id="danetool">
|
|
|
|
<term><command>danetool</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a tool used to generate and check DNS resource records
|
|
|
|
for the DANE protocol.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="gnutls danetool">
|
|
|
|
<primary sortas="b-danetool">danetool</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2007-08-17 06:34:29 +08:00
|
|
|
<varlistentry id="gnutls-cli">
|
|
|
|
<term><command>gnutls-cli</command></term>
|
|
|
|
<listitem>
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
is a simple client program to set up a TLS connection to some
|
|
|
|
other computer.
|
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
<indexterm zone="gnutls gnutls-cli">
|
|
|
|
<primary sortas="b-gnutls-cli">gnutls-cli</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="gnutls-cli-debug">
|
|
|
|
<term><command>gnutls-cli-debug</command></term>
|
|
|
|
<listitem>
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
is a simple client program to set up a TLS connection to some
|
|
|
|
other computer and produces very verbose progress results.
|
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
<indexterm zone="gnutls gnutls-cli-debug">
|
|
|
|
<primary sortas="b-gnutls-cli-debug">gnutls-cli-debug</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="gnutls-serv">
|
|
|
|
<term><command>gnutls-serv</command></term>
|
|
|
|
<listitem>
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
is a simple server program that listens to incoming TLS
|
|
|
|
connections.
|
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
<indexterm zone="gnutls gnutls-serv">
|
|
|
|
<primary sortas="b-gnutls-serv">gnutls-serv</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-03-06 08:45:51 +08:00
|
|
|
<varlistentry id="ocsptool">
|
|
|
|
<term><command>ocsptool</command></term>
|
|
|
|
<listitem>
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
2013-02-12 02:51:17 +08:00
|
|
|
is a program that can parse and print information about OCSP
|
2012-05-09 03:06:25 +08:00
|
|
|
requests/responses, generate requests and verify responses.
|
|
|
|
</para>
|
2012-03-06 08:45:51 +08:00
|
|
|
<indexterm zone="gnutls ocsptool">
|
|
|
|
<primary sortas="b-ocsptool">ocsptool</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="p11tool">
|
|
|
|
<term><command>p11tool</command></term>
|
|
|
|
<listitem>
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
is a program that allows handling data from PKCS #11 smart cards
|
|
|
|
and security modules.
|
|
|
|
</para>
|
2012-03-06 08:45:51 +08:00
|
|
|
<indexterm zone="gnutls p11tool">
|
|
|
|
<primary sortas="b-p11tool">p11tool</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2007-08-17 06:34:29 +08:00
|
|
|
<varlistentry id="psktool">
|
|
|
|
<term><command>psktool</command></term>
|
|
|
|
<listitem>
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
is a simple program that generates random keys for use with TLS-PSK.
|
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
<indexterm zone="gnutls psktool">
|
|
|
|
<primary sortas="b-psktool">psktool</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="srptool">
|
|
|
|
<term><command>srptool</command></term>
|
|
|
|
<listitem>
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
is a simple program that emulates the programs in the Stanford
|
|
|
|
SRP (Secure Remote Password) libraries using GnuTLS.
|
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
<indexterm zone="gnutls srptool">
|
|
|
|
<primary sortas="b-srptool">srptool</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libgnutls">
|
2012-10-07 17:59:17 +08:00
|
|
|
<term><filename class="libraryfile">libgnutls.so</filename></term>
|
2007-08-17 06:34:29 +08:00
|
|
|
<listitem>
|
2012-05-09 03:06:25 +08:00
|
|
|
<para>
|
|
|
|
contains the core API functions and X.509 certificate API functions.
|
|
|
|
</para>
|
2007-08-17 06:34:29 +08:00
|
|
|
<indexterm zone="gnutls libgnutls">
|
2012-07-22 00:25:13 +08:00
|
|
|
<primary sortas="c-libgnutls">libgnutls.so</primary>
|
2007-08-17 06:34:29 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|