[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY openssl-download-http "http://www.openssl.org/source/openssl-&openssl-version;.tar.gz">
|
---|
| 8 | <!ENTITY openssl-download-ftp "ftp://ftp.openssl.org/source/openssl-&openssl-version;.tar.gz">
|
---|
[843cc38c] | 9 | <!ENTITY openssl-md5sum "a8777164bca38d84e5eb2b1535223474">
|
---|
[e4cac96f] | 10 | <!ENTITY openssl-size "3.0 MB">
|
---|
| 11 | <!ENTITY openssl-buildsize "35 MB">
|
---|
[52d29f7] | 12 | <!ENTITY openssl-time "1.16 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
[cef3a2f] | 15 | <sect1 id="openssl" xreflabel="OpenSSL-&openssl-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[7f72cbf] | 20 | <?dbhtml filename="openssl.html"?>
|
---|
[984a23f] | 21 | <title>OpenSSL-&openssl-version;</title>
|
---|
[cef3a2f] | 22 | <indexterm zone="openssl">
|
---|
| 23 | <primary sortas="a-OpenSSL">OpenSSL</primary></indexterm>
|
---|
[f45b1953] | 24 |
|
---|
[52d29f7] | 25 | <sect2>
|
---|
[5b5ecb9] | 26 | <title>Introduction to <application>Open<acronym>SSL</acronym></application>
|
---|
| 27 | </title>
|
---|
[396508b] | 28 |
|
---|
[939cf0da] | 29 | <para>The <application>Open<acronym>SSL</acronym></application> package
|
---|
| 30 | contains management tools and libraries relating to cryptography. These are
|
---|
| 31 | useful for providing cryptography functions to other packages, notably
|
---|
[5b5ecb9] | 32 | <application>OpenSSH</application>, email applications and web browsers (for
|
---|
[e4cac96f] | 33 | accessing <acronym>HTTPS</acronym> sites).</para>
|
---|
[396508b] | 34 |
|
---|
[52d29f7] | 35 | <sect3><title>Package information</title>
|
---|
| 36 | <itemizedlist spacing='compact'>
|
---|
[939cf0da] | 37 | <listitem><para>Download (HTTP):
|
---|
| 38 | <ulink url="&openssl-download-http;"/></para></listitem>
|
---|
| 39 | <listitem><para>Download (FTP):
|
---|
| 40 | <ulink url="&openssl-download-ftp;"/></para></listitem>
|
---|
[843cc38c] | 41 | <listitem><para>Download MD5 sum: &openssl-md5sum;</para></listitem>
|
---|
[52d29f7] | 42 | <listitem><para>Download size: &openssl-size;</para></listitem>
|
---|
[939cf0da] | 43 | <listitem><para>Estimated disk space required:
|
---|
| 44 | &openssl-buildsize;</para></listitem>
|
---|
| 45 | <listitem><para>Estimated build time:
|
---|
| 46 | &openssl-time;</para></listitem></itemizedlist>
|
---|
[52d29f7] | 47 | </sect3>
|
---|
[5b5ecb9] | 48 |
|
---|
| 49 | <sect3><title><application>Open<acronym>SSL</acronym></application>
|
---|
| 50 | dependencies</title>
|
---|
| 51 | <sect4><title>Optional</title>
|
---|
[da4aff6] | 52 | <para><xref linkend="bc"/> (recommended
|
---|
[939cf0da] | 53 | if you run the test suite during the build)</para>
|
---|
| 54 | </sect4>
|
---|
[5b5ecb9] | 55 | </sect3>
|
---|
| 56 |
|
---|
[52d29f7] | 57 | </sect2>
|
---|
| 58 |
|
---|
| 59 | <sect2>
|
---|
[5b5ecb9] | 60 | <title>Installation of <application>Open<acronym>SSL</acronym></application>
|
---|
| 61 | </title>
|
---|
[396508b] | 62 |
|
---|
[5b5ecb9] | 63 | <para>Install <application>Open<acronym>SSL</acronym></application> by running
|
---|
| 64 | the following commands:</para>
|
---|
[52d29f7] | 65 |
|
---|
| 66 | <screen><userinput><command>sed 's/^passwd/openssl-passwd/' doc/apps/passwd.pod \
|
---|
| 67 | > doc/apps/openssl-passwd.pod &&
|
---|
| 68 | rm doc/apps/passwd.pod &&
|
---|
| 69 | mv doc/crypto/{,openssl_}threads.pod &&
|
---|
| 70 | ./config --openssldir=/etc/ssl --prefix=/usr shared &&
|
---|
[24a7f96] | 71 | sed -i 's%SHLIBDIRS= fips crypto ssl%SHLIBDIRS= crypto ssl%g' Makefile &&
|
---|
[17fb537e] | 72 | make MANDIR=/usr/share/man</command></userinput></screen>
|
---|
| 73 |
|
---|
| 74 | <para>Now, as the root user:</para>
|
---|
| 75 |
|
---|
| 76 | <screen><userinput role='root'><command>make MANDIR=/usr/share/man install &&
|
---|
[e4cac96f] | 77 | cp -r certs /etc/ssl</command></userinput></screen>
|
---|
[396508b] | 78 |
|
---|
[52d29f7] | 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 | <sect2>
|
---|
| 82 | <title>Command explanations</title>
|
---|
[396508b] | 83 |
|
---|
[52d29f7] | 84 | <para><option>no-rc5 no-idea</option>: When added to the
|
---|
| 85 | <command>./config</command> command, this will eliminate the building of those
|
---|
| 86 | encryption methods. Patent licenses may be needed for you to utilize either of
|
---|
| 87 | those methods in your projects.</para>
|
---|
[396508b] | 88 |
|
---|
[52d29f7] | 89 | <para><command>rm doc/apps/passwd.pod</command>: This command prevents
|
---|
| 90 | <application>Open<acronym>SSL</acronym></application> from installing its
|
---|
| 91 | passwd man page over an existing man page with the same name.</para>
|
---|
[396508b] | 92 |
|
---|
[52d29f7] | 93 | <para><command>mv doc/crypto/{,openssl_}threads.pod</command>: This
|
---|
| 94 | commands prevents <application>Open<acronym>SSL</acronym></application> from
|
---|
| 95 | overwriting an existing man page from <application>Perl</application>.</para>
|
---|
[24a7f96] | 96 |
|
---|
[939cf0da] | 97 | <para><command>sed -i 's%SHLIBDIRS= fips crypto ssl%SHLIBDIRS= crypto ssl%g'
|
---|
| 98 | Makefile</command>: This command prevents installation of the non-existent
|
---|
| 99 | <filename class="libraryfile">libfips</filename> library.</para>
|
---|
[396508b] | 100 |
|
---|
[939cf0da] | 101 | <para><command>make MANDIR=/usr/share/man; make MANDIR=/usr/share/man
|
---|
| 102 | install</command>: These commands install
|
---|
| 103 | <application>Open<acronym>SSL</acronym></application> with the man pages in
|
---|
| 104 | <filename class='directory'>/usr/share/man</filename> instead of
|
---|
| 105 | <filename class='directory'>/etc/ssl/man</filename>.</para>
|
---|
[396508b] | 106 |
|
---|
[5b5ecb9] | 107 | <para><command>cp -r certs /etc/ssl</command>: The certificates must be copied
|
---|
| 108 | manually since the install script skips this step.</para>
|
---|
[396508b] | 109 |
|
---|
[52d29f7] | 110 | </sect2>
|
---|
| 111 |
|
---|
| 112 | <sect2>
|
---|
| 113 | <title>Configuring <application>OpenSSL</application></title>
|
---|
[396508b] | 114 |
|
---|
[939cf0da] | 115 | <sect3 id="openssl-config"><title>Config files</title>
|
---|
[52d29f7] | 116 | <para><filename>/etc/ssl/openssl.cnf</filename></para>
|
---|
[cef3a2f] | 117 | <indexterm zone="openssl openssl-config">
|
---|
[939cf0da] | 118 | <primary sortas="e-etc-ssl-openssl.cnf">/etc/ssl/openssl.cnf</primary>
|
---|
| 119 | </indexterm>
|
---|
[52d29f7] | 120 | </sect3>
|
---|
[396508b] | 121 |
|
---|
[52d29f7] | 122 | <sect3><title>Configuration Information</title>
|
---|
[396508b] | 123 |
|
---|
[5b5ecb9] | 124 | <para>Most people who just want to use
|
---|
| 125 | <application>Open<acronym>SSL</acronym></application> for providing functions
|
---|
| 126 | to other programs such as <application>Open<acronym>SSH</acronym></application>
|
---|
| 127 | and web browsers won't need to worry about configuring
|
---|
| 128 | <application>Open<acronym>SSL</acronym></application>. Configuring
|
---|
| 129 | <application>Open<acronym>SSL</acronym></application> is an advanced topic and
|
---|
[52d29f7] | 130 | so those who do would normally be expected to either know how to do it
|
---|
| 131 | or to be able to find out how to do it.</para>
|
---|
| 132 | </sect3>
|
---|
[396508b] | 133 |
|
---|
[52d29f7] | 134 | </sect2>
|
---|
| 135 |
|
---|
| 136 | <sect2>
|
---|
| 137 | <title>Contents</title>
|
---|
[396508b] | 138 |
|
---|
[939cf0da] | 139 | <segmentedlist>
|
---|
| 140 | <segtitle>Installed Programs</segtitle>
|
---|
| 141 | <segtitle>Installed Libraries</segtitle>
|
---|
| 142 | <segtitle>Installed Directories</segtitle>
|
---|
| 143 | <seglistitem>
|
---|
| 144 | <seg>c_rehash and openssl</seg>
|
---|
| 145 | <seg>libcrypto.[so,a] and libssl.[so,a]</seg>
|
---|
| 146 | <seg>/etc/ssl and /usr/include/ssl</seg>
|
---|
| 147 | </seglistitem>
|
---|
| 148 | </segmentedlist>
|
---|
| 149 |
|
---|
| 150 | <variablelist>
|
---|
| 151 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 152 | <?dbfo list-presentation="list"?>
|
---|
| 153 |
|
---|
| 154 | <varlistentry id="c_rehash">
|
---|
| 155 | <term><command>c_rehash</command></term>
|
---|
| 156 | <listitem><para>is a <application>Perl</application> script that scans all
|
---|
| 157 | files in a directory and adds symbolic links to their hash values.</para>
|
---|
[cef3a2f] | 158 | <indexterm zone="openssl c_rehash">
|
---|
[939cf0da] | 159 | <primary sortas="b-c_rehash">c_rehash</primary></indexterm>
|
---|
| 160 | </listitem>
|
---|
| 161 | </varlistentry>
|
---|
| 162 |
|
---|
[cef3a2f] | 163 | <varlistentry id="openssl-prog">
|
---|
[939cf0da] | 164 | <term><command>openssl</command></term>
|
---|
| 165 | <listitem><para>is a command-line tool for using the various cryptography
|
---|
| 166 | functions of <application>Open<acronym>SSL</acronym></application>'s crypto
|
---|
| 167 | library from the shell. It can be used for various functions which are
|
---|
[52d29f7] | 168 | documented in <command>man 1 openssl</command>.</para>
|
---|
[cef3a2f] | 169 | <indexterm zone="openssl openssl-prog">
|
---|
[939cf0da] | 170 | <primary sortas="b-openssl">openssl</primary></indexterm>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
| 173 |
|
---|
| 174 | <varlistentry id="libcrypto">
|
---|
[28badf4] | 175 | <term><filename class='libraryfile'>libcrypto.[so,a]</filename></term>
|
---|
[939cf0da] | 176 | <listitem><para>implements a wide range of cryptographic algorithms used in
|
---|
| 177 | various Internet standards. The services provided by this library are used by
|
---|
| 178 | the <application>Open<acronym>SSL</acronym></application> implementations of
|
---|
[5b5ecb9] | 179 | <acronym>SSL</acronym>, <acronym>TLS</acronym> and <acronym>S/MIME</acronym>,
|
---|
| 180 | and they have also been used to implement
|
---|
[939cf0da] | 181 | <application>Open<acronym>SSH</acronym></application>,
|
---|
[5b5ecb9] | 182 | <application>Open<acronym>PGP</acronym></application>, and other cryptographic
|
---|
| 183 | standards.</para>
|
---|
[cef3a2f] | 184 | <indexterm zone="openssl libcrypto">
|
---|
[939cf0da] | 185 | <primary sortas="c-libcrypto">libcrypto.[so,a]</primary></indexterm>
|
---|
| 186 | </listitem>
|
---|
| 187 | </varlistentry>
|
---|
| 188 |
|
---|
| 189 | <varlistentry id="libssl">
|
---|
[28badf4] | 190 | <term><filename class='libraryfile'>libssl.[so,a]</filename></term>
|
---|
[939cf0da] | 191 | <listitem><para>implements the Secure Sockets Layer (<acronym>SSL</acronym>
|
---|
| 192 | v2/v3) and Transport Layer Security (<acronym>TLS</acronym> v1) protocols. It
|
---|
| 193 | provides a rich <acronym>API</acronym>, documentation on which can be found by
|
---|
| 194 | running <command>man 3 ssl</command>.</para>
|
---|
[cef3a2f] | 195 | <indexterm zone="openssl libssl">
|
---|
[939cf0da] | 196 | <primary sortas="c-libssl">libssl.[so,a]</primary></indexterm>
|
---|
| 197 | </listitem>
|
---|
| 198 | </varlistentry>
|
---|
| 199 | </variablelist>
|
---|
[396508b] | 200 |
|
---|
[52d29f7] | 201 | </sect2>
|
---|
[f45b1953] | 202 |
|
---|
| 203 | </sect1>
|
---|