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;
|
|
|
|
|
2012-03-02 22:29:21 +08:00
|
|
|
<!ENTITY openssl-download-http
|
2015-01-27 20:49:58 +08:00
|
|
|
"https://openssl.org/source/openssl-&openssl-version;.tar.gz">
|
2012-03-02 22:29:21 +08:00
|
|
|
<!ENTITY openssl-download-ftp
|
2015-01-27 20:49:58 +08:00
|
|
|
"ftp://openssl.org/source/openssl-&openssl-version;.tar.gz">
|
2017-11-04 03:27:23 +08:00
|
|
|
<!ENTITY openssl-md5sum "ba5f1b8b835b88cadbce9b35ed9531a6">
|
|
|
|
<!ENTITY openssl-size "5.2 MB">
|
|
|
|
<!ENTITY openssl-buildsize "73 MB (with tests)">
|
2017-06-04 06:32:28 +08:00
|
|
|
<!ENTITY openssl-time "1.5 SBU (with tests)">
|
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>
|
|
|
|
<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>
|
|
|
|
|
2012-03-02 22:29:21 +08:00
|
|
|
<para>
|
|
|
|
The <application>OpenSSL</application> package contains management tools
|
|
|
|
and libraries relating to cryptography. These are useful for providing
|
2016-11-25 00:05:14 +08:00
|
|
|
cryptographic functions to other packages, such as
|
2012-03-02 22:29:21 +08:00
|
|
|
<application>OpenSSH</application>, email applications and web browsers
|
|
|
|
(for accessing HTTPS sites).
|
|
|
|
</para>
|
2005-05-14 20:49:46 +08:00
|
|
|
|
2017-08-17 12:41:37 +08:00
|
|
|
&lfs81_checked;
|
2009-07-27 01:25:22 +08:00
|
|
|
|
2005-05-14 20:49:46 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-03-02 22:29:21 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&openssl-download-http;"/>
|
|
|
|
</para>
|
2005-05-14 20:49:46 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-02 22:29:21 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&openssl-download-ftp;"/>
|
|
|
|
</para>
|
2005-05-14 20:49:46 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-02 22:29:21 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &openssl-md5sum;
|
|
|
|
</para>
|
2005-05-14 20:49:46 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-02 22:29:21 +08:00
|
|
|
<para>
|
|
|
|
Download size: &openssl-size;
|
|
|
|
</para>
|
2005-05-14 20:49:46 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-02 22:29:21 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &openssl-buildsize;
|
|
|
|
</para>
|
2005-05-14 20:49:46 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-02 22:29:21 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &openssl-time;
|
|
|
|
</para>
|
2005-05-14 20:49:46 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2012-03-02 22:29:21 +08:00
|
|
|
<para condition="html" role="usernotes">
|
|
|
|
User Notes: <ulink url='&blfs-wiki;/OpenSSL'/>
|
|
|
|
</para>
|
2005-05-14 20:49:46 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of OpenSSL</title>
|
|
|
|
|
2012-03-02 22:29:21 +08:00
|
|
|
<para>
|
2012-04-21 20:39:08 +08:00
|
|
|
Install <application>OpenSSL</application> with the following commands:
|
2012-03-02 22:29:21 +08:00
|
|
|
</para>
|
2005-05-14 20:49:46 +08:00
|
|
|
|
2013-10-22 05:39:03 +08:00
|
|
|
|
2015-07-10 06:18:16 +08:00
|
|
|
<screen><userinput>./config --prefix=/usr \
|
2013-03-08 11:49:03 +08:00
|
|
|
--openssldir=/etc/ssl \
|
2014-02-18 04:00:29 +08:00
|
|
|
--libdir=lib \
|
2013-03-08 11:49:03 +08:00
|
|
|
shared \
|
|
|
|
zlib-dynamic &&
|
2017-06-04 06:32:28 +08:00
|
|
|
make</userinput></screen>
|
2009-02-12 10:45:57 +08:00
|
|
|
|
2012-03-02 22:29:21 +08:00
|
|
|
<para>
|
2017-06-04 22:55:44 +08:00
|
|
|
To test the results, issue: <command>make test</command>.
|
2012-03-02 22:29:21 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
If you want to disable installing the static libraries, use this sed:
|
|
|
|
</para>
|
2005-05-14 20:49:46 +08:00
|
|
|
|
2017-06-04 06:32:28 +08:00
|
|
|
<screen><userinput>sed -i 's# libcrypto.a##;s# libssl.a##;/INSTALL_LIBS/s#libcrypto.a##' Makefile</userinput></screen>
|
2012-03-02 22:29:21 +08:00
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2005-05-14 20:49:46 +08:00
|
|
|
|
2014-01-08 18:47:00 +08:00
|
|
|
<!-- dev note: make INSTALL_PREFIX=<DESTDIR> MANDIR=/usr/share/man MANSUFFIX=ssl install -->
|
|
|
|
|
2017-06-04 06:32:28 +08:00
|
|
|
<screen role="root"><userinput>make MANSUFFIX=ssl install &&
|
|
|
|
mv -v /usr/share/doc/openssl{,-&openssl-version;} &&
|
|
|
|
cp -vfr doc/* /usr/share/doc/openssl-&openssl-version;</userinput></screen>
|
2013-03-01 20:31:35 +08:00
|
|
|
|
2005-05-14 20:49:46 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2012-03-02 22:29:21 +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>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<para>
|
2017-06-04 06:32:28 +08:00
|
|
|
<command>make MANSUFFIX=ssl install</command>:
|
|
|
|
This command appends an "ssl" suffix to the manual page names to avoid
|
|
|
|
conflicts with manual pages installed by other packages.
|
2012-03-02 22:29:21 +08:00
|
|
|
</para>
|
2013-03-01 20:31:35 +08:00
|
|
|
|
2005-05-14 20:49:46 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring OpenSSL</title>
|
|
|
|
|
|
|
|
<sect3 id="openssl-config">
|
|
|
|
<title>Config Files</title>
|
|
|
|
|
2012-03-02 22:29:21 +08:00
|
|
|
<para>
|
2012-04-21 20:39:08 +08:00
|
|
|
<filename>/etc/ssl/openssl.cnf</filename>
|
2012-03-02 22:29:21 +08:00
|
|
|
</para>
|
2005-05-14 20:49:46 +08:00
|
|
|
|
|
|
|
<indexterm zone="openssl openssl-config">
|
|
|
|
<primary sortas="e-etc-ssl-openssl.cnf">/etc/ssl/openssl.cnf</primary>
|
|
|
|
</indexterm>
|
2013-03-01 20:31:35 +08:00
|
|
|
|
2005-05-14 20:49:46 +08:00
|
|
|
</sect3>
|
2012-04-21 20:39:08 +08:00
|
|
|
|
2005-05-14 20:49:46 +08:00
|
|
|
<sect3>
|
|
|
|
<title>Configuration Information</title>
|
|
|
|
|
2012-03-02 22:29:21 +08:00
|
|
|
<para>
|
|
|
|
Most users will want to install Certificate Authority Certificates
|
2012-10-17 09:55:18 +08:00
|
|
|
for validation of downloaded certificates. For example, these
|
2012-04-21 20:39:08 +08:00
|
|
|
certificates can be used by <xref linkend='git'/>,
|
|
|
|
<xref linkend='curl'/> or <xref linkend='wget'/> when accessing secure
|
|
|
|
(https protocol) sites. To do this, follow the instructions from the
|
|
|
|
<xref linkend='cacerts'/> page.
|
2013-02-12 02:51:17 +08:00
|
|
|
</para>
|
2012-03-02 22:29:21 +08:00
|
|
|
|
|
|
|
<para>
|
|
|
|
Users who just want to use <application>OpenSSL</application> for
|
|
|
|
providing functions to other programs such as
|
|
|
|
<application>OpenSSH</application> and web browsers do not need to worry
|
2016-06-05 13:57:10 +08:00
|
|
|
about additional configuration. This is an advanced topic and those
|
2012-03-02 22:29:21 +08:00
|
|
|
who do need it would normally be expected to either know how to properly
|
|
|
|
update <filename>/etc/ssl/openssl.cnf</filename> or be able to find out
|
|
|
|
how to do it.
|
|
|
|
</para>
|
2013-03-01 20:31:35 +08:00
|
|
|
|
2005-05-14 20:49:46 +08:00
|
|
|
</sect3>
|
2013-03-01 20:31:35 +08:00
|
|
|
|
2005-05-14 20:49:46 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2012-03-02 22:29:21 +08:00
|
|
|
<seg>
|
2013-03-01 20:31:35 +08:00
|
|
|
c_rehash and openssl
|
2012-04-21 20:39:08 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2014-10-16 02:24:03 +08:00
|
|
|
libcrypto.{so,a} and libssl.{so,a}
|
2013-03-01 20:31:35 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/etc/ssl,
|
|
|
|
/usr/include/openssl,
|
|
|
|
/usr/lib/engines and
|
|
|
|
/usr/share/doc/openssl-&openssl-version;
|
2012-03-02 22:29:21 +08:00
|
|
|
</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>
|
2012-03-02 22:29:21 +08:00
|
|
|
<para>
|
|
|
|
is a <application>Perl</application> script that scans all files in
|
|
|
|
a directory and adds symbolic links to their hash values.
|
|
|
|
</para>
|
2005-05-14 20:49:46 +08:00
|
|
|
<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>
|
2012-03-02 22:29:21 +08:00
|
|
|
<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>
|
2005-05-14 20:49:46 +08:00
|
|
|
<indexterm zone="openssl openssl-prog">
|
|
|
|
<primary sortas="b-openssl">openssl</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libcrypto">
|
2013-03-01 20:31:35 +08:00
|
|
|
<term><filename class="libraryfile">libcrypto.{so,a}</filename></term>
|
2005-05-14 20:49:46 +08:00
|
|
|
<listitem>
|
2012-03-02 22:29:21 +08:00
|
|
|
<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>
|
2005-05-14 20:49:46 +08:00
|
|
|
<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">
|
2013-03-01 20:31:35 +08:00
|
|
|
<term><filename class="libraryfile">libssl.{so,a}</filename></term>
|
2005-05-14 20:49:46 +08:00
|
|
|
<listitem>
|
2012-03-02 22:29:21 +08:00
|
|
|
<para>
|
2016-03-02 10:47:59 +08:00
|
|
|
implements the Transport Layer Security (TLS v1) protocol.
|
|
|
|
It provides a rich API, documentation
|
2012-03-02 22:29:21 +08:00
|
|
|
on which can be found by running <command>man 3 ssl</command>.
|
|
|
|
</para>
|
2005-05-14 20:49:46 +08:00
|
|
|
<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>
|
2013-03-01 20:31:35 +08:00
|
|
|
|
2005-05-14 20:49:46 +08:00
|
|
|
</variablelist>
|
2013-03-01 20:31:35 +08:00
|
|
|
|
2005-05-14 20:49:46 +08:00
|
|
|
</sect2>
|
2013-03-01 20:31:35 +08:00
|
|
|
|
2002-07-08 04:28:42 +08:00
|
|
|
</sect1>
|