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