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