source: postlfs/security/openssl.xml@ 843cc38c

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 843cc38c was 843cc38c, checked in by Randy McMurchy <randy@…>, 19 years ago

Added md5sum to OpenSSL instructions

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

  • Property mode set to 100644
File size: 7.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/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 "a8777164bca38d84e5eb2b1535223474">
10<!ENTITY openssl-size "3.0 MB">
11<!ENTITY openssl-buildsize "35 MB">
12<!ENTITY openssl-time "1.16 SBU">
13]>
14
15<sect1 id="openssl" xreflabel="OpenSSL-&openssl-version;">
16<sect1info>
17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
19</sect1info>
20<?dbhtml filename="openssl.html"?>
21<title>OpenSSL-&openssl-version;</title>
22<indexterm zone="openssl">
23<primary sortas="a-OpenSSL">OpenSSL</primary></indexterm>
24
25<sect2>
26<title>Introduction to <application>Open<acronym>SSL</acronym></application>
27</title>
28
29<para>The <application>Open<acronym>SSL</acronym></application> package
30contains management tools and libraries relating to cryptography. These are
31useful for providing cryptography functions to other packages, notably
32<application>OpenSSH</application>, email applications and web browsers (for
33accessing <acronym>HTTPS</acronym> sites).</para>
34
35<sect3><title>Package information</title>
36<itemizedlist spacing='compact'>
37<listitem><para>Download (HTTP):
38<ulink url="&openssl-download-http;"/></para></listitem>
39<listitem><para>Download (FTP):
40<ulink url="&openssl-download-ftp;"/></para></listitem>
41<listitem><para>Download MD5 sum: &openssl-md5sum;</para></listitem>
42<listitem><para>Download size: &openssl-size;</para></listitem>
43<listitem><para>Estimated disk space required:
44&openssl-buildsize;</para></listitem>
45<listitem><para>Estimated build time:
46&openssl-time;</para></listitem></itemizedlist>
47</sect3>
48
49<sect3><title><application>Open<acronym>SSL</acronym></application>
50dependencies</title>
51<sect4><title>Optional</title>
52<para><xref linkend="bc"/> (recommended
53if you run the test suite during the build)</para>
54</sect4>
55</sect3>
56
57</sect2>
58
59<sect2>
60<title>Installation of <application>Open<acronym>SSL</acronym></application>
61</title>
62
63<para>Install <application>Open<acronym>SSL</acronym></application> by running
64the following commands:</para>
65
66<screen><userinput><command>sed 's/^passwd/openssl-passwd/' doc/apps/passwd.pod \
67 > doc/apps/openssl-passwd.pod &amp;&amp;
68rm doc/apps/passwd.pod &amp;&amp;
69mv doc/crypto/{,openssl_}threads.pod &amp;&amp;
70./config --openssldir=/etc/ssl --prefix=/usr shared &amp;&amp;
71sed -i 's%SHLIBDIRS= fips crypto ssl%SHLIBDIRS= crypto ssl%g' Makefile &amp;&amp;
72make MANDIR=/usr/share/man</command></userinput></screen>
73
74<para>Now, as the root user:</para>
75
76<screen><userinput role='root'><command>make MANDIR=/usr/share/man install &amp;&amp;
77cp -r certs /etc/ssl</command></userinput></screen>
78
79</sect2>
80
81<sect2>
82<title>Command explanations</title>
83
84<para><option>no-rc5 no-idea</option>: When added to the
85<command>./config</command> command, this will eliminate the building of those
86encryption methods. Patent licenses may be needed for you to utilize either of
87those methods in your projects.</para>
88
89<para><command>rm doc/apps/passwd.pod</command>: This command prevents
90<application>Open<acronym>SSL</acronym></application> from installing its
91passwd man page over an existing man page with the same name.</para>
92
93<para><command>mv doc/crypto/{,openssl_}threads.pod</command>: This
94commands prevents <application>Open<acronym>SSL</acronym></application> from
95overwriting an existing man page from <application>Perl</application>.</para>
96
97<para><command>sed -i 's%SHLIBDIRS= fips crypto ssl%SHLIBDIRS= crypto ssl%g'
98Makefile</command>: This command prevents installation of the non-existent
99<filename class="libraryfile">libfips</filename> library.</para>
100
101<para><command>make MANDIR=/usr/share/man; make MANDIR=/usr/share/man
102install</command>: These commands install
103<application>Open<acronym>SSL</acronym></application> with the man pages in
104<filename class='directory'>/usr/share/man</filename> instead of
105<filename class='directory'>/etc/ssl/man</filename>.</para>
106
107<para><command>cp -r certs /etc/ssl</command>: The certificates must be copied
108manually since the install script skips this step.</para>
109
110</sect2>
111
112<sect2>
113<title>Configuring <application>OpenSSL</application></title>
114
115<sect3 id="openssl-config"><title>Config files</title>
116<para><filename>/etc/ssl/openssl.cnf</filename></para>
117<indexterm zone="openssl openssl-config">
118<primary sortas="e-etc-ssl-openssl.cnf">/etc/ssl/openssl.cnf</primary>
119</indexterm>
120</sect3>
121
122<sect3><title>Configuration Information</title>
123
124<para>Most people who just want to use
125<application>Open<acronym>SSL</acronym></application> for providing functions
126to other programs such as <application>Open<acronym>SSH</acronym></application>
127and web browsers won't need to worry about configuring
128<application>Open<acronym>SSL</acronym></application>. Configuring
129<application>Open<acronym>SSL</acronym></application> is an advanced topic and
130so those who do would normally be expected to either know how to do it
131or to be able to find out how to do it.</para>
132</sect3>
133
134</sect2>
135
136<sect2>
137<title>Contents</title>
138
139<segmentedlist>
140<segtitle>Installed Programs</segtitle>
141<segtitle>Installed Libraries</segtitle>
142<segtitle>Installed Directories</segtitle>
143<seglistitem>
144<seg>c_rehash and openssl</seg>
145<seg>libcrypto.[so,a] and libssl.[so,a]</seg>
146<seg>/etc/ssl and /usr/include/ssl</seg>
147</seglistitem>
148</segmentedlist>
149
150<variablelist>
151<bridgehead renderas="sect3">Short Descriptions</bridgehead>
152<?dbfo list-presentation="list"?>
153
154<varlistentry id="c_rehash">
155<term><command>c_rehash</command></term>
156<listitem><para>is a <application>Perl</application> script that scans all
157files in a directory and adds symbolic links to their hash values.</para>
158<indexterm zone="openssl c_rehash">
159<primary sortas="b-c_rehash">c_rehash</primary></indexterm>
160</listitem>
161</varlistentry>
162
163<varlistentry id="openssl-prog">
164<term><command>openssl</command></term>
165<listitem><para>is a command-line tool for using the various cryptography
166functions of <application>Open<acronym>SSL</acronym></application>'s crypto
167library from the shell. It can be used for various functions which are
168documented in <command>man 1 openssl</command>.</para>
169<indexterm zone="openssl openssl-prog">
170<primary sortas="b-openssl">openssl</primary></indexterm>
171</listitem>
172</varlistentry>
173
174<varlistentry id="libcrypto">
175<term><filename class='libraryfile'>libcrypto</filename></term>
176<listitem><para>implements a wide range of cryptographic algorithms used in
177various Internet standards. The services provided by this library are used by
178the <application>Open<acronym>SSL</acronym></application> implementations of
179<acronym>SSL</acronym>, <acronym>TLS</acronym> and <acronym>S/MIME</acronym>,
180and they have also been used to implement
181<application>Open<acronym>SSH</acronym></application>,
182<application>Open<acronym>PGP</acronym></application>, and other cryptographic
183standards.</para>
184<indexterm zone="openssl libcrypto">
185<primary sortas="c-libcrypto">libcrypto.[so,a]</primary></indexterm>
186</listitem>
187</varlistentry>
188
189<varlistentry id="libssl">
190<term><filename class='libraryfile'>libssl</filename></term>
191<listitem><para>implements the Secure Sockets Layer (<acronym>SSL</acronym>
192v2/v3) and Transport Layer Security (<acronym>TLS</acronym> v1) protocols. It
193provides a rich <acronym>API</acronym>, documentation on which can be found by
194running <command>man 3 ssl</command>.</para>
195<indexterm zone="openssl libssl">
196<primary sortas="c-libssl">libssl.[so,a]</primary></indexterm>
197</listitem>
198</varlistentry>
199</variablelist>
200
201</sect2>
202
203</sect1>
Note: See TracBrowser for help on using the repository browser.