openssl.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  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. <sect1 id="ch-system-openssl" role="wrap">
  8. <?dbhtml filename="openssl.html"?>
  9. <sect1info condition="script">
  10. <productname>openssl</productname>
  11. <productnumber>&openssl-version;</productnumber>
  12. <address>&openssl-url;</address>
  13. </sect1info>
  14. <title>OpenSSL-&openssl-version;</title>
  15. <indexterm zone="ch-system-openssl">
  16. <primary sortas="a-OpenSSL">OpenSSL</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The OpenSSL package contains management tools and libraries relating
  21. to cryptography. These are useful for providing cryptographic functions
  22. to other packages, such as OpenSSH, email applications and web browsers
  23. (for accessing HTTPS sites). </para>
  24. <segmentedlist>
  25. <segtitle>&buildtime;</segtitle>
  26. <segtitle>&diskspace;</segtitle>
  27. <seglistitem>
  28. <seg>&openssl-ch6-sbu;</seg>
  29. <seg>&openssl-ch6-du;</seg>
  30. </seglistitem>
  31. </segmentedlist>
  32. </sect2>
  33. <sect2 role="installation">
  34. <title>Installation of OpenSSL</title>
  35. <!--
  36. <para>First, fix a problem identified upstream:</para>
  37. <screen><userinput remap="pre">sed -i '/\} data/s/ =.*$/;\n memset(\&amp;data, 0, sizeof(data));/' \
  38. crypto/rand/rand_lib.c</userinput></screen>
  39. -->
  40. <para>Prepare OpenSSL for compilation:</para>
  41. <screen><userinput remap="configure">./config --prefix=/usr \
  42. --openssldir=/etc/ssl \
  43. --libdir=lib \
  44. shared \
  45. zlib-dynamic</userinput></screen>
  46. <para>Compile the package:</para>
  47. <screen><userinput remap="make">make</userinput></screen>
  48. <para>To test the results, issue:</para>
  49. <screen><userinput remap="test">make test</userinput></screen>
  50. <para>One test 30-test_afalg.t is known to fail on some kernel
  51. configurations (it apparently assumes certain unspecified crypto
  52. options have been selected).</para>
  53. <para>Install the package:</para>
  54. <screen><userinput remap="install">sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile
  55. make MANSUFFIX=ssl install</userinput></screen>
  56. <para>If desired, install the documentation:</para>
  57. <screen><userinput remap="install">mv -v /usr/share/doc/openssl /usr/share/doc/openssl-&openssl-version;
  58. cp -vfr doc/* /usr/share/doc/openssl-&openssl-version;</userinput></screen>
  59. </sect2>
  60. <!-- ~~~~~~~~~~~~~~~~~~~~ ABI 32 ~~~~~~~~~~~~~~~~~~~~ -->
  61. <sect2 arch="ml_32,ml_all" role="installation">
  62. <title>Installation of OpenSSL - 32-bit</title>
  63. <para>Clean previous build:</para>
  64. <screen><userinput remap="pre">make distclean</userinput></screen>
  65. <para>Prepare OpenSSL for compilation:</para>
  66. <screen><userinput remap="configure">MACHINE="i686" \
  67. CC="gcc -m32 -march=i686" \
  68. CXX="g++ -m32 -march=i686" \
  69. ./config \
  70. --prefix=/usr \
  71. --libdir=/usr/lib32 \
  72. --openssldir=/etc/ssl \
  73. --libdir=lib32 \
  74. shared \
  75. zlib-dynamic</userinput></screen>
  76. <para>Compile the package:</para>
  77. <screen><userinput remap="make">make</userinput></screen>
  78. <para>Install the package:</para>
  79. <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
  80. cp -Rv DESTDIR/usr/lib32/* /usr/lib32
  81. rm -rf DESTDIR</userinput></screen>
  82. </sect2>
  83. <!-- ~~~~~~~~~~~~~~~~~~~~ ABI x32 ~~~~~~~~~~~~~~~~~~~~ -->
  84. <sect2 arch="ml_x32,ml_all" role="installation">
  85. <title>Installation of OpenSSL - x32-bit</title>
  86. <para>Clean previous build:</para>
  87. <screen><userinput remap="pre">make distclean</userinput></screen>
  88. <para>Prepare OpenSSL for compilation:</para>
  89. <screen><userinput remap="configure">MACHINE="x86_64" \
  90. CC="gcc -mx32" \
  91. CXX="g++ -mx32" \
  92. ./config \
  93. --prefix=/usr \
  94. --libdir=/usr/libx32 \
  95. --openssldir=/etc/ssl \
  96. --libdir=libx32 \
  97. shared \
  98. zlib-dynamic</userinput></screen>
  99. <para>Compile the package:</para>
  100. <screen><userinput remap="make">make</userinput></screen>
  101. <para>Install the package:</para>
  102. <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
  103. cp -Rv DESTDIR/usr/libx32/* /usr/libx32
  104. rm -rf DESTDIR</userinput></screen>
  105. </sect2>
  106. <sect2 id="contents-openssl" role="content">
  107. <title>Contents of OpenSSL</title>
  108. <segmentedlist>
  109. <segtitle>Installed programs</segtitle>
  110. <segtitle>Installed libraries</segtitle>
  111. <segtitle>Installed directories</segtitle>
  112. <seglistitem>
  113. <seg>
  114. c_rehash and openssl
  115. </seg>
  116. <seg>
  117. libcrypto.{so,a} and libssl.{so,a}
  118. </seg>
  119. <seg>
  120. /etc/ssl,
  121. /usr/include/openssl,
  122. /usr/lib/engines and
  123. /usr/share/doc/openssl-&openssl-version;
  124. </seg>
  125. </seglistitem>
  126. </segmentedlist>
  127. <variablelist>
  128. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  129. <?dbfo list-presentation="list"?>
  130. <?dbhtml list-presentation="table"?>
  131. <varlistentry id="c_rehash">
  132. <term><command>c_rehash</command></term>
  133. <listitem>
  134. <para>
  135. is a <application>Perl</application> script that scans all files in
  136. a directory and adds symbolic links to their hash values.
  137. </para>
  138. <indexterm zone="ch-system-openssl c_rehash">
  139. <primary sortas="b-c_rehash">c_rehash</primary>
  140. </indexterm>
  141. </listitem>
  142. </varlistentry>
  143. <varlistentry id="openssl-prog">
  144. <term><command>openssl</command></term>
  145. <listitem>
  146. <para>
  147. is a command-line tool for using the various cryptography functions
  148. of <application>OpenSSL</application>'s crypto library from the
  149. shell. It can be used for various functions which are documented in
  150. <command>man 1 openssl</command>.
  151. </para>
  152. <indexterm zone="ch-system-openssl openssl-prog">
  153. <primary sortas="b-openssl">openssl</primary>
  154. </indexterm>
  155. </listitem>
  156. </varlistentry>
  157. <varlistentry id="libcrypto">
  158. <term><filename class="libraryfile">libcrypto.so</filename></term>
  159. <listitem>
  160. <para>
  161. implements a wide range of cryptographic algorithms used in various
  162. Internet standards. The services provided by this library are used
  163. by the <application>OpenSSL</application> implementations of SSL,
  164. TLS and S/MIME, and they have also been used to implement
  165. <application>OpenSSH</application>,
  166. <application>OpenPGP</application>, and other cryptographic
  167. standards.
  168. </para>
  169. <indexterm zone="ch-system-openssl libcrypto">
  170. <primary sortas="c-libcrypto">libcrypto.so</primary>
  171. </indexterm>
  172. </listitem>
  173. </varlistentry>
  174. <varlistentry id="libssl">
  175. <term><filename class="libraryfile">libssl.so</filename></term>
  176. <listitem>
  177. <para>
  178. implements the Transport Layer Security (TLS v1) protocol.
  179. It provides a rich API, documentation
  180. on which can be found by running <command>man 3 ssl</command>.
  181. </para>
  182. <indexterm zone="ch-system-openssl libssl">
  183. <primary sortas="c-libssl">libssl.so</primary>
  184. </indexterm>
  185. </listitem>
  186. </varlistentry>
  187. </variablelist>
  188. </sect2>
  189. </sect1>