[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/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">
|
---|
[eea504f] | 9 | <!ENTITY openssl-md5sum "12cedbeb6813a0d7919dbf1f82134b86">
|
---|
[635cb25] | 10 | <!ENTITY openssl-size "3.1 MB">
|
---|
[eea504f] | 11 | <!ENTITY openssl-buildsize "37.8 MB">
|
---|
| 12 | <!ENTITY openssl-time "1.1 SBU (additional 0.4 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>
|
---|
[e19ad480] | 21 | <keywordset>
|
---|
| 22 | <keyword role="package">openssl-&openssl-version;.tar</keyword>
|
---|
[9084c2eb] | 23 | <keyword role="ftpdir">openssl</keyword>
|
---|
[e19ad480] | 24 | </keywordset>
|
---|
[5a5bbbf] | 25 | </sect1info>
|
---|
| 26 |
|
---|
| 27 | <title>OpenSSL-&openssl-version;</title>
|
---|
| 28 |
|
---|
| 29 | <indexterm zone="openssl">
|
---|
| 30 | <primary sortas="a-OpenSSL">OpenSSL</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to OpenSSL</title>
|
---|
| 35 |
|
---|
| 36 | <para>The <application>OpenSSL</application> package contains management
|
---|
| 37 | tools and libraries relating to cryptography. These are useful for
|
---|
| 38 | providing cryptography functions to other packages, notably
|
---|
| 39 | <application>OpenSSH</application>, email applications and web browsers
|
---|
| 40 | (for accessing HTTPS sites).</para>
|
---|
| 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (HTTP): <ulink url="&openssl-download-http;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download (FTP): <ulink url="&openssl-download-ftp;"/></para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download MD5 sum: &openssl-md5sum;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Download size: &openssl-size;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated disk space required: &openssl-buildsize;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Estimated build time: &openssl-time;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | </itemizedlist>
|
---|
| 63 |
|
---|
| 64 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 65 | <itemizedlist spacing='compact'>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>Required patch: <ulink
|
---|
| 68 | url="&patch-root;/openssl-&openssl-version;-fix_manpages-1.patch"/></para>
|
---|
| 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect3">OpenSSL Dependencies</bridgehead>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[e19ad480] | 75 | <para role="optional"><xref linkend="bc"/> (recommended
|
---|
[5a5bbbf] | 76 | if you run the test suite during the build)</para>
|
---|
| 77 |
|
---|
[ad16af6] | 78 | <para condition="html" role="usernotes">User Notes:
|
---|
[1663c2b5] | 79 | <ulink url='&blfs-wiki;/OpenSSL'/></para>
|
---|
[6473e74] | 80 |
|
---|
[5a5bbbf] | 81 | </sect2>
|
---|
| 82 |
|
---|
| 83 | <sect2 role="installation">
|
---|
| 84 | <title>Installation of OpenSSL</title>
|
---|
| 85 |
|
---|
[fd9dab72] | 86 | <para>To avoid a lot of warnings caused by using a deprecated compilation
|
---|
| 87 | option, run:</para>
|
---|
[eea504f] | 88 |
|
---|
| 89 | <screen><userinput>sed -i -e 's/mcpu/march/' config</userinput></screen>
|
---|
| 90 |
|
---|
| 91 |
|
---|
[5a5bbbf] | 92 | <para>Install <application>OpenSSL</application> by running
|
---|
| 93 | the following commands:</para>
|
---|
| 94 |
|
---|
| 95 | <screen><userinput>patch -Np1 -i ../openssl-&openssl-version;-fix_manpages-1.patch &&
|
---|
[52d29f7] | 96 | ./config --openssldir=/etc/ssl --prefix=/usr shared &&
|
---|
[5a5bbbf] | 97 | make MANDIR=/usr/share/man</userinput></screen>
|
---|
| 98 |
|
---|
| 99 | <para>To test the results, issue: <command>make test</command>.</para>
|
---|
| 100 |
|
---|
| 101 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 102 |
|
---|
| 103 | <screen role="root"><userinput>make MANDIR=/usr/share/man install &&
|
---|
[635cb25] | 104 | cp -v -r certs /etc/ssl &&
|
---|
| 105 | install -v -d -m755 /usr/share/doc/openssl-&openssl-version; &&
|
---|
| 106 | cp -v -r doc/{HOWTO,README,*.{txt,html,gif}} \
|
---|
| 107 | /usr/share/doc/openssl-&openssl-version;</userinput></screen>
|
---|
[5a5bbbf] | 108 |
|
---|
| 109 | </sect2>
|
---|
| 110 |
|
---|
| 111 | <sect2 role="commands">
|
---|
| 112 | <title>Command Explanations</title>
|
---|
| 113 |
|
---|
| 114 | <para><option>no-rc5 no-idea</option>: When added to the
|
---|
| 115 | <command>./config</command> command, this will eliminate the building
|
---|
| 116 | of those encryption methods. Patent licenses may be needed for you to
|
---|
| 117 | utilize either of those methods in your projects.</para>
|
---|
| 118 |
|
---|
| 119 | <para><command>make MANDIR=/usr/share/man; make MANDIR=/usr/share/man
|
---|
| 120 | install</command>: These commands install
|
---|
| 121 | <application>OpenSSL</application> with the man pages in
|
---|
| 122 | <filename class='directory'>/usr/share/man</filename> instead of
|
---|
| 123 | <filename class='directory'>/etc/ssl/man</filename>.</para>
|
---|
| 124 |
|
---|
| 125 | <para><command>cp -v -r certs /etc/ssl</command>: The certificates must
|
---|
[0c4916c] | 126 | be copied manually as the default installation skips this step.</para>
|
---|
[5a5bbbf] | 127 |
|
---|
| 128 | </sect2>
|
---|
| 129 |
|
---|
| 130 | <sect2 role="configuration">
|
---|
| 131 | <title>Configuring OpenSSL</title>
|
---|
| 132 |
|
---|
| 133 | <sect3 id="openssl-config">
|
---|
| 134 | <title>Config Files</title>
|
---|
| 135 |
|
---|
| 136 | <para><filename>/etc/ssl/openssl.cnf</filename></para>
|
---|
| 137 |
|
---|
| 138 | <indexterm zone="openssl openssl-config">
|
---|
| 139 | <primary sortas="e-etc-ssl-openssl.cnf">/etc/ssl/openssl.cnf</primary>
|
---|
| 140 | </indexterm>
|
---|
| 141 |
|
---|
| 142 | </sect3>
|
---|
| 143 |
|
---|
| 144 | <sect3>
|
---|
| 145 | <title>Configuration Information</title>
|
---|
| 146 |
|
---|
| 147 | <para>Most people who just want to use <application>OpenSSL</application>
|
---|
| 148 | for providing functions to other programs such as
|
---|
| 149 | <application>OpenSSH</application> and web browsers won't need to worry
|
---|
| 150 | about configuring <application>OpenSSL</application>. Configuring
|
---|
| 151 | <application>OpenSSL</application> is an advanced topic and so those
|
---|
| 152 | who do would normally be expected to either know how to do it or to be
|
---|
| 153 | able to find out how to do it.</para>
|
---|
| 154 |
|
---|
| 155 | </sect3>
|
---|
| 156 |
|
---|
| 157 | </sect2>
|
---|
| 158 |
|
---|
| 159 | <sect2 role="content">
|
---|
| 160 | <title>Contents</title>
|
---|
| 161 |
|
---|
| 162 | <segmentedlist>
|
---|
| 163 | <segtitle>Installed Programs</segtitle>
|
---|
| 164 | <segtitle>Installed Libraries</segtitle>
|
---|
| 165 | <segtitle>Installed Directories</segtitle>
|
---|
| 166 |
|
---|
| 167 | <seglistitem>
|
---|
[635cb25] | 168 | <seg>c_rehash and openssl</seg>
|
---|
[3597eb6] | 169 | <seg>libcrypto.{so,a} and libssl.{so,a}</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>
|
---|