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