openssl.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. <para>First, fix a problem identified upstream:</para>
  36. <screen><userinput remap="pre">sed -i '/\} data/s/ =.*$/;\n memset(\&amp;data, 0, sizeof(data));/' \
  37. crypto/rand/rand_lib.c</userinput></screen>
  38. <para>Prepare OpenSSL for compilation:</para>
  39. <screen><userinput remap="configure">./config --prefix=/usr \
  40. --openssldir=/etc/ssl \
  41. --libdir=lib \
  42. shared \
  43. zlib-dynamic</userinput></screen>
  44. <para>Compile the package:</para>
  45. <screen><userinput remap="make">make</userinput></screen>
  46. <para>To test the results, issue:</para>
  47. <screen><userinput remap="test">make test</userinput></screen>
  48. <!--
  49. <para>One subtest in the test 40-test_rehash.t fails in the lfs chroot
  50. environment, but passes when run as a regular user.</para>
  51. -->
  52. <para>Install the package:</para>
  53. <screen><userinput remap="install">sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile
  54. make MANSUFFIX=ssl install</userinput></screen>
  55. <para>If desired, install the documentation:</para>
  56. <screen><userinput remap="install">mv -v /usr/share/doc/openssl /usr/share/doc/openssl-&openssl-version;
  57. cp -vfr doc/* /usr/share/doc/openssl-&openssl-version;</userinput></screen>
  58. </sect2>
  59. <sect2 id="contents-openssl" role="content">
  60. <title>Contents of OpenSSL</title>
  61. <segmentedlist>
  62. <segtitle>Installed programs</segtitle>
  63. <segtitle>Installed libraries</segtitle>
  64. <segtitle>Installed directories</segtitle>
  65. <seglistitem>
  66. <seg>
  67. c_rehash and openssl
  68. </seg>
  69. <seg>
  70. libcrypto.{so,a} and libssl.{so,a}
  71. </seg>
  72. <seg>
  73. /etc/ssl,
  74. /usr/include/openssl,
  75. /usr/lib/engines and
  76. /usr/share/doc/openssl-&openssl-version;
  77. </seg>
  78. </seglistitem>
  79. </segmentedlist>
  80. <variablelist>
  81. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  82. <?dbfo list-presentation="list"?>
  83. <?dbhtml list-presentation="table"?>
  84. <varlistentry id="c_rehash">
  85. <term><command>c_rehash</command></term>
  86. <listitem>
  87. <para>
  88. is a <application>Perl</application> script that scans all files in
  89. a directory and adds symbolic links to their hash values.
  90. </para>
  91. <indexterm zone="ch-system-openssl c_rehash">
  92. <primary sortas="b-c_rehash">c_rehash</primary>
  93. </indexterm>
  94. </listitem>
  95. </varlistentry>
  96. <varlistentry id="openssl-prog">
  97. <term><command>openssl</command></term>
  98. <listitem>
  99. <para>
  100. is a command-line tool for using the various cryptography functions
  101. of <application>OpenSSL</application>'s crypto library from the
  102. shell. It can be used for various functions which are documented in
  103. <command>man 1 openssl</command>.
  104. </para>
  105. <indexterm zone="ch-system-openssl openssl-prog">
  106. <primary sortas="b-openssl">openssl</primary>
  107. </indexterm>
  108. </listitem>
  109. </varlistentry>
  110. <varlistentry id="libcrypto">
  111. <term><filename class="libraryfile">libcrypto.so</filename></term>
  112. <listitem>
  113. <para>
  114. implements a wide range of cryptographic algorithms used in various
  115. Internet standards. The services provided by this library are used
  116. by the <application>OpenSSL</application> implementations of SSL,
  117. TLS and S/MIME, and they have also been used to implement
  118. <application>OpenSSH</application>,
  119. <application>OpenPGP</application>, and other cryptographic
  120. standards.
  121. </para>
  122. <indexterm zone="ch-system-openssl libcrypto">
  123. <primary sortas="c-libcrypto">libcrypto.so</primary>
  124. </indexterm>
  125. </listitem>
  126. </varlistentry>
  127. <varlistentry id="libssl">
  128. <term><filename class="libraryfile">libssl.so</filename></term>
  129. <listitem>
  130. <para>
  131. implements the Transport Layer Security (TLS v1) protocol.
  132. It provides a rich API, documentation
  133. on which can be found by running <command>man 3 ssl</command>.
  134. </para>
  135. <indexterm zone="ch-system-openssl libssl">
  136. <primary sortas="c-libssl">libssl.so</primary>
  137. </indexterm>
  138. </listitem>
  139. </varlistentry>
  140. </variablelist>
  141. </sect2>
  142. </sect1>