[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>
|
---|
| 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="bc"/> (required for full coverage by the test suite during
|
---|
[4c39aff] | 93 | the build) and
|
---|
| 94 | <xref linkend="mitkrb"/>
|
---|
[bbdb0d16] | 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 &&
|
---|
[c96921c] | 110 |
|
---|
| 111 | ./config --prefix=/usr \
|
---|
| 112 | --openssldir=/etc/ssl \
|
---|
| 113 | shared \
|
---|
| 114 | zlib-dynamic &&
|
---|
[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 |
|
---|
[4c39aff] | 131 | <screen role="root"><userinput>make MANDIR=/usr/share/man install &&
|
---|
| 132 | install -dv -m755 /usr/share/doc/openssl-&openssl-version; &&
|
---|
| 133 | cp -vfr doc/* /usr/share/doc/openssl-&openssl-version;</userinput></screen>
|
---|
| 134 |
|
---|
[5a5bbbf] | 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>
|
---|
[4c39aff] | 164 |
|
---|
[5a5bbbf] | 165 | </sect2>
|
---|
| 166 |
|
---|
| 167 | <sect2 role="configuration">
|
---|
| 168 | <title>Configuring OpenSSL</title>
|
---|
| 169 |
|
---|
| 170 | <sect3 id="openssl-config">
|
---|
| 171 | <title>Config Files</title>
|
---|
| 172 |
|
---|
[bbdb0d16] | 173 | <para>
|
---|
[d5d39eb] | 174 | <filename>/etc/ssl/openssl.cnf</filename>
|
---|
[bbdb0d16] | 175 | </para>
|
---|
[5a5bbbf] | 176 |
|
---|
| 177 | <indexterm zone="openssl openssl-config">
|
---|
| 178 | <primary sortas="e-etc-ssl-openssl.cnf">/etc/ssl/openssl.cnf</primary>
|
---|
| 179 | </indexterm>
|
---|
[4c39aff] | 180 |
|
---|
[5a5bbbf] | 181 | </sect3>
|
---|
[d5d39eb] | 182 |
|
---|
[5a5bbbf] | 183 | <sect3>
|
---|
| 184 | <title>Configuration Information</title>
|
---|
| 185 |
|
---|
[bbdb0d16] | 186 | <para>
|
---|
| 187 | Most users will want to install Certificate Authority Certificates
|
---|
[5f91dfd] | 188 | for validation of downloaded certificates. For example, these
|
---|
[d5d39eb] | 189 | certificates can be used by <xref linkend='git'/>,
|
---|
| 190 | <xref linkend='curl'/> or <xref linkend='wget'/> when accessing secure
|
---|
| 191 | (https protocol) sites. To do this, follow the instructions from the
|
---|
| 192 | <xref linkend='cacerts'/> page.
|
---|
[0d7900a] | 193 | </para>
|
---|
[bbdb0d16] | 194 |
|
---|
| 195 | <para>
|
---|
| 196 | Users who just want to use <application>OpenSSL</application> for
|
---|
| 197 | providing functions to other programs such as
|
---|
| 198 | <application>OpenSSH</application> and web browsers do not need to worry
|
---|
| 199 | about additional configuration. This is an advanced topic and so those
|
---|
| 200 | who do need it would normally be expected to either know how to properly
|
---|
| 201 | update <filename>/etc/ssl/openssl.cnf</filename> or be able to find out
|
---|
| 202 | how to do it.
|
---|
| 203 | </para>
|
---|
[4c39aff] | 204 |
|
---|
[5a5bbbf] | 205 | </sect3>
|
---|
[4c39aff] | 206 |
|
---|
[5a5bbbf] | 207 | </sect2>
|
---|
| 208 |
|
---|
| 209 | <sect2 role="content">
|
---|
| 210 | <title>Contents</title>
|
---|
| 211 |
|
---|
| 212 | <segmentedlist>
|
---|
| 213 | <segtitle>Installed Programs</segtitle>
|
---|
| 214 | <segtitle>Installed Libraries</segtitle>
|
---|
| 215 | <segtitle>Installed Directories</segtitle>
|
---|
| 216 |
|
---|
| 217 | <seglistitem>
|
---|
[bbdb0d16] | 218 | <seg>
|
---|
[4c39aff] | 219 | c_rehash and openssl
|
---|
[d5d39eb] | 220 | </seg>
|
---|
| 221 | <seg>
|
---|
[4c39aff] | 222 | libcrypto.{so,a} and libssl.{so,a}
|
---|
| 223 | </seg>
|
---|
| 224 | <seg>
|
---|
| 225 | /etc/ssl,
|
---|
| 226 | /usr/include/openssl,
|
---|
| 227 | /usr/lib/engines and
|
---|
| 228 | /usr/share/doc/openssl-&openssl-version;
|
---|
[bbdb0d16] | 229 | </seg>
|
---|
[5a5bbbf] | 230 | </seglistitem>
|
---|
| 231 | </segmentedlist>
|
---|
| 232 |
|
---|
| 233 | <variablelist>
|
---|
| 234 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 235 | <?dbfo list-presentation="list"?>
|
---|
| 236 | <?dbhtml list-presentation="table"?>
|
---|
| 237 |
|
---|
| 238 | <varlistentry id="c_rehash">
|
---|
| 239 | <term><command>c_rehash</command></term>
|
---|
| 240 | <listitem>
|
---|
[bbdb0d16] | 241 | <para>
|
---|
| 242 | is a <application>Perl</application> script that scans all files in
|
---|
| 243 | a directory and adds symbolic links to their hash values.
|
---|
| 244 | </para>
|
---|
[5a5bbbf] | 245 | <indexterm zone="openssl c_rehash">
|
---|
| 246 | <primary sortas="b-c_rehash">c_rehash</primary>
|
---|
| 247 | </indexterm>
|
---|
| 248 | </listitem>
|
---|
| 249 | </varlistentry>
|
---|
| 250 |
|
---|
| 251 | <varlistentry id="openssl-prog">
|
---|
| 252 | <term><command>openssl</command></term>
|
---|
| 253 | <listitem>
|
---|
[bbdb0d16] | 254 | <para>
|
---|
| 255 | is a command-line tool for using the various cryptography functions
|
---|
| 256 | of <application>OpenSSL</application>'s crypto library from the
|
---|
| 257 | shell. It can be used for various functions which are documented in
|
---|
| 258 | <command>man 1 openssl</command>.
|
---|
| 259 | </para>
|
---|
[5a5bbbf] | 260 | <indexterm zone="openssl openssl-prog">
|
---|
| 261 | <primary sortas="b-openssl">openssl</primary>
|
---|
| 262 | </indexterm>
|
---|
| 263 | </listitem>
|
---|
| 264 | </varlistentry>
|
---|
| 265 |
|
---|
| 266 | <varlistentry id="libcrypto">
|
---|
[4c39aff] | 267 | <term><filename class="libraryfile">libcrypto.{so,a}</filename></term>
|
---|
[5a5bbbf] | 268 | <listitem>
|
---|
[bbdb0d16] | 269 | <para>
|
---|
| 270 | implements a wide range of cryptographic algorithms used in various
|
---|
| 271 | Internet standards. The services provided by this library are used
|
---|
| 272 | by the <application>OpenSSL</application> implementations of SSL,
|
---|
| 273 | TLS and S/MIME, and they have also been used to implement
|
---|
| 274 | <application>OpenSSH</application>,
|
---|
| 275 | <application>OpenPGP</application>, and other cryptographic
|
---|
| 276 | standards.
|
---|
| 277 | </para>
|
---|
[5a5bbbf] | 278 | <indexterm zone="openssl libcrypto">
|
---|
[3597eb6] | 279 | <primary sortas="c-libcrypto">libcrypto.{so,a}</primary>
|
---|
[5a5bbbf] | 280 | </indexterm>
|
---|
| 281 | </listitem>
|
---|
| 282 | </varlistentry>
|
---|
| 283 |
|
---|
| 284 | <varlistentry id="libssl">
|
---|
[4c39aff] | 285 | <term><filename class="libraryfile">libssl.{so,a}</filename></term>
|
---|
[5a5bbbf] | 286 | <listitem>
|
---|
[bbdb0d16] | 287 | <para>
|
---|
| 288 | implements the Secure Sockets Layer (SSL v2/v3) and Transport Layer
|
---|
| 289 | Security (TLS v1) protocols. It provides a rich API, documentation
|
---|
| 290 | on which can be found by running <command>man 3 ssl</command>.
|
---|
| 291 | </para>
|
---|
[5a5bbbf] | 292 | <indexterm zone="openssl libssl">
|
---|
[3597eb6] | 293 | <primary sortas="c-libssl">libssl.{so,a}</primary>
|
---|
[5a5bbbf] | 294 | </indexterm>
|
---|
| 295 | </listitem>
|
---|
| 296 | </varlistentry>
|
---|
[4c39aff] | 297 |
|
---|
[5a5bbbf] | 298 | </variablelist>
|
---|
[4c39aff] | 299 |
|
---|
[5a5bbbf] | 300 | </sect2>
|
---|
[4c39aff] | 301 |
|
---|
[f45b1953] | 302 | </sect1>
|
---|