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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0e7a9e9 was 0e7a9e9, checked in by Ken Moffat <ken@…>, 6 years ago

openssl-1.1.0g and 1.0.2m

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

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