openssl.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. <para>OpenSSL 软件包包含密码学相关的管理工具和库。
  25. 它们被用于向其他软件包提供密码学功能,例如 OpenSSH,
  26. 电子邮件程序和 Web 浏览器(访问 HTTPS 站点)。</para>
  27. <segmentedlist>
  28. <segtitle>&buildtime;</segtitle>
  29. <segtitle>&diskspace;</segtitle>
  30. <seglistitem>
  31. <seg>&openssl-ch6-sbu;</seg>
  32. <seg>&openssl-ch6-du;</seg>
  33. </seglistitem>
  34. </segmentedlist>
  35. </sect2>
  36. <sect2 role="installation">
  37. <title>安装 OpenSSL</title>
  38. <para>准备安装 OpenSSL:</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>编译该软件包:</para>
  45. <screen><userinput remap="make">make</userinput></screen>
  46. <para>运行以下命令以测试编译结果:</para>
  47. <screen><userinput remap="test">make test</userinput></screen>
  48. <!--
  49. <para>测试 40-test_rehash.t 的一个子测试在 LFS chroot 环境中失败,
  50. 但如果以普通用户身份运行就能通过。</para>
  51. -->
  52. <para>安装该软件包:</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>如果需要的话,安装文档:</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>OpenSSL 的内容</title>
  61. <segmentedlist>
  62. <segtitle>安装的程序</segtitle>
  63. <segtitle>安装的库</segtitle>
  64. <segtitle>安装的目录</segtitle>
  65. <seglistitem>
  66. <seg>
  67. c_rehash 和 openssl
  68. </seg>
  69. <seg>
  70. libcrypto.{so,a} 和 libssl.{so,a}
  71. </seg>
  72. <seg>
  73. /etc/ssl,
  74. /usr/include/openssl,
  75. /usr/lib/engines 以及
  76. /usr/share/doc/openssl-&openssl-version;
  77. </seg>
  78. </seglistitem>
  79. </segmentedlist>
  80. <variablelist>
  81. <bridgehead renderas="sect3">简要描述</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. 一个 <application>Perl</application> 脚本,
  89. 扫描一个目录中的所有文件,并添加它们的符号链接,
  90. 符号链接名为对应文件的散列值
  91. </para>
  92. <indexterm zone="ch-system-openssl c_rehash">
  93. <primary sortas="b-c_rehash">c_rehash</primary>
  94. </indexterm>
  95. </listitem>
  96. </varlistentry>
  97. <varlistentry id="openssl-prog">
  98. <term><command>openssl</command></term>
  99. <listitem>
  100. <para>
  101. 一个命令行工具,用于从 shell 使用
  102. <application>OpenSSL</application> 密码学库的一些密码学函数。
  103. 它可以被用于 <command>man 1 openssl</command>
  104. 描述的许多功能。
  105. </para>
  106. <indexterm zone="ch-system-openssl openssl-prog">
  107. <primary sortas="b-openssl">openssl</primary>
  108. </indexterm>
  109. </listitem>
  110. </varlistentry>
  111. <varlistentry id="libcrypto">
  112. <term><filename class="libraryfile">libcrypto.so</filename></term>
  113. <listitem>
  114. <para>
  115. 实现不同 Internet 标准使用的许多密码学算法。
  116. 该库提供的服务被 <application>OpenSSL</application> 的
  117. SSL TLS 和 S/MIME 实现使用,也被用于实现
  118. <application>OpenSSH</application>、
  119. <application>OpenPGP</application> 和其他密码学标准。</para>
  120. <indexterm zone="ch-system-openssl libcrypto">
  121. <primary sortas="c-libcrypto">libcrypto.so</primary>
  122. </indexterm>
  123. </listitem>
  124. </varlistentry>
  125. <varlistentry id="libssl">
  126. <term><filename class="libraryfile">libssl.so</filename></term>
  127. <listitem>
  128. <!--para>
  129. implements the Transport Layer Security (TLS v1) protocol.
  130. It provides a rich API, documentation
  131. on which can be found by running <command>man 3 ssl</command>.
  132. </para-->
  133. <para>实现传输层安全 (TLS v1) 协议。
  134. 它提供了丰富的 API,这些 API 的文档可以通过执行
  135. <command>man 3 ssl</command> 查阅。</para>
  136. <indexterm zone="ch-system-openssl libssl">
  137. <primary sortas="c-libssl">libssl.so</primary>
  138. </indexterm>
  139. </listitem>
  140. </varlistentry>
  141. </variablelist>
  142. </sect2>
  143. </sect1>