openssl.xml 7.6 KB

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