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