[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 |
|
---|
[5a5bbbf] | 7 | <!ENTITY openssl-download-http "http://www.openssl.org/source/openssl-&openssl-version;.tar.gz">
|
---|
[0c4916c] | 8 | <!ENTITY openssl-download-ftp "ftp://ftp.openssl.org/source/openssl-&openssl-version;.tar.gz">
|
---|
[692111b] | 9 | <!ENTITY openssl-md5sum "7040b89c4c58c7a1016c0dfa6e821c86">
|
---|
[a1813d08] | 10 | <!ENTITY openssl-size "3.9 MB">
|
---|
[692111b] | 11 | <!ENTITY openssl-buildsize "54 MB">
|
---|
| 12 | <!ENTITY openssl-time "1.1 SBU (additional 0.3 SBU to run the test suite)">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[cef3a2f] | 15 | <sect1 id="openssl" xreflabel="OpenSSL-&openssl-version;">
|
---|
[5a5bbbf] | 16 | <?dbhtml filename="openssl.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>OpenSSL-&openssl-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="openssl">
|
---|
| 26 | <primary sortas="a-OpenSSL">OpenSSL</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to OpenSSL</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>OpenSSL</application> package contains management
|
---|
| 33 | tools and libraries relating to cryptography. These are useful for
|
---|
| 34 | providing cryptography functions to other packages, notably
|
---|
| 35 | <application>OpenSSH</application>, email applications and web browsers
|
---|
| 36 | (for accessing HTTPS sites).</para>
|
---|
| 37 |
|
---|
[c9b953e6] | 38 | &lfs70_checked;
|
---|
[aafcfb8] | 39 |
|
---|
[5a5bbbf] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (HTTP): <ulink url="&openssl-download-http;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (FTP): <ulink url="&openssl-download-ftp;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download MD5 sum: &openssl-md5sum;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download size: &openssl-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated disk space required: &openssl-buildsize;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated build time: &openssl-time;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </itemizedlist>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 63 | <itemizedlist spacing='compact'>
|
---|
| 64 | <listitem>
|
---|
[a1813d08] | 65 | <para>Required patches: <ulink
|
---|
[74ab9fc] | 66 | url="&patch-root;/openssl-&openssl-version;-fix_manpages-1.patch"/></para>
|
---|
[5a5bbbf] | 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect3">OpenSSL Dependencies</bridgehead>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[a181baeb] | 73 | <para role="optional"><xref linkend="mitkrb"/> or
|
---|
[a1813d08] | 74 | <xref linkend="heimdal"/>, and <xref linkend="bc"/> (required for full
|
---|
| 75 | coverage by the test suite during the build)</para>
|
---|
[5a5bbbf] | 76 |
|
---|
[ad16af6] | 77 | <para condition="html" role="usernotes">User Notes:
|
---|
[1663c2b5] | 78 | <ulink url='&blfs-wiki;/OpenSSL'/></para>
|
---|
[6473e74] | 79 |
|
---|
[5a5bbbf] | 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2 role="installation">
|
---|
| 83 | <title>Installation of OpenSSL</title>
|
---|
| 84 |
|
---|
| 85 | <para>Install <application>OpenSSL</application> by running
|
---|
| 86 | the following commands:</para>
|
---|
| 87 |
|
---|
| 88 | <screen><userinput>patch -Np1 -i ../openssl-&openssl-version;-fix_manpages-1.patch &&
|
---|
[ae7796d] | 89 |
|
---|
[a181baeb] | 90 | ./config --prefix=/usr \
|
---|
| 91 | --openssldir=/etc/ssl \
|
---|
| 92 | shared \
|
---|
| 93 | zlib-dynamic &&
|
---|
| 94 | make</userinput></screen>
|
---|
| 95 |
|
---|
| 96 | <para>To test the results, issue: <command>make test</command>.</para>
|
---|
[5a5bbbf] | 97 |
|
---|
| 98 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 99 |
|
---|
[a181baeb] | 100 | <screen role="root"><userinput>make MANDIR=/usr/share/man install &&
|
---|
[635cb25] | 101 | install -v -d -m755 /usr/share/doc/openssl-&openssl-version; &&
|
---|
[1d89a17] | 102 | cp -v -r doc/{HOWTO,README,*.{txt,html,gif}} \
|
---|
| 103 | /usr/share/doc/openssl-&openssl-version;</userinput></screen>
|
---|
[5a5bbbf] | 104 |
|
---|
| 105 | </sect2>
|
---|
| 106 |
|
---|
| 107 | <sect2 role="commands">
|
---|
| 108 | <title>Command Explanations</title>
|
---|
| 109 |
|
---|
[a181baeb] | 110 | <para><parameter>shared</parameter>: This parameter forces the creation of
|
---|
| 111 | shared libraries along with the static libraries.</para>
|
---|
| 112 |
|
---|
| 113 | <para><parameter>zlib-dynamic</parameter>: This parameter adds
|
---|
| 114 | compression/decompression functionality using the
|
---|
| 115 | <filename class="libraryfile">libz</filename> library.</para>
|
---|
| 116 |
|
---|
[5a5bbbf] | 117 | <para><option>no-rc5 no-idea</option>: When added to the
|
---|
| 118 | <command>./config</command> command, this will eliminate the building
|
---|
| 119 | of those encryption methods. Patent licenses may be needed for you to
|
---|
| 120 | utilize either of those methods in your projects.</para>
|
---|
| 121 |
|
---|
[a181baeb] | 122 | <para><command>make MANDIR=/usr/share/man install</command>: This command
|
---|
| 123 | installs <application>OpenSSL</application> with the man pages in
|
---|
| 124 | <filename class='directory'>/usr/share/man</filename> instead of
|
---|
| 125 | <filename class='directory'>/etc/ssl/man</filename>.</para>
|
---|
| 126 |
|
---|
| 127 | <!-- <para><option>enable-tlsext</option>: When added to the
|
---|
[3c1f587] | 128 | <command>./config</command> command, this switch will enable TLS
|
---|
| 129 | Extensions. Currently this is only RFC 3546 and 4507bis for Server Name
|
---|
| 130 | Indication. This allows the use of multiple SSL certificates with multiple
|
---|
| 131 | virtual hosts in Apache, while using only one IP address and one port for
|
---|
[a181baeb] | 132 | all virtual hosts.</para> -->
|
---|
[aab209d8] | 133 |
|
---|
[5a5bbbf] | 134 | </sect2>
|
---|
| 135 |
|
---|
| 136 | <sect2 role="configuration">
|
---|
| 137 | <title>Configuring OpenSSL</title>
|
---|
| 138 |
|
---|
| 139 | <sect3 id="openssl-config">
|
---|
| 140 | <title>Config Files</title>
|
---|
| 141 |
|
---|
| 142 | <para><filename>/etc/ssl/openssl.cnf</filename></para>
|
---|
| 143 |
|
---|
| 144 | <indexterm zone="openssl openssl-config">
|
---|
| 145 | <primary sortas="e-etc-ssl-openssl.cnf">/etc/ssl/openssl.cnf</primary>
|
---|
| 146 | </indexterm>
|
---|
| 147 |
|
---|
| 148 | </sect3>
|
---|
| 149 |
|
---|
| 150 | <sect3>
|
---|
| 151 | <title>Configuration Information</title>
|
---|
| 152 |
|
---|
[c9b953e6] | 153 | <para>Most users will want to install Certificate Authority Certificates
|
---|
| 154 | for validataion of downloaded certificates. For example, these
|
---|
| 155 | certificates are used by <xref linkend='firefox'/> or <xref
|
---|
| 156 | linkend='wget'/> when accessing secure (https protocol) sites. To do this,
|
---|
| 157 | follow the instructions from the <xref linkend='cacerts'/> page.</para>
|
---|
| 158 |
|
---|
| 159 | <para>Users who just want to use <application>OpenSSL</application> for
|
---|
| 160 | providing functions to other programs such as
|
---|
| 161 | <application>OpenSSH</application> and web browsers do not need to worry
|
---|
| 162 | about additional configuration. This is an advanced topic and so those
|
---|
| 163 | who do need it would normally be expected to either know how to properly
|
---|
| 164 | update <filename>/etc/ssl/openssl.cnf</filename> or be able to find out
|
---|
| 165 | how to do it.</para>
|
---|
[5a5bbbf] | 166 |
|
---|
| 167 | </sect3>
|
---|
| 168 |
|
---|
| 169 | </sect2>
|
---|
| 170 |
|
---|
| 171 | <sect2 role="content">
|
---|
| 172 | <title>Contents</title>
|
---|
| 173 |
|
---|
| 174 | <segmentedlist>
|
---|
| 175 | <segtitle>Installed Programs</segtitle>
|
---|
| 176 | <segtitle>Installed Libraries</segtitle>
|
---|
| 177 | <segtitle>Installed Directories</segtitle>
|
---|
| 178 |
|
---|
| 179 | <seglistitem>
|
---|
[635cb25] | 180 | <seg>c_rehash and openssl</seg>
|
---|
[8a284147] | 181 | <seg>libcrypto.{so,a}, libssl.{so,a}, and additional encryption
|
---|
| 182 | libraries in /usr/lib/engines/ (lib4758cca.so, libaep.so,
|
---|
[a1813d08] | 183 | libatalla.so, libcapi.so, libchil.so, libcswift.so, libgmp.so,
|
---|
| 184 | libgost.so, libnuron.so, libpadlock.so, libsureware.so, and
|
---|
| 185 | libubsec.so)</seg>
|
---|
| 186 | <seg>/etc/ssl, /usr/include/openssl, /usr/lib/engines
|
---|
[7cfb497] | 187 | and /usr/share/doc/openssl-&openssl-version;</seg>
|
---|
[5a5bbbf] | 188 | </seglistitem>
|
---|
| 189 | </segmentedlist>
|
---|
| 190 |
|
---|
| 191 | <variablelist>
|
---|
| 192 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 193 | <?dbfo list-presentation="list"?>
|
---|
| 194 | <?dbhtml list-presentation="table"?>
|
---|
| 195 |
|
---|
| 196 | <varlistentry id="c_rehash">
|
---|
| 197 | <term><command>c_rehash</command></term>
|
---|
| 198 | <listitem>
|
---|
| 199 | <para>is a <application>Perl</application> script that scans
|
---|
| 200 | all files in a directory and adds symbolic links to their hash
|
---|
| 201 | values.</para>
|
---|
| 202 | <indexterm zone="openssl c_rehash">
|
---|
| 203 | <primary sortas="b-c_rehash">c_rehash</primary>
|
---|
| 204 | </indexterm>
|
---|
| 205 | </listitem>
|
---|
| 206 | </varlistentry>
|
---|
| 207 |
|
---|
| 208 | <varlistentry id="openssl-prog">
|
---|
| 209 | <term><command>openssl</command></term>
|
---|
| 210 | <listitem>
|
---|
| 211 | <para>is a command-line tool for using the various cryptography
|
---|
| 212 | functions of <application>OpenSSL</application>'s crypto
|
---|
| 213 | library from the shell. It can be used for various functions which are
|
---|
| 214 | documented in <command>man 1 openssl</command>.</para>
|
---|
| 215 | <indexterm zone="openssl openssl-prog">
|
---|
| 216 | <primary sortas="b-openssl">openssl</primary>
|
---|
| 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
| 220 |
|
---|
| 221 | <varlistentry id="libcrypto">
|
---|
[3597eb6] | 222 | <term><filename class='libraryfile'>libcrypto.{so,a}</filename></term>
|
---|
[5a5bbbf] | 223 | <listitem>
|
---|
| 224 | <para>implements a wide range of cryptographic algorithms used in
|
---|
| 225 | various Internet standards. The services provided by this library
|
---|
| 226 | are used by the <application>OpenSSL</application> implementations of
|
---|
| 227 | SSL, TLS and S/MIME, and they have also been used to implement
|
---|
| 228 | <application>OpenSSH</application>, <application>OpenPGP</application>,
|
---|
| 229 | and other cryptographic standards.</para>
|
---|
| 230 | <indexterm zone="openssl libcrypto">
|
---|
[3597eb6] | 231 | <primary sortas="c-libcrypto">libcrypto.{so,a}</primary>
|
---|
[5a5bbbf] | 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
| 236 | <varlistentry id="libssl">
|
---|
[3597eb6] | 237 | <term><filename class='libraryfile'>libssl.{so,a}</filename></term>
|
---|
[5a5bbbf] | 238 | <listitem>
|
---|
| 239 | <para>implements the Secure Sockets Layer (SSL v2/v3) and Transport
|
---|
| 240 | Layer Security (TLS v1) protocols. It provides a rich API, documentation
|
---|
| 241 | on which can be found by running <command>man 3 ssl</command>.</para>
|
---|
| 242 | <indexterm zone="openssl libssl">
|
---|
[3597eb6] | 243 | <primary sortas="c-libssl">libssl.{so,a}</primary>
|
---|
[5a5bbbf] | 244 | </indexterm>
|
---|
| 245 | </listitem>
|
---|
| 246 | </varlistentry>
|
---|
| 247 |
|
---|
| 248 | </variablelist>
|
---|
| 249 |
|
---|
| 250 | </sect2>
|
---|
[f45b1953] | 251 |
|
---|
| 252 | </sect1>
|
---|