[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">
|
---|
[8a284147] | 9 | <!ENTITY openssl-md5sum "acf70a16359bf3658bdfb74bda1c4419">
|
---|
| 10 | <!ENTITY openssl-size "3.2 MB">
|
---|
| 11 | <!ENTITY openssl-buildsize "40 MB">
|
---|
| 12 | <!ENTITY openssl-time "1.2 SBU (additional 0.5 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 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&openssl-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&openssl-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &openssl-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &openssl-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &openssl-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &openssl-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
| 60 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 61 | <itemizedlist spacing='compact'>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>Required patch: <ulink
|
---|
| 64 | url="&patch-root;/openssl-&openssl-version;-fix_manpages-1.patch"/></para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
| 67 |
|
---|
| 68 | <bridgehead renderas="sect3">OpenSSL Dependencies</bridgehead>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[e19ad480] | 71 | <para role="optional"><xref linkend="bc"/> (recommended
|
---|
[5a5bbbf] | 72 | if you run the test suite during the build)</para>
|
---|
| 73 |
|
---|
[ad16af6] | 74 | <para condition="html" role="usernotes">User Notes:
|
---|
[1663c2b5] | 75 | <ulink url='&blfs-wiki;/OpenSSL'/></para>
|
---|
[6473e74] | 76 |
|
---|
[5a5bbbf] | 77 | </sect2>
|
---|
| 78 |
|
---|
| 79 | <sect2 role="installation">
|
---|
| 80 | <title>Installation of OpenSSL</title>
|
---|
| 81 |
|
---|
| 82 | <para>Install <application>OpenSSL</application> by running
|
---|
| 83 | the following commands:</para>
|
---|
| 84 |
|
---|
| 85 | <screen><userinput>patch -Np1 -i ../openssl-&openssl-version;-fix_manpages-1.patch &&
|
---|
[52d29f7] | 86 | ./config --openssldir=/etc/ssl --prefix=/usr shared &&
|
---|
[5a5bbbf] | 87 | make MANDIR=/usr/share/man</userinput></screen>
|
---|
| 88 |
|
---|
| 89 | <para>To test the results, issue: <command>make test</command>.</para>
|
---|
| 90 |
|
---|
| 91 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 92 |
|
---|
| 93 | <screen role="root"><userinput>make MANDIR=/usr/share/man install &&
|
---|
[635cb25] | 94 | cp -v -r certs /etc/ssl &&
|
---|
| 95 | install -v -d -m755 /usr/share/doc/openssl-&openssl-version; &&
|
---|
| 96 | cp -v -r doc/{HOWTO,README,*.{txt,html,gif}} \
|
---|
| 97 | /usr/share/doc/openssl-&openssl-version;</userinput></screen>
|
---|
[5a5bbbf] | 98 |
|
---|
| 99 | </sect2>
|
---|
| 100 |
|
---|
| 101 | <sect2 role="commands">
|
---|
| 102 | <title>Command Explanations</title>
|
---|
| 103 |
|
---|
| 104 | <para><option>no-rc5 no-idea</option>: When added to the
|
---|
| 105 | <command>./config</command> command, this will eliminate the building
|
---|
| 106 | of those encryption methods. Patent licenses may be needed for you to
|
---|
| 107 | utilize either of those methods in your projects.</para>
|
---|
| 108 |
|
---|
[aab209d8] | 109 | <para><option>enable-tlsext</option>: When added to the
|
---|
[3c1f587] | 110 | <command>./config</command> command, this switch will enable TLS
|
---|
| 111 | Extensions. Currently this is only RFC 3546 and 4507bis for Server Name
|
---|
| 112 | Indication. This allows the use of multiple SSL certificates with multiple
|
---|
| 113 | virtual hosts in Apache, while using only one IP address and one port for
|
---|
| 114 | all virtual hosts.</para>
|
---|
[aab209d8] | 115 |
|
---|
[5a5bbbf] | 116 | <para><command>make MANDIR=/usr/share/man; make MANDIR=/usr/share/man
|
---|
| 117 | install</command>: These commands install
|
---|
| 118 | <application>OpenSSL</application> with the man pages in
|
---|
| 119 | <filename class='directory'>/usr/share/man</filename> instead of
|
---|
| 120 | <filename class='directory'>/etc/ssl/man</filename>.</para>
|
---|
| 121 |
|
---|
| 122 | <para><command>cp -v -r certs /etc/ssl</command>: The certificates must
|
---|
[0c4916c] | 123 | be copied manually as the default installation skips this step.</para>
|
---|
[5a5bbbf] | 124 |
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2 role="configuration">
|
---|
| 128 | <title>Configuring OpenSSL</title>
|
---|
| 129 |
|
---|
| 130 | <sect3 id="openssl-config">
|
---|
| 131 | <title>Config Files</title>
|
---|
| 132 |
|
---|
| 133 | <para><filename>/etc/ssl/openssl.cnf</filename></para>
|
---|
| 134 |
|
---|
| 135 | <indexterm zone="openssl openssl-config">
|
---|
| 136 | <primary sortas="e-etc-ssl-openssl.cnf">/etc/ssl/openssl.cnf</primary>
|
---|
| 137 | </indexterm>
|
---|
| 138 |
|
---|
| 139 | </sect3>
|
---|
| 140 |
|
---|
| 141 | <sect3>
|
---|
| 142 | <title>Configuration Information</title>
|
---|
| 143 |
|
---|
| 144 | <para>Most people who just want to use <application>OpenSSL</application>
|
---|
| 145 | for providing functions to other programs such as
|
---|
| 146 | <application>OpenSSH</application> and web browsers won't need to worry
|
---|
| 147 | about configuring <application>OpenSSL</application>. Configuring
|
---|
| 148 | <application>OpenSSL</application> is an advanced topic and so those
|
---|
| 149 | who do would normally be expected to either know how to do it or to be
|
---|
| 150 | able to find out how to do it.</para>
|
---|
| 151 |
|
---|
| 152 | </sect3>
|
---|
| 153 |
|
---|
| 154 | </sect2>
|
---|
| 155 |
|
---|
| 156 | <sect2 role="content">
|
---|
| 157 | <title>Contents</title>
|
---|
| 158 |
|
---|
| 159 | <segmentedlist>
|
---|
| 160 | <segtitle>Installed Programs</segtitle>
|
---|
| 161 | <segtitle>Installed Libraries</segtitle>
|
---|
| 162 | <segtitle>Installed Directories</segtitle>
|
---|
| 163 |
|
---|
| 164 | <seglistitem>
|
---|
[635cb25] | 165 | <seg>c_rehash and openssl</seg>
|
---|
[8a284147] | 166 | <seg>libcrypto.{so,a}, libssl.{so,a}, and additional encryption
|
---|
| 167 | libraries in /usr/lib/engines/ (lib4758cca.so, libaep.so,
|
---|
| 168 | libatalla.so, libchil.so, libcswift.so, libgmp.so, libnuron.so,
|
---|
| 169 | libsureware.so and libubsec.so)</seg>
|
---|
[7cfb497] | 170 | <seg>/etc/ssl, /usr/include/ssl, /usr/lib/engines
|
---|
| 171 | and /usr/share/doc/openssl-&openssl-version;</seg>
|
---|
[5a5bbbf] | 172 | </seglistitem>
|
---|
| 173 | </segmentedlist>
|
---|
| 174 |
|
---|
| 175 | <variablelist>
|
---|
| 176 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 177 | <?dbfo list-presentation="list"?>
|
---|
| 178 | <?dbhtml list-presentation="table"?>
|
---|
| 179 |
|
---|
| 180 | <varlistentry id="c_rehash">
|
---|
| 181 | <term><command>c_rehash</command></term>
|
---|
| 182 | <listitem>
|
---|
| 183 | <para>is a <application>Perl</application> script that scans
|
---|
| 184 | all files in a directory and adds symbolic links to their hash
|
---|
| 185 | values.</para>
|
---|
| 186 | <indexterm zone="openssl c_rehash">
|
---|
| 187 | <primary sortas="b-c_rehash">c_rehash</primary>
|
---|
| 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
| 191 |
|
---|
| 192 | <varlistentry id="openssl-prog">
|
---|
| 193 | <term><command>openssl</command></term>
|
---|
| 194 | <listitem>
|
---|
| 195 | <para>is a command-line tool for using the various cryptography
|
---|
| 196 | functions of <application>OpenSSL</application>'s crypto
|
---|
| 197 | library from the shell. It can be used for various functions which are
|
---|
| 198 | documented in <command>man 1 openssl</command>.</para>
|
---|
| 199 | <indexterm zone="openssl openssl-prog">
|
---|
| 200 | <primary sortas="b-openssl">openssl</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
| 205 | <varlistentry id="libcrypto">
|
---|
[3597eb6] | 206 | <term><filename class='libraryfile'>libcrypto.{so,a}</filename></term>
|
---|
[5a5bbbf] | 207 | <listitem>
|
---|
| 208 | <para>implements a wide range of cryptographic algorithms used in
|
---|
| 209 | various Internet standards. The services provided by this library
|
---|
| 210 | are used by the <application>OpenSSL</application> implementations of
|
---|
| 211 | SSL, TLS and S/MIME, and they have also been used to implement
|
---|
| 212 | <application>OpenSSH</application>, <application>OpenPGP</application>,
|
---|
| 213 | and other cryptographic standards.</para>
|
---|
| 214 | <indexterm zone="openssl libcrypto">
|
---|
[3597eb6] | 215 | <primary sortas="c-libcrypto">libcrypto.{so,a}</primary>
|
---|
[5a5bbbf] | 216 | </indexterm>
|
---|
| 217 | </listitem>
|
---|
| 218 | </varlistentry>
|
---|
| 219 |
|
---|
| 220 | <varlistentry id="libssl">
|
---|
[3597eb6] | 221 | <term><filename class='libraryfile'>libssl.{so,a}</filename></term>
|
---|
[5a5bbbf] | 222 | <listitem>
|
---|
| 223 | <para>implements the Secure Sockets Layer (SSL v2/v3) and Transport
|
---|
| 224 | Layer Security (TLS v1) protocols. It provides a rich API, documentation
|
---|
| 225 | on which can be found by running <command>man 3 ssl</command>.</para>
|
---|
| 226 | <indexterm zone="openssl libssl">
|
---|
[3597eb6] | 227 | <primary sortas="c-libssl">libssl.{so,a}</primary>
|
---|
[5a5bbbf] | 228 | </indexterm>
|
---|
| 229 | </listitem>
|
---|
| 230 | </varlistentry>
|
---|
| 231 |
|
---|
| 232 | </variablelist>
|
---|
| 233 |
|
---|
| 234 | </sect2>
|
---|
[f45b1953] | 235 |
|
---|
| 236 | </sect1>
|
---|