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