source: postlfs/security/openssl.xml@ 4c39aff

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 4c39aff was 4c39aff, checked in by Krejzi <krejzi@…>, 11 years ago

GnuTLS 3.1.9.1, NSS 3.14.3, NSPR 4.9.5, P11-Kit 0.15.2, OpenSSL 1.0.1e.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11032 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 9.4 KB
Line 
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
7 <!ENTITY openssl-download-http
8 "http://www.openssl.org/source/openssl-&openssl-version;.tar.gz">
9 <!ENTITY openssl-download-ftp
10 "ftp://ftp.openssl.org/source/openssl-&openssl-version;.tar.gz">
11 <!ENTITY openssl-md5sum "66bf6f10f060d561929de96f9dfe5b8c">
12 <!ENTITY openssl-size "4.3 MB">
13 <!ENTITY openssl-buildsize "55 MB">
14 <!ENTITY openssl-time "1.5 SBU">
15]>
16
17<sect1 id="openssl" xreflabel="OpenSSL-&openssl-version;">
18 <?dbhtml filename="openssl.html"?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
24
25 <title>OpenSSL-&openssl-version;</title>
26
27 <indexterm zone="openssl">
28 <primary sortas="a-OpenSSL">OpenSSL</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to OpenSSL</title>
33
34 <para>
35 The <application>OpenSSL</application> package contains management tools
36 and libraries relating to cryptography. These are useful for providing
37 cryptography functions to other packages, such as
38 <application>OpenSSH</application>, email applications and web browsers
39 (for accessing HTTPS sites).
40 </para>
41
42 &lfs72_checked;
43
44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
47 <para>
48 Download (HTTP): <ulink url="&openssl-download-http;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download (FTP): <ulink url="&openssl-download-ftp;"/>
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download MD5 sum: &openssl-md5sum;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Download size: &openssl-size;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated disk space required: &openssl-buildsize;
69 </para>
70 </listitem>
71 <listitem>
72 <para>
73 Estimated build time: &openssl-time;
74 </para>
75 </listitem>
76 </itemizedlist>
77
78 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
79 <itemizedlist spacing="compact">
80 <listitem>
81 <para>
82 Required patch: <ulink
83 url="&patch-root;/openssl-&openssl-version;-fix_manpages-1.patch"/>
84 </para>
85 </listitem>
86 </itemizedlist>
87
88 <bridgehead renderas="sect3">OpenSSL Dependencies</bridgehead>
89
90 <bridgehead renderas="sect4">Optional</bridgehead>
91 <para role="optional">
92 <xref linkend="bc"/> (required for full coverage by the test suite during
93 the build) and
94 <xref linkend="mitkrb"/>
95 </para>
96
97 <para condition="html" role="usernotes">
98 User Notes: <ulink url='&blfs-wiki;/OpenSSL'/>
99 </para>
100 </sect2>
101
102 <sect2 role="installation">
103 <title>Installation of OpenSSL</title>
104
105 <para>
106 Install <application>OpenSSL</application> with the following commands:
107 </para>
108
109<screen><userinput>patch -Np1 -i ../openssl-&openssl-version;-fix_manpages-1.patch &amp;&amp;
110./config --prefix=/usr --openssldir=/etc/ssl shared zlib-dynamic &amp;&amp;
111make</userinput></screen>
112
113 <para>
114 To test the results, issue: <command>make test</command>.
115 </para>
116
117 <para>
118 If you want to disable installing the static libraries, use this sed:
119 </para>
120
121<screen><userinput>sed -i 's# libcrypto.a##;s# libssl.a##' Makefile</userinput></screen>
122
123 <para>
124 Now, as the <systemitem class="username">root</systemitem> user:
125 </para>
126
127<screen role="root"><userinput>make MANDIR=/usr/share/man install &amp;&amp;
128install -dv -m755 /usr/share/doc/openssl-&openssl-version; &amp;&amp;
129cp -vfr doc/* /usr/share/doc/openssl-&openssl-version;</userinput></screen>
130
131 </sect2>
132
133 <sect2 role="commands">
134 <title>Command Explanations</title>
135
136 <para>
137 <parameter>shared</parameter>: This parameter forces the creation of
138 shared libraries along with the static libraries.
139 </para>
140
141 <para>
142 <parameter>zlib-dynamic</parameter>: This parameter adds
143 compression/decompression functionality using the
144 <filename class="libraryfile">libz</filename> library.
145 </para>
146
147 <para>
148 <option>no-rc5 no-idea</option>: When added to the
149 <command>./config</command> command, this will eliminate the building
150 of those encryption methods. Patent licenses may be needed for you to
151 utilize either of those methods in your projects.
152 </para>
153
154 <para>
155 <command>make MANDIR=/usr/share/man install</command>: This command
156 installs <application>OpenSSL</application> with the man pages in
157 <filename class='directory'>/usr/share/man</filename> instead of
158 <filename class='directory'>/etc/ssl/man</filename>.
159 </para>
160
161 </sect2>
162
163 <sect2 role="configuration">
164 <title>Configuring OpenSSL</title>
165
166 <sect3 id="openssl-config">
167 <title>Config Files</title>
168
169 <para>
170 <filename>/etc/ssl/openssl.cnf</filename>
171 </para>
172
173 <indexterm zone="openssl openssl-config">
174 <primary sortas="e-etc-ssl-openssl.cnf">/etc/ssl/openssl.cnf</primary>
175 </indexterm>
176
177 </sect3>
178
179 <sect3>
180 <title>Configuration Information</title>
181
182 <para>
183 Most users will want to install Certificate Authority Certificates
184 for validation of downloaded certificates. For example, these
185 certificates can be used by <xref linkend='git'/>,
186 <xref linkend='curl'/> or <xref linkend='wget'/> when accessing secure
187 (https protocol) sites. To do this, follow the instructions from the
188 <xref linkend='cacerts'/> page.
189 </para>
190
191 <para>
192 Users who just want to use <application>OpenSSL</application> for
193 providing functions to other programs such as
194 <application>OpenSSH</application> and web browsers do not need to worry
195 about additional configuration. This is an advanced topic and so those
196 who do need it would normally be expected to either know how to properly
197 update <filename>/etc/ssl/openssl.cnf</filename> or be able to find out
198 how to do it.
199 </para>
200
201 </sect3>
202
203 </sect2>
204
205 <sect2 role="content">
206 <title>Contents</title>
207
208 <segmentedlist>
209 <segtitle>Installed Programs</segtitle>
210 <segtitle>Installed Libraries</segtitle>
211 <segtitle>Installed Directories</segtitle>
212
213 <seglistitem>
214 <seg>
215 c_rehash and openssl
216 </seg>
217 <seg>
218 libcrypto.{so,a} and libssl.{so,a}
219 </seg>
220 <seg>
221 /etc/ssl,
222 /usr/include/openssl,
223 /usr/lib/engines and
224 /usr/share/doc/openssl-&openssl-version;
225 </seg>
226 </seglistitem>
227 </segmentedlist>
228
229 <variablelist>
230 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
231 <?dbfo list-presentation="list"?>
232 <?dbhtml list-presentation="table"?>
233
234 <varlistentry id="c_rehash">
235 <term><command>c_rehash</command></term>
236 <listitem>
237 <para>
238 is a <application>Perl</application> script that scans all files in
239 a directory and adds symbolic links to their hash values.
240 </para>
241 <indexterm zone="openssl c_rehash">
242 <primary sortas="b-c_rehash">c_rehash</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="openssl-prog">
248 <term><command>openssl</command></term>
249 <listitem>
250 <para>
251 is a command-line tool for using the various cryptography functions
252 of <application>OpenSSL</application>'s crypto library from the
253 shell. It can be used for various functions which are documented in
254 <command>man 1 openssl</command>.
255 </para>
256 <indexterm zone="openssl openssl-prog">
257 <primary sortas="b-openssl">openssl</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261
262 <varlistentry id="libcrypto">
263 <term><filename class="libraryfile">libcrypto.{so,a}</filename></term>
264 <listitem>
265 <para>
266 implements a wide range of cryptographic algorithms used in various
267 Internet standards. The services provided by this library are used
268 by the <application>OpenSSL</application> implementations of SSL,
269 TLS and S/MIME, and they have also been used to implement
270 <application>OpenSSH</application>,
271 <application>OpenPGP</application>, and other cryptographic
272 standards.
273 </para>
274 <indexterm zone="openssl libcrypto">
275 <primary sortas="c-libcrypto">libcrypto.{so,a}</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279
280 <varlistentry id="libssl">
281 <term><filename class="libraryfile">libssl.{so,a}</filename></term>
282 <listitem>
283 <para>
284 implements the Secure Sockets Layer (SSL v2/v3) and Transport Layer
285 Security (TLS v1) protocols. It provides a rich API, documentation
286 on which can be found by running <command>man 3 ssl</command>.
287 </para>
288 <indexterm zone="openssl libssl">
289 <primary sortas="c-libssl">libssl.{so,a}</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 </variablelist>
295
296 </sect2>
297
298</sect1>
Note: See TracBrowser for help on using the repository browser.