source: postlfs/security/openssl.xml@ 17fb537e

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 17fb537e was 17fb537e, checked in by Randy McMurchy <randy@…>, 19 years ago

Added download location and build entities to Shadow instructions; misc Chapter 4 clean-up

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

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