source: postlfs/security/gnutls.xml

trunk
Last change on this file was 84493d67, checked in by Bruce Dubbs <bdubbs@…>, 12 days ago

Update to gnutls-3.8.5.

  • Property mode set to 100644
File size: 12.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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
7 <!ENTITY gnutls-download-http "&gnupg-http;/gnutls/v3.8/gnutls-&gnutls-version;.tar.xz">
8 <!ENTITY gnutls-download-ftp " ">
9 <!ENTITY gnutls-md5sum "74b468201ef7e9035f78d44c3f0906c4">
10 <!ENTITY gnutls-size "6.2 MB">
11 <!ENTITY gnutls-buildsize "147 MB (add 114 MB for tests)">
12 <!ENTITY gnutls-time "0.6 SBU (add 1.4 SBU for tests; both using parallelism=8)">
13]>
14
15<sect1 id="gnutls" xreflabel="GnuTLS-&gnutls-version;">
16 <?dbhtml filename="gnutls.html"?>
17
18
19 <title>GnuTLS-&gnutls-version;</title>
20
21 <indexterm zone="gnutls">
22 <primary sortas="a-GnuTLS">GnuTLS</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to GnuTLS</title>
27
28 <para>
29 The <application>GnuTLS</application> package contains libraries and
30 userspace tools which provide a secure layer over a reliable transport
31 layer. Currently the <application>GnuTLS</application> library implements
32 the proposed standards by the IETF's TLS working group. Quoting from the
33 <ulink url="https://datatracker.ietf.org/doc/rfc8446/">
34 TLS 1.3 protocol specification
35 </ulink>:
36 </para>
37
38 <para>
39 <quote>
40 TLS allows client/server applications to communicate over the Internet
41 in a way that is designed to prevent eavesdropping, tampering, and
42 message forgery.
43 </quote>
44 </para>
45
46 <para>
47 <application>GnuTLS</application> provides support for TLS 1.3, TLS 1.2,
48 TLS 1.1, TLS 1.0, and (optionally) SSL 3.0 protocols. It also supports
49 TLS extensions, including server name and max record size. Additionally,
50 the library supports authentication using the SRP protocol, X.509
51 certificates, and OpenPGP keys, along with support for the TLS
52 Pre-Shared-Keys (PSK) extension, the Inner Application (TLS/IA)
53 extension, and X.509 and OpenPGP certificate handling.
54 </para>
55
56 &lfs121_checked;
57
58 <bridgehead renderas="sect3">Package Information</bridgehead>
59 <itemizedlist spacing="compact">
60 <listitem>
61 <para>
62 Download (HTTP): <ulink url="&gnutls-download-http;"/>
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Download (FTP): <ulink url="&gnutls-download-ftp;"/>
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Download MD5 sum: &gnutls-md5sum;
73 </para>
74 </listitem>
75 <listitem>
76 <para>
77 Download size: &gnutls-size;
78 </para>
79 </listitem>
80 <listitem>
81 <para>
82 Estimated disk space required: &gnutls-buildsize;
83 </para>
84 </listitem>
85 <listitem>
86 <para>
87 Estimated build time: &gnutls-time;
88 </para>
89 </listitem>
90 </itemizedlist>
91
92 <bridgehead renderas="sect3">GnuTLS Dependencies</bridgehead>
93
94 <bridgehead renderas="sect4">Required</bridgehead>
95 <para role="required">
96 <xref linkend="nettle"/>
97 </para>
98
99 <bridgehead renderas="sect4">Recommended</bridgehead>
100 <para role="recommended">
101 <xref linkend="make-ca"/>,
102 <xref linkend="libunistring"/>,
103 <xref linkend="libtasn1"/>, and
104 <xref linkend="p11-kit"/>
105 </para>
106
107 <bridgehead renderas="sect4">Optional</bridgehead>
108 <para role="optional">
109 <xref linkend="brotli"/>,
110 <xref linkend="doxygen"/>,
111 <xref linkend="gtk-doc"/>,
112 <xref linkend="libidn"/> or
113 <xref linkend="libidn2"/>,
114 <xref linkend="libseccomp"/>,
115 <xref linkend="net-tools"/> (used during the test suite),
116 <xref linkend="texlive"/> or <xref linkend="tl-installer"/>,
117 <xref linkend="unbound"/> (to build the DANE library),
118 <xref linkend="valgrind"/> (used during the test suite),
119 <ulink url="&gnu-http;/autogen/">autogen</ulink>,
120 <ulink url="https://cmocka.org/">cmocka</ulink> and
121 <ulink url="https://ftp.debian.org/debian/pool/main/d/datefudge/">datefudge</ulink> (used during the test suite if the DANE library is built), and
122 <ulink url="&sourceforge-dl;/trousers/">Trousers</ulink> (Trusted Platform Module support)
123 </para>
124
125 <note><para>
126 <!-- Note that if you do not install <xref linkend="libtasn1"/>, an older
127 3.8.0 includes minitasn1 4.19 which is currnet at the moment. ken -->
128 Note that if you do not install <xref linkend="libtasn1"/>, a
129 version shipped in the <application>GnuTLS</application> tarball will be
130 used instead.
131 </para></note>
132
133 </sect2>
134
135 <sect2 role="installation">
136 <title>Installation of GnuTLS</title>
137
138 <para>
139 Install <application>GnuTLS</application> by running the
140 following commands:
141 </para>
142
143<screen><userinput>./configure --prefix=/usr \
144 --docdir=/usr/share/doc/gnutls-&gnutls-version; \
145 --with-default-trust-store-pkcs11="pkcs11:" &amp;&amp;
146make</userinput></screen>
147<!-- - -disable-rpath \
148 Old gnutls versions (around 3.5) had a problem with rpath, because
149 libraries in the build tree were linked with rpath pointing to the
150 system libraries, so that tests failed. Present versions don't have
151 this problem, and do exactly what is expected without using the
152 disable-rpath option: rpath pointing to the build tree when libraries
153 are first linked, but rpath removed when libraries are relinked at
154 install time. -->
155
156 <para>
157 To test the results, issue: <command>make check</command>.
158 </para>
159
160 <para>
161 Now, as the <systemitem class="username">root</systemitem>
162 user:
163 </para>
164
165<screen role="root"><userinput>make install</userinput></screen>
166
167 </sect2>
168
169 <sect2 role="commands">
170 <title>Command Explanations</title>
171
172 <para>
173 <parameter>--with-default-trust-store-pkcs11="pkcs11:"</parameter>: This
174 switch tells gnutls to use the PKCS #11 trust store as the default trust.
175 Omit this switch if <xref linkend="p11-kit"/> is not installed.
176 </para>
177 <!-- see above
178 <para>
179 <parameter>- -disable-rpath</parameter>: This switch prevents building
180 GnuTLS utilities and tests with hardcoded runtime library search path.
181 Hardcoded rpath is unneeded for BLFS, and it causes test failures if
182 an old version of GnuTLS is installed.
183 </para>
184 -->
185 <para>
186 <option>--with-default-trust-store-file=/etc/pki/tls/certs/ca-bundle.crt</option>:
187 This switch tells <command>configure</command> where to find the
188 legacy CA certificate bundle and to use it instead of PKCS #11 module
189 by default. Use this if <xref linkend="p11-kit"/> is not installed.
190 </para>
191
192 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
193 href="../../xincludes/gtk-doc-rebuild.xml"/>
194
195 <para>
196 <option>--enable-openssl-compatibility</option>:
197 Use this switch if you wish to build the OpenSSL compatibility library.
198 </para>
199
200 <para>
201 <option>--without-p11-kit</option>: use this switch if you have not
202 installed <application>p11-kit</application>.
203 </para>
204
205 <para>
206 <option>--with-included-unistring</option>: uses the bundled version of
207 libunistring, instead of the system one. Use this switch if you have not
208 installed <xref linkend="libunistring"/>.
209 </para>
210
211 </sect2>
212
213 <sect2 role="content">
214 <title>Contents</title>
215
216 <segmentedlist>
217 <segtitle>Installed Programs</segtitle>
218 <segtitle>Installed Libraries</segtitle>
219 <segtitle>Installed Directories</segtitle>
220
221 <seglistitem>
222 <seg>
223 certtool, danetool, gnutls-cli, gnutls-cli-debug,
224 gnutls-serv, ocsptool, p11tool, psktool, and srptool
225 </seg>
226 <seg>
227 libgnutls.so, libgnutls-dane.so, libgnutlsxx.so,
228 libgnutls-openssl.so (optional), and
229 /usr/lib/guile/3.0/extensions/guile-gnutls-v-2.so
230 </seg>
231 <seg>
232 /usr/include/gnutls,
233 /usr/lib/guile/3.0/site-ccache/gnutls,
234 /usr/share/guile/site/3.0/gnutls, and
235 /usr/share/doc/gnutls-&gnutls-version;
236 </seg>
237 </seglistitem>
238 </segmentedlist>
239
240 <variablelist>
241 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
242 <?dbfo list-presentation="list"?>
243 <?dbhtml list-presentation="table"?>
244
245 <varlistentry id="certtool">
246 <term><command>certtool</command></term>
247 <listitem>
248 <para>
249 is used to generate X.509 certificates, certificate requests,
250 and private keys
251 </para>
252 <indexterm zone="gnutls certtool">
253 <primary sortas="b-certtool">certtool</primary>
254 </indexterm>
255 </listitem>
256 </varlistentry>
257
258 <varlistentry id="danetool">
259 <term><command>danetool</command></term>
260 <listitem>
261 <para>
262 is a tool used to generate and check DNS resource records
263 for the DANE protocol
264 </para>
265 <indexterm zone="gnutls danetool">
266 <primary sortas="b-danetool">danetool</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="gnutls-cli">
272 <term><command>gnutls-cli</command></term>
273 <listitem>
274 <para>
275 is a simple client program to set up a TLS connection to some
276 other computer
277 </para>
278 <indexterm zone="gnutls gnutls-cli">
279 <primary sortas="b-gnutls-cli">gnutls-cli</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 <varlistentry id="gnutls-cli-debug">
285 <term><command>gnutls-cli-debug</command></term>
286 <listitem>
287 <para>
288 is a simple client program to set up a TLS connection to some
289 other computer and produces very verbose progress results
290 </para>
291 <indexterm zone="gnutls gnutls-cli-debug">
292 <primary sortas="b-gnutls-cli-debug">gnutls-cli-debug</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 <varlistentry id="gnutls-serv">
298 <term><command>gnutls-serv</command></term>
299 <listitem>
300 <para>
301 is a simple server program that listens to incoming TLS
302 connections
303 </para>
304 <indexterm zone="gnutls gnutls-serv">
305 <primary sortas="b-gnutls-serv">gnutls-serv</primary>
306 </indexterm>
307 </listitem>
308 </varlistentry>
309
310 <varlistentry id="ocsptool">
311 <term><command>ocsptool</command></term>
312 <listitem>
313 <para>
314 is a program that can parse and print information about OCSP
315 requests/responses, generate requests and verify responses
316 </para>
317 <indexterm zone="gnutls ocsptool">
318 <primary sortas="b-ocsptool">ocsptool</primary>
319 </indexterm>
320 </listitem>
321 </varlistentry>
322
323 <varlistentry id="p11tool">
324 <term><command>p11tool</command></term>
325 <listitem>
326 <para>
327 is a program that allows handling data from PKCS #11 smart cards
328 and security modules
329 </para>
330 <indexterm zone="gnutls p11tool">
331 <primary sortas="b-p11tool">p11tool</primary>
332 </indexterm>
333 </listitem>
334 </varlistentry>
335
336 <varlistentry id="psktool">
337 <term><command>psktool</command></term>
338 <listitem>
339 <para>
340 is a simple program that generates random keys for use with TLS-PSK
341 </para>
342 <indexterm zone="gnutls psktool">
343 <primary sortas="b-psktool">psktool</primary>
344 </indexterm>
345 </listitem>
346 </varlistentry>
347
348 <varlistentry id="srptool">
349 <term><command>srptool</command></term>
350 <listitem>
351 <para>
352 is a simple program that emulates the programs in the Stanford
353 SRP (Secure Remote Password) libraries using GnuTLS
354 </para>
355 <indexterm zone="gnutls srptool">
356 <primary sortas="b-srptool">srptool</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
361 <varlistentry id="libgnutls">
362 <term><filename class="libraryfile">libgnutls.so</filename></term>
363 <listitem>
364 <para>
365 contains the core API functions and X.509 certificate API functions
366 </para>
367 <indexterm zone="gnutls libgnutls">
368 <primary sortas="c-libgnutls">libgnutls.so</primary>
369 </indexterm>
370 </listitem>
371 </varlistentry>
372
373 </variablelist>
374
375 </sect2>
376
377</sect1>
Note: See TracBrowser for help on using the repository browser.