source: postlfs/security/openssl.xml@ 0e44910

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 0e44910 was 0e44910, checked in by Bruce Dubbs <bdubbs@…>, 15 years ago

Add instruction to openssl to create a directory
if running the tests before installing the first time.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7714 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 "http://www.openssl.org/source/openssl-&openssl-version;.tar.gz">
8 <!ENTITY openssl-download-ftp "ftp://ftp.openssl.org/source/openssl-&openssl-version;.tar.gz">
9 <!ENTITY openssl-md5sum "561e00f18821c74b2b86c8c7786f9d8b">
10 <!ENTITY openssl-size "3.3 MB">
11 <!ENTITY openssl-buildsize "39 MB">
12 <!ENTITY openssl-time "1.3 SBU (additional 0.4 SBU to run the test suite)">
13]>
14
15<sect1 id="openssl" xreflabel="OpenSSL-&openssl-version;">
16 <?dbhtml filename="openssl.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>OpenSSL-&openssl-version;</title>
24
25 <indexterm zone="openssl">
26 <primary sortas="a-OpenSSL">OpenSSL</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to OpenSSL</title>
31
32 <para>The <application>OpenSSL</application> package contains management
33 tools and libraries relating to cryptography. These are useful for
34 providing cryptography functions to other packages, notably
35 <application>OpenSSH</application>, email applications and web browsers
36 (for accessing HTTPS sites).</para>
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&openssl-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&openssl-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &openssl-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &openssl-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &openssl-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &openssl-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
61 <itemizedlist spacing='compact'>
62 <listitem>
63 <para>Required patch: <ulink
64 url="&patch-root;/openssl-&openssl-version;-fix_manpages-1.patch"/></para>
65 </listitem>
66 </itemizedlist>
67
68 <bridgehead renderas="sect3">OpenSSL Dependencies</bridgehead>
69
70 <bridgehead renderas="sect4">Optional</bridgehead>
71 <para role="optional"><xref linkend="bc"/> (recommended
72 if you run the test suite during the build)</para>
73
74 <para condition="html" role="usernotes">User Notes:
75 <ulink url='&blfs-wiki;/OpenSSL'/></para>
76
77 </sect2>
78
79 <sect2 role="installation">
80 <title>Installation of OpenSSL</title>
81
82 <para>Install <application>OpenSSL</application> by running
83 the following commands:</para>
84
85<screen><userinput>patch -Np1 -i ../openssl-&openssl-version;-fix_manpages-1.patch &amp;&amp;
86./config --openssldir=/etc/ssl --prefix=/usr shared &amp;&amp;
87make MANDIR=/usr/share/man</userinput></screen>
88
89 <para>To test the results, issue: <command>make test</command>. Note that the
90 test results/output depend on the availability of /etc/ssl/openssl.cnf. If
91 running the tests for the first time run the following as the
92 <systemitem class="username">root</systemitem> user before running the
93 tests:</para>
94
95<screen role="root"><userinput>install -vd /etc/ssl &amp;&amp;
96install -v ./apps/openssl.cnf /etc/ssl/</userinput></screen>
97
98 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
99
100<screen role="root"><userinput>make MANDIR=/usr/share/man install &amp;&amp;
101cp -v -r certs /etc/ssl &amp;&amp;
102install -v -d -m755 /usr/share/doc/openssl-&openssl-version; &amp;&amp;
103cp -v -r doc/{HOWTO,README,*.{txt,html,gif}} \
104 /usr/share/doc/openssl-&openssl-version;</userinput></screen>
105
106 </sect2>
107
108 <sect2 role="commands">
109 <title>Command Explanations</title>
110
111 <para><option>no-rc5 no-idea</option>: When added to the
112 <command>./config</command> command, this will eliminate the building
113 of those encryption methods. Patent licenses may be needed for you to
114 utilize either of those methods in your projects.</para>
115
116 <para><option>enable-tlsext</option>: When added to the
117 <command>./config</command> command, this switch will enable TLS
118 Extensions. Currently this is only RFC 3546 and 4507bis for Server Name
119 Indication. This allows the use of multiple SSL certificates with multiple
120 virtual hosts in Apache, while using only one IP address and one port for
121 all virtual hosts.</para>
122
123 <para><option>zlib-dynamic</option>: When added to the
124 <command>./config</command> command, this switch will enable
125 use of <filename>libz.so</filename> for compression/decompression.
126 </para>
127
128 <para><command>make MANDIR=/usr/share/man; make MANDIR=/usr/share/man
129 install</command>: These commands install
130 <application>OpenSSL</application> with the man pages in
131 <filename class='directory'>/usr/share/man</filename> instead of
132 <filename class='directory'>/etc/ssl/man</filename>.</para>
133
134 <para><command>cp -v -r certs /etc/ssl</command>: The certificates must
135 be copied manually as the default installation skips this step.</para>
136
137 </sect2>
138
139 <sect2 role="configuration">
140 <title>Configuring OpenSSL</title>
141
142 <sect3 id="openssl-config">
143 <title>Config Files</title>
144
145 <para><filename>/etc/ssl/openssl.cnf</filename></para>
146
147 <indexterm zone="openssl openssl-config">
148 <primary sortas="e-etc-ssl-openssl.cnf">/etc/ssl/openssl.cnf</primary>
149 </indexterm>
150
151 </sect3>
152
153 <sect3>
154 <title>Configuration Information</title>
155
156 <para>Most people who just want to use <application>OpenSSL</application>
157 for providing functions to other programs such as
158 <application>OpenSSH</application> and web browsers won't need to worry
159 about configuring <application>OpenSSL</application>. Configuring
160 <application>OpenSSL</application> is an advanced topic and so those
161 who do would normally be expected to either know how to do it or to be
162 able to find out how to do it.</para>
163
164 </sect3>
165
166 </sect2>
167
168 <sect2 role="content">
169 <title>Contents</title>
170
171 <segmentedlist>
172 <segtitle>Installed Programs</segtitle>
173 <segtitle>Installed Libraries</segtitle>
174 <segtitle>Installed Directories</segtitle>
175
176 <seglistitem>
177 <seg>c_rehash and openssl</seg>
178 <seg>libcrypto.{so,a}, libssl.{so,a}, and additional encryption
179 libraries in /usr/lib/engines/ (lib4758cca.so, libaep.so,
180 libatalla.so, libcapi.so, libchil.so, libcswift.so, libgmp.so, libnuron.so,
181 libsureware.so, and libubsec.so)</seg>
182 <seg>/etc/ssl, /usr/include/ssl, /usr/lib/engines
183 and /usr/share/doc/openssl-&openssl-version;</seg>
184 </seglistitem>
185 </segmentedlist>
186
187 <variablelist>
188 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
189 <?dbfo list-presentation="list"?>
190 <?dbhtml list-presentation="table"?>
191
192 <varlistentry id="c_rehash">
193 <term><command>c_rehash</command></term>
194 <listitem>
195 <para>is a <application>Perl</application> script that scans
196 all files in a directory and adds symbolic links to their hash
197 values.</para>
198 <indexterm zone="openssl c_rehash">
199 <primary sortas="b-c_rehash">c_rehash</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 <varlistentry id="openssl-prog">
205 <term><command>openssl</command></term>
206 <listitem>
207 <para>is a command-line tool for using the various cryptography
208 functions of <application>OpenSSL</application>'s crypto
209 library from the shell. It can be used for various functions which are
210 documented in <command>man 1 openssl</command>.</para>
211 <indexterm zone="openssl openssl-prog">
212 <primary sortas="b-openssl">openssl</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
217 <varlistentry id="libcrypto">
218 <term><filename class='libraryfile'>libcrypto.{so,a}</filename></term>
219 <listitem>
220 <para>implements a wide range of cryptographic algorithms used in
221 various Internet standards. The services provided by this library
222 are used by the <application>OpenSSL</application> implementations of
223 SSL, TLS and S/MIME, and they have also been used to implement
224 <application>OpenSSH</application>, <application>OpenPGP</application>,
225 and other cryptographic standards.</para>
226 <indexterm zone="openssl libcrypto">
227 <primary sortas="c-libcrypto">libcrypto.{so,a}</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="libssl">
233 <term><filename class='libraryfile'>libssl.{so,a}</filename></term>
234 <listitem>
235 <para>implements the Secure Sockets Layer (SSL v2/v3) and Transport
236 Layer Security (TLS v1) protocols. It provides a rich API, documentation
237 on which can be found by running <command>man 3 ssl</command>.</para>
238 <indexterm zone="openssl libssl">
239 <primary sortas="c-libssl">libssl.{so,a}</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 </variablelist>
245
246 </sect2>
247
248</sect1>
Note: See TracBrowser for help on using the repository browser.