openssl.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?xml version="1.0" encoding="UTF-8"?>
  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>安装OpenSSL</title>
  35. <para>准备安装 OpenSSL:</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>编译该软件包:</para>
  42. <screen><userinput remap="make">make</userinput></screen>
  43. <para>运行下列命令以测试编译结果:</para>
  44. <screen><userinput remap="test">make test</userinput></screen>
  45. <para>One subtest in the test 40-test_rehash.t fails in the lfs chroot
  46. environment, but passes when run as a regular user.</para>
  47. <para>安装该软件包:</para>
  48. <screen><userinput remap="install">sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile
  49. make MANSUFFIX=ssl install</userinput></screen>
  50. <para>If desired, install the documentation:</para>
  51. <screen><userinput remap="install">mv -v /usr/share/doc/openssl /usr/share/doc/openssl-&openssl-version;
  52. cp -vfr doc/* /usr/share/doc/openssl-&openssl-version;</userinput></screen>
  53. </sect2>
  54. <sect2 id="contents-openssl" role="content">
  55. <title>OpenSSL 的内容</title>
  56. <segmentedlist>
  57. <segtitle>安装的程序</segtitle>
  58. <segtitle>安装的库</segtitle>
  59. <segtitle>安装的目录</segtitle>
  60. <seglistitem>
  61. <seg>
  62. c_rehash and openssl
  63. </seg>
  64. <seg>
  65. libcrypto.{so,a} and libssl.{so,a}
  66. </seg>
  67. <seg>
  68. /etc/ssl,
  69. /usr/include/openssl,
  70. /usr/lib/engines and
  71. /usr/share/doc/openssl-&openssl-version;
  72. </seg>
  73. </seglistitem>
  74. </segmentedlist>
  75. <variablelist>
  76. <bridgehead renderas="sect3">简要描述</bridgehead>
  77. <?dbfo list-presentation="list"?>
  78. <?dbhtml list-presentation="table"?>
  79. <varlistentry id="c_rehash">
  80. <term><command>c_rehash</command></term>
  81. <listitem>
  82. <para>
  83. is a <application>Perl</application> script that scans all files in
  84. a directory and adds symbolic links to their hash values.
  85. </para>
  86. <indexterm zone="ch-system-openssl c_rehash">
  87. <primary sortas="b-c_rehash">c_rehash</primary>
  88. </indexterm>
  89. </listitem>
  90. </varlistentry>
  91. <varlistentry id="openssl-prog">
  92. <term><command>openssl</command></term>
  93. <listitem>
  94. <para>
  95. is a command-line tool for using the various cryptography functions
  96. of <application>OpenSSL</application>'s crypto library from the
  97. shell. It can be used for various functions which are documented in
  98. <command>man 1 openssl</command>.
  99. </para>
  100. <indexterm zone="ch-system-openssl openssl-prog">
  101. <primary sortas="b-openssl">openssl</primary>
  102. </indexterm>
  103. </listitem>
  104. </varlistentry>
  105. <varlistentry id="libcrypto">
  106. <term><filename class="libraryfile">libcrypto.so</filename></term>
  107. <listitem>
  108. <para>
  109. implements a wide range of cryptographic algorithms used in various
  110. Internet standards. The services provided by this library are used
  111. by the <application>OpenSSL</application> implementations of SSL,
  112. TLS and S/MIME, and they have also been used to implement
  113. <application>OpenSSH</application>,
  114. <application>OpenPGP</application>, and other cryptographic
  115. standards.
  116. </para>
  117. <indexterm zone="ch-system-openssl libcrypto">
  118. <primary sortas="c-libcrypto">libcrypto.so</primary>
  119. </indexterm>
  120. </listitem>
  121. </varlistentry>
  122. <varlistentry id="libssl">
  123. <term><filename class="libraryfile">libssl.so</filename></term>
  124. <listitem>
  125. <para>
  126. implements the Transport Layer Security (TLS v1) protocol.
  127. It provides a rich API, documentation
  128. on which can be found by running <command>man 3 ssl</command>.
  129. </para>
  130. <indexterm zone="ch-system-openssl libssl">
  131. <primary sortas="c-libssl">libssl.so</primary>
  132. </indexterm>
  133. </listitem>
  134. </varlistentry>
  135. </variablelist>
  136. </sect2>
  137. </sect1>