[7152faa] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[e5474751] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-openssl" role="wrap">
|
---|
| 9 | <?dbhtml filename="openssl.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info condition="script">
|
---|
| 12 | <productname>openssl</productname>
|
---|
| 13 | <productnumber>&openssl-version;</productnumber>
|
---|
| 14 | <address>&openssl-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
| 17 | <title>OpenSSL-&openssl-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-openssl">
|
---|
| 20 | <primary sortas="a-OpenSSL">OpenSSL</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
| 25 |
|
---|
| 26 | <para>The OpenSSL package contains management tools and libraries relating
|
---|
| 27 | to cryptography. These are useful for providing cryptographic functions
|
---|
[6dfcfecc] | 28 | to other packages, such as OpenSSH, email applications, and web browsers
|
---|
[e5474751] | 29 | (for accessing HTTPS sites). </para>
|
---|
| 30 |
|
---|
| 31 | <segmentedlist>
|
---|
| 32 | <segtitle>&buildtime;</segtitle>
|
---|
| 33 | <segtitle>&diskspace;</segtitle>
|
---|
| 34 |
|
---|
| 35 | <seglistitem>
|
---|
[6dfcfecc] | 36 | <seg>&openssl-fin-sbu;</seg>
|
---|
| 37 | <seg>&openssl-fin-du;</seg>
|
---|
[e5474751] | 38 | </seglistitem>
|
---|
| 39 | </segmentedlist>
|
---|
| 40 |
|
---|
| 41 | </sect2>
|
---|
| 42 |
|
---|
| 43 | <sect2 role="installation">
|
---|
| 44 | <title>Installation of OpenSSL</title>
|
---|
[f1b9d9d] | 45 | <!--
|
---|
[e5e442c] | 46 | <para>First fix a problem with some advanced architectures with avx512
|
---|
[0d80e532] | 47 | capability:</para>
|
---|
| 48 |
|
---|
| 49 | <screen><userinput remap="pre">sed -e '/bn_reduce.*m1/i\ factor_size /= sizeof(BN_ULONG) * 8;' \
|
---|
| 50 | -i crypto/bn/rsaz_exp_x2.c</userinput></screen>
|
---|
[f1b9d9d] | 51 | -->
|
---|
[e5474751] | 52 | <para>Prepare OpenSSL for compilation:</para>
|
---|
| 53 |
|
---|
| 54 | <screen><userinput remap="configure">./config --prefix=/usr \
|
---|
| 55 | --openssldir=/etc/ssl \
|
---|
| 56 | --libdir=lib \
|
---|
| 57 | shared \
|
---|
| 58 | zlib-dynamic</userinput></screen>
|
---|
| 59 |
|
---|
| 60 | <para>Compile the package:</para>
|
---|
| 61 |
|
---|
| 62 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 63 |
|
---|
| 64 | <para>To test the results, issue:</para>
|
---|
| 65 |
|
---|
[3a8d182] | 66 | <screen><userinput remap="test">HARNESS_JOBS=<replaceable>$(nproc)</replaceable> make test</userinput></screen>
|
---|
[d7f58cc] | 67 |
|
---|
[ed48f326] | 68 | <para>One test, 30-test_afalg.t, is known to fail if the host kernel
|
---|
| 69 | does not have <option>CONFIG_CRYPTO_USER_API_SKCIPHER</option> enabled,
|
---|
| 70 | or does not have any options providing an AES with CBC implementation
|
---|
| 71 | (for example, the combination of <option>CONFIG_CRYPTO_AES</option>
|
---|
| 72 | and <option>CONFIG_CRYPTO_CBC</option>, or
|
---|
| 73 | <option>CONFIG_CRYPTO_AES_NI_INTEL</option> if the CPU supports AES-NI)
|
---|
| 74 | enabled. If it fails, it can safely be ignored.</para>
|
---|
[d7f58cc] | 75 |
|
---|
[e5474751] | 76 | <para>Install the package:</para>
|
---|
| 77 |
|
---|
| 78 | <screen><userinput remap="install">sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile
|
---|
| 79 | make MANSUFFIX=ssl install</userinput></screen>
|
---|
| 80 |
|
---|
[38de42d] | 81 | <para>Add the version to the documentation directory name, to be
|
---|
| 82 | consistent with other packages:</para>
|
---|
[e5474751] | 83 |
|
---|
[38de42d] | 84 | <screen><userinput remap="install">mv -v /usr/share/doc/openssl /usr/share/doc/openssl-&openssl-version;</userinput></screen>
|
---|
| 85 |
|
---|
| 86 | <para>If desired, install some additional documentation:</para>
|
---|
| 87 |
|
---|
| 88 | <screen><userinput remap="install">cp -vfr doc/* /usr/share/doc/openssl-&openssl-version;</userinput></screen>
|
---|
[e5474751] | 89 |
|
---|
[6df63e4] | 90 | <note>
|
---|
| 91 | <para>
|
---|
| 92 | You should update OpenSSL when a new version which fixes vulnerabilities
|
---|
[0d7dbaf] | 93 | is announced. Since OpenSSL 3.0.0, the OpenSSL versioning scheme
|
---|
| 94 | follows the MAJOR.MINOR.PATCH format. API/ABI compatibility
|
---|
[5042efcc] | 95 | is guaranteed for the same MAJOR version number. Because LFS
|
---|
[0d7dbaf] | 96 | installs only the shared libraries, there is no need to recompile
|
---|
| 97 | packages which link to
|
---|
| 98 | <filename class="libraryfile">libcrypto.so</filename> or
|
---|
[6df63e4] | 99 | <filename class="libraryfile">libssl.so</filename>
|
---|
[5042efcc] | 100 | <emphasis>when upgrading to a version with the same MAJOR version
|
---|
| 101 | number</emphasis>.
|
---|
[6df63e4] | 102 | </para>
|
---|
| 103 |
|
---|
| 104 | <para>
|
---|
| 105 | However, any running programs linked to those libraries need to be stopped
|
---|
[59fef4c] | 106 | and restarted. Read the related entries in
|
---|
| 107 | <xref linkend='pkgmgmt-upgrade-issues'/> for details.
|
---|
[6df63e4] | 108 | </para>
|
---|
| 109 |
|
---|
| 110 | </note>
|
---|
| 111 |
|
---|
[e5474751] | 112 | </sect2>
|
---|
| 113 |
|
---|
[6dfcfecc] | 114 | <!-- - - - - - - - - - -->
|
---|
| 115 | <!-- Multilib - 32bit -->
|
---|
| 116 | <!-- - - - - - - - - - -->
|
---|
[fd48baa] | 117 |
|
---|
| 118 | <sect2 arch="ml_32,ml_all" role="installation">
|
---|
[6dfcfecc] | 119 | <title>Installation of OpenSSL - 32bit</title>
|
---|
[b3f1ebb3] | 120 |
|
---|
| 121 | <para>Clean previous build:</para>
|
---|
| 122 |
|
---|
| 123 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
| 124 |
|
---|
| 125 | <para>Prepare OpenSSL for compilation:</para>
|
---|
| 126 |
|
---|
[adcaa44d] | 127 | <screen><userinput remap="configure">./config --prefix=/usr \
|
---|
[9d1c903] | 128 | --openssldir=/etc/ssl \
|
---|
| 129 | --libdir=lib32 \
|
---|
| 130 | shared \
|
---|
| 131 | zlib-dynamic \
|
---|
[adcaa44d] | 132 | linux-x86</userinput></screen>
|
---|
[b3f1ebb3] | 133 |
|
---|
| 134 | <para>Compile the package:</para>
|
---|
| 135 |
|
---|
| 136 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[6dfcfecc] | 137 |
|
---|
[b3f1ebb3] | 138 | <para>Install the package:</para>
|
---|
| 139 |
|
---|
| 140 | <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
|
---|
[0ebda11] | 141 | cp -Rv DESTDIR/usr/lib32/* /usr/lib32
|
---|
[b3f1ebb3] | 142 | rm -rf DESTDIR</userinput></screen>
|
---|
| 143 |
|
---|
[6dfcfecc] | 144 | </sect2><!-- m32 -->
|
---|
[b3f1ebb3] | 145 |
|
---|
[6dfcfecc] | 146 | <!-- - - - - - - - - - -->
|
---|
| 147 | <!-- Multilib - x32bit -->
|
---|
| 148 | <!-- - - - - - - - - - -->
|
---|
[fd48baa] | 149 |
|
---|
| 150 | <sect2 arch="ml_x32,ml_all" role="installation">
|
---|
[6dfcfecc] | 151 | <title>Installation of OpenSSL - x32bit</title>
|
---|
[b3f1ebb3] | 152 |
|
---|
| 153 | <para>Clean previous build:</para>
|
---|
| 154 |
|
---|
| 155 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
| 156 |
|
---|
| 157 | <para>Prepare OpenSSL for compilation:</para>
|
---|
| 158 |
|
---|
[adcaa44d] | 159 | <screen><userinput remap="configure">./config --prefix=/usr \
|
---|
[9d1c903] | 160 | --openssldir=/etc/ssl \
|
---|
| 161 | --libdir=libx32 \
|
---|
| 162 | shared \
|
---|
| 163 | zlib-dynamic \
|
---|
| 164 | linux-x32</userinput></screen>
|
---|
[b3f1ebb3] | 165 |
|
---|
| 166 | <para>Compile the package:</para>
|
---|
| 167 |
|
---|
| 168 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[6dfcfecc] | 169 |
|
---|
[b3f1ebb3] | 170 | <para>Install the package:</para>
|
---|
| 171 |
|
---|
| 172 | <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
|
---|
[0ebda11] | 173 | cp -Rv DESTDIR/usr/libx32/* /usr/libx32
|
---|
[b3f1ebb3] | 174 | rm -rf DESTDIR</userinput></screen>
|
---|
| 175 |
|
---|
[6dfcfecc] | 176 | </sect2><!-- mx32 -->
|
---|
[b3f1ebb3] | 177 |
|
---|
[e5474751] | 178 | <sect2 id="contents-openssl" role="content">
|
---|
| 179 | <title>Contents of OpenSSL</title>
|
---|
| 180 |
|
---|
| 181 | <segmentedlist>
|
---|
| 182 | <segtitle>Installed programs</segtitle>
|
---|
| 183 | <segtitle>Installed libraries</segtitle>
|
---|
| 184 | <segtitle>Installed directories</segtitle>
|
---|
| 185 |
|
---|
| 186 | <seglistitem>
|
---|
| 187 | <seg>
|
---|
| 188 | c_rehash and openssl
|
---|
| 189 | </seg>
|
---|
| 190 | <seg>
|
---|
[032dc4e8] | 191 | libcrypto.so and libssl.so
|
---|
[e5474751] | 192 | </seg>
|
---|
| 193 | <seg>
|
---|
| 194 | /etc/ssl,
|
---|
| 195 | /usr/include/openssl,
|
---|
| 196 | /usr/lib/engines and
|
---|
| 197 | /usr/share/doc/openssl-&openssl-version;
|
---|
| 198 | </seg>
|
---|
| 199 | </seglistitem>
|
---|
| 200 | </segmentedlist>
|
---|
| 201 |
|
---|
| 202 | <variablelist>
|
---|
| 203 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 204 | <?dbfo list-presentation="list"?>
|
---|
| 205 | <?dbhtml list-presentation="table"?>
|
---|
| 206 |
|
---|
| 207 | <varlistentry id="c_rehash">
|
---|
| 208 | <term><command>c_rehash</command></term>
|
---|
| 209 | <listitem>
|
---|
| 210 | <para>
|
---|
[0b0fa07] | 211 | is a <application>Perl</application> script that
|
---|
| 212 | scans all files in a directory and adds symbolic links to their
|
---|
| 213 | hash values. Use of <command>c_rehash</command> is considered
|
---|
| 214 | obsolete and should be replaced by
|
---|
| 215 | <command>openssl rehash</command> command
|
---|
[e5474751] | 216 | </para>
|
---|
| 217 | <indexterm zone="ch-system-openssl c_rehash">
|
---|
| 218 | <primary sortas="b-c_rehash">c_rehash</primary>
|
---|
| 219 | </indexterm>
|
---|
| 220 | </listitem>
|
---|
| 221 | </varlistentry>
|
---|
| 222 |
|
---|
| 223 | <varlistentry id="openssl-prog">
|
---|
| 224 | <term><command>openssl</command></term>
|
---|
| 225 | <listitem>
|
---|
| 226 | <para>
|
---|
| 227 | is a command-line tool for using the various cryptography functions
|
---|
| 228 | of <application>OpenSSL</application>'s crypto library from the
|
---|
| 229 | shell. It can be used for various functions which are documented in
|
---|
[ea93c11] | 230 | <ulink role='man' url='&man;openssl.1'>openssl(1)</ulink>
|
---|
[e5474751] | 231 | </para>
|
---|
| 232 | <indexterm zone="ch-system-openssl openssl-prog">
|
---|
| 233 | <primary sortas="b-openssl">openssl</primary>
|
---|
| 234 | </indexterm>
|
---|
| 235 | </listitem>
|
---|
| 236 | </varlistentry>
|
---|
| 237 |
|
---|
| 238 | <varlistentry id="libcrypto">
|
---|
| 239 | <term><filename class="libraryfile">libcrypto.so</filename></term>
|
---|
| 240 | <listitem>
|
---|
| 241 | <para>
|
---|
| 242 | implements a wide range of cryptographic algorithms used in various
|
---|
| 243 | Internet standards. The services provided by this library are used
|
---|
| 244 | by the <application>OpenSSL</application> implementations of SSL,
|
---|
| 245 | TLS and S/MIME, and they have also been used to implement
|
---|
| 246 | <application>OpenSSH</application>,
|
---|
| 247 | <application>OpenPGP</application>, and other cryptographic
|
---|
[4c8c128] | 248 | standards
|
---|
[e5474751] | 249 | </para>
|
---|
| 250 | <indexterm zone="ch-system-openssl libcrypto">
|
---|
| 251 | <primary sortas="c-libcrypto">libcrypto.so</primary>
|
---|
| 252 | </indexterm>
|
---|
| 253 | </listitem>
|
---|
| 254 | </varlistentry>
|
---|
| 255 |
|
---|
| 256 | <varlistentry id="libssl">
|
---|
| 257 | <term><filename class="libraryfile">libssl.so</filename></term>
|
---|
| 258 | <listitem>
|
---|
| 259 | <para>
|
---|
| 260 | implements the Transport Layer Security (TLS v1) protocol.
|
---|
| 261 | It provides a rich API, documentation
|
---|
[ea93c11] | 262 | on which can be found in <ulink role='man'
|
---|
| 263 | url='&man;ssl.7'>ssl(7)</ulink>
|
---|
[e5474751] | 264 | </para>
|
---|
| 265 | <indexterm zone="ch-system-openssl libssl">
|
---|
| 266 | <primary sortas="c-libssl">libssl.so</primary>
|
---|
| 267 | </indexterm>
|
---|
| 268 | </listitem>
|
---|
| 269 | </varlistentry>
|
---|
| 270 |
|
---|
| 271 | </variablelist>
|
---|
| 272 |
|
---|
| 273 | </sect2>
|
---|
| 274 |
|
---|
| 275 | </sect1>
|
---|