2004-06-13 06:56:28 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-13 06:56:28 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2005-05-14 20:49:46 +08:00
|
|
|
<!ENTITY openssl-download-http "http://www.openssl.org/source/openssl-&openssl-version;.tar.gz">
|
2005-11-26 03:02:48 +08:00
|
|
|
<!ENTITY openssl-download-ftp "ftp://ftp.openssl.org/source/openssl-&openssl-version;.tar.gz">
|
2009-05-10 13:50:15 +08:00
|
|
|
<!ENTITY openssl-md5sum "e555c6d58d276aec7fdc53363e338ab3">
|
2009-02-12 10:45:57 +08:00
|
|
|
<!ENTITY openssl-size "3.7 MB">
|
2009-04-09 14:01:57 +08:00
|
|
|
<!ENTITY ca-bundle-download "http://anduin.linuxfromscratch.org/files/BLFS/BLFS-ca-bundle-&ca-bundle-version;.tar.bz2">
|
|
|
|
<!ENTITY ca-bundle-size "192 KB">
|
|
|
|
<!ENTITY ca-bundle-md5sum "a5e85c3df9ef9a192eb5e5cdf94ebb72">
|
|
|
|
<!ENTITY openssl-buildsize "47 MB">
|
2009-05-10 13:50:15 +08:00
|
|
|
<!ENTITY openssl-time "1.1 SBU (additional 0.3 SBU to run the test suite)">
|
2004-06-13 06:56:28 +08:00
|
|
|
]>
|
|
|
|
|
2005-01-26 00:02:00 +08:00
|
|
|
<sect1 id="openssl" xreflabel="OpenSSL-&openssl-version;">
|
2005-05-14 20:49:46 +08:00
|
|
|
<?dbhtml filename="openssl.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>OpenSSL-&openssl-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="openssl">
|
|
|
|
<primary sortas="a-OpenSSL">OpenSSL</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to OpenSSL</title>
|
|
|
|
|
|
|
|
<para>The <application>OpenSSL</application> package contains management
|
|
|
|
tools and libraries relating to cryptography. These are useful for
|
|
|
|
providing cryptography functions to other packages, notably
|
|
|
|
<application>OpenSSH</application>, email applications and web browsers
|
|
|
|
(for accessing HTTPS sites).</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&openssl-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&openssl-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &openssl-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &openssl-size;</para>
|
|
|
|
</listitem>
|
2009-04-09 14:01:57 +08:00
|
|
|
<listitem>
|
|
|
|
<para>CA Bundle Download: <ulink url="&ca-bundle-download;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>CA Bundle size: &ca-bundle-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>CA Bundle MD5 sum: &ca-bundle-md5sum;</para>
|
|
|
|
</listitem>
|
2005-05-14 20:49:46 +08:00
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &openssl-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &openssl-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<listitem>
|
|
|
|
<para>Required patch: <ulink
|
|
|
|
url="&patch-root;/openssl-&openssl-version;-fix_manpages-1.patch"/></para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">OpenSSL Dependencies</bridgehead>
|
|
|
|
|
2009-03-12 16:18:53 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended"><xref linkend="bc"/>(if you run the test suite
|
2009-04-09 14:01:57 +08:00
|
|
|
during the build)</para>
|
2009-02-12 10:45:57 +08:00
|
|
|
|
2005-05-14 20:49:46 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2009-02-12 10:45:57 +08:00
|
|
|
<para role="optional"><xref linkend="mitkrb"/> or
|
|
|
|
<xref linkend="heimdal"/></para>
|
2005-05-14 20:49:46 +08:00
|
|
|
|
2006-03-10 06:08:41 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
2006-04-01 09:32:36 +08:00
|
|
|
<ulink url='&blfs-wiki;/OpenSSL'/></para>
|
2006-03-15 23:00:51 +08:00
|
|
|
|
2005-05-14 20:49:46 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of OpenSSL</title>
|
|
|
|
|
|
|
|
<para>Install <application>OpenSSL</application> by running
|
|
|
|
the following commands:</para>
|
|
|
|
|
|
|
|
<screen><userinput>patch -Np1 -i ../openssl-&openssl-version;-fix_manpages-1.patch &&
|
2009-04-09 14:01:57 +08:00
|
|
|
tar -vxf ../BLFS-ca-bundle-&ca-bundle-version;.tar.bz2 &&
|
2009-02-12 10:45:57 +08:00
|
|
|
./config --prefix=/usr \
|
|
|
|
--openssldir=/etc/ssl \
|
|
|
|
shared \
|
|
|
|
zlib-dynamic &&
|
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>To test the results, issue: <command>make test</command>.</para>
|
2005-05-14 20:49:46 +08:00
|
|
|
|
2009-02-12 10:45:57 +08:00
|
|
|
<!-- <para>To test the results, issue: <command>make test</command>. Note that the
|
2008-12-25 06:18:34 +08:00
|
|
|
test results/output depend on the availability of /etc/ssl/openssl.cnf. If
|
|
|
|
running the tests for the first time run the following as the
|
|
|
|
<systemitem class="username">root</systemitem> user before running the
|
|
|
|
tests:</para>
|
|
|
|
|
2009-02-12 10:45:57 +08:00
|
|
|
<screen role="root"><userinput>install -v -m755 d /etc/ssl &&
|
|
|
|
install -v ./apps/openssl.cnf /etc/ssl/</userinput></screen> -->
|
2005-05-14 20:49:46 +08:00
|
|
|
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
2009-02-12 10:45:57 +08:00
|
|
|
<screen role="root"><userinput>make MANDIR=/usr/share/man install &&
|
|
|
|
|
|
|
|
cp -v -r certs /etc/ssl &&
|
|
|
|
|
2006-04-28 06:06:15 +08:00
|
|
|
install -v -d -m755 /usr/share/doc/openssl-&openssl-version; &&
|
|
|
|
cp -v -r doc/{HOWTO,README,*.{txt,html,gif}} \
|
|
|
|
/usr/share/doc/openssl-&openssl-version;</userinput></screen>
|
2005-05-14 20:49:46 +08:00
|
|
|
|
2009-04-09 14:01:57 +08:00
|
|
|
<para>While still the <systemitem class="username">root</systemitem> user,
|
|
|
|
create a single file that contains all of the installed certificates:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>for pem in /etc/ssl/certs/*.pem
|
|
|
|
do
|
|
|
|
cat $pem
|
|
|
|
echo ""
|
|
|
|
done > /etc/ssl/ca-bundle.crt</userinput></screen>
|
|
|
|
|
2005-05-14 20:49:46 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2009-04-09 14:01:57 +08:00
|
|
|
<para>
|
|
|
|
<command>tar -vxf ../BLFS-ca-bundle-&ca-bundle-version;.tar.bz2</command>:
|
|
|
|
OpenSSL no longer includes any root certificates. This package adds root
|
|
|
|
certificates as provided by mozilla.org.</para>
|
|
|
|
|
2009-02-12 10:45:57 +08:00
|
|
|
<para><parameter>shared</parameter>: This parameter forces the creation of
|
|
|
|
shared libraries along with the static libraries.</para>
|
|
|
|
|
|
|
|
<para><parameter>zlib-dynamic</parameter>: This parameter adds
|
|
|
|
compression/decompression functionality using the
|
|
|
|
<filename class="libraryfile">libz</filename> library.</para>
|
|
|
|
|
2005-05-14 20:49:46 +08:00
|
|
|
<para><option>no-rc5 no-idea</option>: When added to the
|
|
|
|
<command>./config</command> command, this will eliminate the building
|
|
|
|
of those encryption methods. Patent licenses may be needed for you to
|
|
|
|
utilize either of those methods in your projects.</para>
|
|
|
|
|
2009-02-12 10:45:57 +08:00
|
|
|
<para><command>make MANDIR=/usr/share/man install</command>: This command
|
|
|
|
installs <application>OpenSSL</application> with the man pages in
|
|
|
|
<filename class='directory'>/usr/share/man</filename> instead of
|
|
|
|
<filename class='directory'>/etc/ssl/man</filename>.</para>
|
|
|
|
|
|
|
|
<!-- <para><option>enable-tlsext</option>: When added to the
|
2008-03-23 10:40:43 +08:00
|
|
|
<command>./config</command> command, this switch will enable TLS
|
|
|
|
Extensions. Currently this is only RFC 3546 and 4507bis for Server Name
|
|
|
|
Indication. This allows the use of multiple SSL certificates with multiple
|
|
|
|
virtual hosts in Apache, while using only one IP address and one port for
|
2009-02-12 10:45:57 +08:00
|
|
|
all virtual hosts.</para> -->
|
2008-03-23 04:26:38 +08:00
|
|
|
|
2009-02-12 10:45:57 +08:00
|
|
|
<!-- <para><option>zlib-dynamic</option>: When added to the
|
2008-12-25 06:18:34 +08:00
|
|
|
<command>./config</command> command, this switch will enable
|
2009-02-12 10:45:57 +08:00
|
|
|
use of <filename>libz.so</filename> for compression/decompression.</para> -->
|
2005-05-14 20:49:46 +08:00
|
|
|
|
2009-04-09 14:01:57 +08:00
|
|
|
<para><command>cp -v -r certs /etc/ssl</command>: This installs both the
|
|
|
|
sample certificates and documentation included with OpenSSL, and the
|
2009-07-07 03:12:40 +08:00
|
|
|
certificates that were extracted from the BLFS-ca-bundle-&ca-bundle-version;
|
2009-04-09 14:01:57 +08:00
|
|
|
package.</para>
|
|
|
|
|
|
|
|
<para><command>for pem in /etc/ssl/certs/*.pem...</command>: This group of
|
|
|
|
commands creates a single-file certificate bundle
|
|
|
|
(<filename>/etc/ssl/ca-bundle.crt</filename>) that is usable by many
|
|
|
|
other software packages. <filename>ca-bundle.crt</filename> should be
|
|
|
|
recreated anytime that a certificate is added to
|
|
|
|
<filename class="directory">/etc/ssl/certs</filename>.</para>
|
2005-05-14 20:49:46 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring OpenSSL</title>
|
|
|
|
|
|
|
|
<sect3 id="openssl-config">
|
|
|
|
<title>Config Files</title>
|
|
|
|
|
|
|
|
<para><filename>/etc/ssl/openssl.cnf</filename></para>
|
|
|
|
|
|
|
|
<indexterm zone="openssl openssl-config">
|
|
|
|
<primary sortas="e-etc-ssl-openssl.cnf">/etc/ssl/openssl.cnf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3>
|
|
|
|
<title>Configuration Information</title>
|
|
|
|
|
|
|
|
<para>Most people who just want to use <application>OpenSSL</application>
|
|
|
|
for providing functions to other programs such as
|
|
|
|
<application>OpenSSH</application> and web browsers won't need to worry
|
|
|
|
about configuring <application>OpenSSL</application>. Configuring
|
|
|
|
<application>OpenSSL</application> is an advanced topic and so those
|
|
|
|
who do would normally be expected to either know how to do it or to be
|
|
|
|
able to find out how to do it.</para>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2006-04-28 06:06:15 +08:00
|
|
|
<seg>c_rehash and openssl</seg>
|
2008-02-11 15:01:20 +08:00
|
|
|
<seg>libcrypto.{so,a}, libssl.{so,a}, and additional encryption
|
|
|
|
libraries in /usr/lib/engines/ (lib4758cca.so, libaep.so,
|
2008-12-25 05:46:34 +08:00
|
|
|
libatalla.so, libcapi.so, libchil.so, libcswift.so, libgmp.so, libnuron.so,
|
|
|
|
libsureware.so, and libubsec.so)</seg>
|
2006-04-28 06:25:55 +08:00
|
|
|
<seg>/etc/ssl, /usr/include/ssl, /usr/lib/engines
|
|
|
|
and /usr/share/doc/openssl-&openssl-version;</seg>
|
2005-05-14 20:49:46 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="c_rehash">
|
|
|
|
<term><command>c_rehash</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a <application>Perl</application> script that scans
|
|
|
|
all files in a directory and adds symbolic links to their hash
|
|
|
|
values.</para>
|
|
|
|
<indexterm zone="openssl c_rehash">
|
|
|
|
<primary sortas="b-c_rehash">c_rehash</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="openssl-prog">
|
|
|
|
<term><command>openssl</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a command-line tool for using the various cryptography
|
|
|
|
functions of <application>OpenSSL</application>'s crypto
|
|
|
|
library from the shell. It can be used for various functions which are
|
|
|
|
documented in <command>man 1 openssl</command>.</para>
|
|
|
|
<indexterm zone="openssl openssl-prog">
|
|
|
|
<primary sortas="b-openssl">openssl</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libcrypto">
|
2006-04-11 02:38:22 +08:00
|
|
|
<term><filename class='libraryfile'>libcrypto.{so,a}</filename></term>
|
2005-05-14 20:49:46 +08:00
|
|
|
<listitem>
|
|
|
|
<para>implements a wide range of cryptographic algorithms used in
|
|
|
|
various Internet standards. The services provided by this library
|
|
|
|
are used by the <application>OpenSSL</application> implementations of
|
|
|
|
SSL, TLS and S/MIME, and they have also been used to implement
|
|
|
|
<application>OpenSSH</application>, <application>OpenPGP</application>,
|
|
|
|
and other cryptographic standards.</para>
|
|
|
|
<indexterm zone="openssl libcrypto">
|
2006-04-11 02:38:22 +08:00
|
|
|
<primary sortas="c-libcrypto">libcrypto.{so,a}</primary>
|
2005-05-14 20:49:46 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libssl">
|
2006-04-11 02:38:22 +08:00
|
|
|
<term><filename class='libraryfile'>libssl.{so,a}</filename></term>
|
2005-05-14 20:49:46 +08:00
|
|
|
<listitem>
|
|
|
|
<para>implements the Secure Sockets Layer (SSL v2/v3) and Transport
|
|
|
|
Layer Security (TLS v1) protocols. It provides a rich API, documentation
|
|
|
|
on which can be found by running <command>man 3 ssl</command>.</para>
|
|
|
|
<indexterm zone="openssl libssl">
|
2006-04-11 02:38:22 +08:00
|
|
|
<primary sortas="c-libssl">libssl.{so,a}</primary>
|
2005-05-14 20:49:46 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect1>
|