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