[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
|
---|
[17f36b0] | 8 | "https://openssl.org/source/openssl-&openssl-version;.tar.gz">
|
---|
[bbdb0d16] | 9 | <!ENTITY openssl-download-ftp
|
---|
[17f36b0] | 10 | "ftp://openssl.org/source/openssl-&openssl-version;.tar.gz">
|
---|
[c4888aa6] | 11 | <!ENTITY openssl-md5sum "a06c547dac9044161a477211049f60ef">
|
---|
[17f36b0] | 12 | <!ENTITY openssl-size "5.1 MB">
|
---|
[c4888aa6] | 13 | <!ENTITY openssl-buildsize "67 MB (additional 1 MB for the tests)">
|
---|
| 14 | <!ENTITY openssl-time "1.1 SBU (additional 0.3 SBU for the tests)">
|
---|
[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 |
|
---|
[3776752] | 42 | &lfs77_checked; &gcc5_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>
|
---|
[4c39aff] | 79 | <itemizedlist spacing="compact">
|
---|
[5a5bbbf] | 80 | <listitem>
|
---|
[bbdb0d16] | 81 | <para>
|
---|
[4f746dd] | 82 | Required patch:
|
---|
[6034778] | 83 | <ulink url="&patch-root;/openssl-&openssl-version;-fix_parallel_build-2.patch"/>
|
---|
[4f746dd] | 84 | </para>
|
---|
| 85 | </listitem>
|
---|
[5a5bbbf] | 86 | </itemizedlist>
|
---|
| 87 |
|
---|
| 88 | <bridgehead renderas="sect3">OpenSSL Dependencies</bridgehead>
|
---|
| 89 |
|
---|
| 90 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[bbdb0d16] | 91 | <para role="optional">
|
---|
[4c39aff] | 92 | <xref linkend="mitkrb"/>
|
---|
[bbdb0d16] | 93 | </para>
|
---|
[5a5bbbf] | 94 |
|
---|
[bbdb0d16] | 95 | <para condition="html" role="usernotes">
|
---|
| 96 | User Notes: <ulink url='&blfs-wiki;/OpenSSL'/>
|
---|
| 97 | </para>
|
---|
[5a5bbbf] | 98 | </sect2>
|
---|
| 99 |
|
---|
| 100 | <sect2 role="installation">
|
---|
| 101 | <title>Installation of OpenSSL</title>
|
---|
| 102 |
|
---|
[bbdb0d16] | 103 | <para>
|
---|
[d5d39eb] | 104 | Install <application>OpenSSL</application> with the following commands:
|
---|
[bbdb0d16] | 105 | </para>
|
---|
[5a5bbbf] | 106 |
|
---|
[f82ac3f] | 107 | <!-- libdir=lib so it doesn't write over /usr/lib64 symlink on 64 bit system.
|
---|
| 108 | Might break packaging. -->
|
---|
| 109 |
|
---|
[58a8d7a4] | 110 | <screen><userinput>patch -Np1 -i ../openssl-&openssl-version;-fix_parallel_build-2.patch &&
|
---|
[cacae795] | 111 |
|
---|
[c96921c] | 112 | ./config --prefix=/usr \
|
---|
| 113 | --openssldir=/etc/ssl \
|
---|
[202d18d] | 114 | --libdir=lib \
|
---|
[c96921c] | 115 | shared \
|
---|
| 116 | zlib-dynamic &&
|
---|
[a181baeb] | 117 | make</userinput></screen>
|
---|
| 118 |
|
---|
[bbdb0d16] | 119 | <para>
|
---|
[c4888aa6] | 120 | To test the results, issue: <command>make -j1 test</command>.
|
---|
[bbdb0d16] | 121 | </para>
|
---|
| 122 |
|
---|
| 123 | <para>
|
---|
| 124 | If you want to disable installing the static libraries, use this sed:
|
---|
| 125 | </para>
|
---|
[5a5bbbf] | 126 |
|
---|
[bbdb0d16] | 127 | <screen><userinput>sed -i 's# libcrypto.a##;s# libssl.a##' Makefile</userinput></screen>
|
---|
| 128 |
|
---|
| 129 | <para>
|
---|
| 130 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 131 | </para>
|
---|
[5a5bbbf] | 132 |
|
---|
[1faedf0] | 133 | <!-- dev note: make INSTALL_PREFIX=<DESTDIR> MANDIR=/usr/share/man MANSUFFIX=ssl install -->
|
---|
| 134 |
|
---|
[25a105fe] | 135 | <screen role="root"><userinput>make MANDIR=/usr/share/man MANSUFFIX=ssl install &&
|
---|
[d6b6ecb] | 136 | install -dv -m755 /usr/share/doc/openssl-&openssl-version; &&
|
---|
[4c39aff] | 137 | cp -vfr doc/* /usr/share/doc/openssl-&openssl-version;</userinput></screen>
|
---|
| 138 |
|
---|
[5a5bbbf] | 139 | </sect2>
|
---|
| 140 |
|
---|
| 141 | <sect2 role="commands">
|
---|
| 142 | <title>Command Explanations</title>
|
---|
| 143 |
|
---|
[bbdb0d16] | 144 | <para>
|
---|
| 145 | <parameter>shared</parameter>: This parameter forces the creation of
|
---|
| 146 | shared libraries along with the static libraries.
|
---|
| 147 | </para>
|
---|
| 148 |
|
---|
| 149 | <para>
|
---|
| 150 | <parameter>zlib-dynamic</parameter>: This parameter adds
|
---|
| 151 | compression/decompression functionality using the
|
---|
| 152 | <filename class="libraryfile">libz</filename> library.
|
---|
| 153 | </para>
|
---|
| 154 |
|
---|
| 155 | <para>
|
---|
| 156 | <option>no-rc5 no-idea</option>: When added to the
|
---|
| 157 | <command>./config</command> command, this will eliminate the building
|
---|
| 158 | of those encryption methods. Patent licenses may be needed for you to
|
---|
| 159 | utilize either of those methods in your projects.
|
---|
| 160 | </para>
|
---|
| 161 |
|
---|
| 162 | <para>
|
---|
[d6b6ecb] | 163 | <command>make MANDIR=/usr/share/man MANSUFFIX=ssl install</command>:
|
---|
| 164 | This command installs <application>OpenSSL</application> with the man
|
---|
| 165 | pages in <filename class="directory">/usr/share/man</filename>
|
---|
| 166 | instead of <filename class="directory">/etc/ssl/man</filename> and
|
---|
| 167 | appends "ssl" suffix to the manual page names to avoid conflicts with
|
---|
| 168 | manual pages installed by other packages.
|
---|
[bbdb0d16] | 169 | </para>
|
---|
[4c39aff] | 170 |
|
---|
[5a5bbbf] | 171 | </sect2>
|
---|
| 172 |
|
---|
| 173 | <sect2 role="configuration">
|
---|
| 174 | <title>Configuring OpenSSL</title>
|
---|
| 175 |
|
---|
| 176 | <sect3 id="openssl-config">
|
---|
| 177 | <title>Config Files</title>
|
---|
| 178 |
|
---|
[bbdb0d16] | 179 | <para>
|
---|
[d5d39eb] | 180 | <filename>/etc/ssl/openssl.cnf</filename>
|
---|
[bbdb0d16] | 181 | </para>
|
---|
[5a5bbbf] | 182 |
|
---|
| 183 | <indexterm zone="openssl openssl-config">
|
---|
| 184 | <primary sortas="e-etc-ssl-openssl.cnf">/etc/ssl/openssl.cnf</primary>
|
---|
| 185 | </indexterm>
|
---|
[4c39aff] | 186 |
|
---|
[5a5bbbf] | 187 | </sect3>
|
---|
[d5d39eb] | 188 |
|
---|
[5a5bbbf] | 189 | <sect3>
|
---|
| 190 | <title>Configuration Information</title>
|
---|
| 191 |
|
---|
[bbdb0d16] | 192 | <para>
|
---|
| 193 | Most users will want to install Certificate Authority Certificates
|
---|
[5f91dfd] | 194 | for validation of downloaded certificates. For example, these
|
---|
[d5d39eb] | 195 | certificates can be used by <xref linkend='git'/>,
|
---|
| 196 | <xref linkend='curl'/> or <xref linkend='wget'/> when accessing secure
|
---|
| 197 | (https protocol) sites. To do this, follow the instructions from the
|
---|
| 198 | <xref linkend='cacerts'/> page.
|
---|
[0d7900a] | 199 | </para>
|
---|
[bbdb0d16] | 200 |
|
---|
| 201 | <para>
|
---|
| 202 | Users who just want to use <application>OpenSSL</application> for
|
---|
| 203 | providing functions to other programs such as
|
---|
| 204 | <application>OpenSSH</application> and web browsers do not need to worry
|
---|
| 205 | about additional configuration. This is an advanced topic and so those
|
---|
| 206 | who do need it would normally be expected to either know how to properly
|
---|
| 207 | update <filename>/etc/ssl/openssl.cnf</filename> or be able to find out
|
---|
| 208 | how to do it.
|
---|
| 209 | </para>
|
---|
[4c39aff] | 210 |
|
---|
[5a5bbbf] | 211 | </sect3>
|
---|
[4c39aff] | 212 |
|
---|
[5a5bbbf] | 213 | </sect2>
|
---|
| 214 |
|
---|
| 215 | <sect2 role="content">
|
---|
| 216 | <title>Contents</title>
|
---|
| 217 |
|
---|
| 218 | <segmentedlist>
|
---|
| 219 | <segtitle>Installed Programs</segtitle>
|
---|
| 220 | <segtitle>Installed Libraries</segtitle>
|
---|
| 221 | <segtitle>Installed Directories</segtitle>
|
---|
| 222 |
|
---|
| 223 | <seglistitem>
|
---|
[bbdb0d16] | 224 | <seg>
|
---|
[4c39aff] | 225 | c_rehash and openssl
|
---|
[d5d39eb] | 226 | </seg>
|
---|
| 227 | <seg>
|
---|
[4de0151] | 228 | libcrypto.{so,a} and libssl.{so,a}
|
---|
[4c39aff] | 229 | </seg>
|
---|
| 230 | <seg>
|
---|
| 231 | /etc/ssl,
|
---|
| 232 | /usr/include/openssl,
|
---|
| 233 | /usr/lib/engines and
|
---|
| 234 | /usr/share/doc/openssl-&openssl-version;
|
---|
[bbdb0d16] | 235 | </seg>
|
---|
[5a5bbbf] | 236 | </seglistitem>
|
---|
| 237 | </segmentedlist>
|
---|
| 238 |
|
---|
| 239 | <variablelist>
|
---|
| 240 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 241 | <?dbfo list-presentation="list"?>
|
---|
| 242 | <?dbhtml list-presentation="table"?>
|
---|
| 243 |
|
---|
| 244 | <varlistentry id="c_rehash">
|
---|
| 245 | <term><command>c_rehash</command></term>
|
---|
| 246 | <listitem>
|
---|
[bbdb0d16] | 247 | <para>
|
---|
| 248 | is a <application>Perl</application> script that scans all files in
|
---|
| 249 | a directory and adds symbolic links to their hash values.
|
---|
| 250 | </para>
|
---|
[5a5bbbf] | 251 | <indexterm zone="openssl c_rehash">
|
---|
| 252 | <primary sortas="b-c_rehash">c_rehash</primary>
|
---|
| 253 | </indexterm>
|
---|
| 254 | </listitem>
|
---|
| 255 | </varlistentry>
|
---|
| 256 |
|
---|
| 257 | <varlistentry id="openssl-prog">
|
---|
| 258 | <term><command>openssl</command></term>
|
---|
| 259 | <listitem>
|
---|
[bbdb0d16] | 260 | <para>
|
---|
| 261 | is a command-line tool for using the various cryptography functions
|
---|
| 262 | of <application>OpenSSL</application>'s crypto library from the
|
---|
| 263 | shell. It can be used for various functions which are documented in
|
---|
| 264 | <command>man 1 openssl</command>.
|
---|
| 265 | </para>
|
---|
[5a5bbbf] | 266 | <indexterm zone="openssl openssl-prog">
|
---|
| 267 | <primary sortas="b-openssl">openssl</primary>
|
---|
| 268 | </indexterm>
|
---|
| 269 | </listitem>
|
---|
| 270 | </varlistentry>
|
---|
| 271 |
|
---|
| 272 | <varlistentry id="libcrypto">
|
---|
[4c39aff] | 273 | <term><filename class="libraryfile">libcrypto.{so,a}</filename></term>
|
---|
[5a5bbbf] | 274 | <listitem>
|
---|
[bbdb0d16] | 275 | <para>
|
---|
| 276 | implements a wide range of cryptographic algorithms used in various
|
---|
| 277 | Internet standards. The services provided by this library are used
|
---|
| 278 | by the <application>OpenSSL</application> implementations of SSL,
|
---|
| 279 | TLS and S/MIME, and they have also been used to implement
|
---|
| 280 | <application>OpenSSH</application>,
|
---|
| 281 | <application>OpenPGP</application>, and other cryptographic
|
---|
| 282 | standards.
|
---|
| 283 | </para>
|
---|
[5a5bbbf] | 284 | <indexterm zone="openssl libcrypto">
|
---|
[3597eb6] | 285 | <primary sortas="c-libcrypto">libcrypto.{so,a}</primary>
|
---|
[5a5bbbf] | 286 | </indexterm>
|
---|
| 287 | </listitem>
|
---|
| 288 | </varlistentry>
|
---|
| 289 |
|
---|
| 290 | <varlistentry id="libssl">
|
---|
[4c39aff] | 291 | <term><filename class="libraryfile">libssl.{so,a}</filename></term>
|
---|
[5a5bbbf] | 292 | <listitem>
|
---|
[bbdb0d16] | 293 | <para>
|
---|
| 294 | implements the Secure Sockets Layer (SSL v2/v3) and Transport Layer
|
---|
| 295 | Security (TLS v1) protocols. It provides a rich API, documentation
|
---|
| 296 | on which can be found by running <command>man 3 ssl</command>.
|
---|
| 297 | </para>
|
---|
[5a5bbbf] | 298 | <indexterm zone="openssl libssl">
|
---|
[3597eb6] | 299 | <primary sortas="c-libssl">libssl.{so,a}</primary>
|
---|
[5a5bbbf] | 300 | </indexterm>
|
---|
| 301 | </listitem>
|
---|
| 302 | </varlistentry>
|
---|
[4c39aff] | 303 |
|
---|
[5a5bbbf] | 304 | </variablelist>
|
---|
[4c39aff] | 305 |
|
---|
[5a5bbbf] | 306 | </sect2>
|
---|
[4c39aff] | 307 |
|
---|
[f45b1953] | 308 | </sect1>
|
---|