⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ssl_intro.html.en

📁 apache的软件linux版本
💻 EN
📖 第 1 页 / 共 3 页
字号:
<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX              This file is generated from xml source: DO NOT EDIT        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX      --><title>SSL/TLS Strong Encryption: An Introduction - Apache HTTP Server</title><link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /><link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /><link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link href="../images/favicon.ico" rel="shortcut icon" /></head><body id="manual-page"><div id="page-header"><p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p><p class="apache">Apache HTTP Server Version 2.0</p><img alt="" src="../images/feather.gif" /></div><div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div><div id="path"><a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="../">Version 2.0</a> &gt; <a href="./">SSL/TLS</a></div><div id="page-content"><div id="preamble"><h1>SSL/TLS Strong Encryption: An Introduction</h1><div class="toplang"><p><span>Available Languages: </span><a href="../en/ssl/ssl_intro.html" title="English">&nbsp;en&nbsp;</a> |<a href="../ja/ssl/ssl_intro.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a></p></div><blockquote><p>The nice thing about standards is that there are so many to choosefrom. And if you really don't like all the standards you just have towait another year until the one arises you are looking for.</p><p class="cite">-- <cite>A. Tanenbaum</cite>, "Introduction toComputer Networks"</p></blockquote><p>As an introduction this chapter is aimed at readers who are familiarwith the Web, HTTP, and Apache, but are not security experts. It is notintended to be a definitive guide to the SSL protocol, nor does it discussspecific techniques for managing certificates in an organization, or theimportant legal issues of patents and import and export restrictions.Rather, it is intended to provide a common background to mod_ssl users bypulling together various concepts, definitions, and examples as a startingpoint for further exploration.</p><p>The presented content is mainly derived, with permission by the author,from the article <a href="http://home.earthlink.net/~fjhirsch/Papers/wwwj/article.html">IntroducingSSL and Certificates using SSLeay</a> from <a href="http://home.earthlink.net/~fjhirsch/">Frederick J. Hirsch</a>, of TheOpen Group Research Institute, which was published in <a href="http://www.ora.com/catalog/wjsum97/">Web Security: A Matter ofTrust</a>, World Wide Web Journal, Volume 2, Issue 3, Summer 1997.Please send any positive feedback to <a href="mailto:hirsch@fjhirsch.com">Frederick Hirsch</a> (the originalarticle author) and all negative feedback to <a href="mailto:rse@engelschall.com">Ralf S. Engelschall</a> (the<code class="module"><a href="../mod/mod_ssl.html">mod_ssl</a></code> author).</p></div><div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#cryptographictech">Cryptographic Techniques</a></li><li><img alt="" src="../images/down.gif" /> <a href="#certificates">Certificates</a></li><li><img alt="" src="../images/down.gif" /> <a href="#ssl">Secure Sockets Layer (SSL)</a></li><li><img alt="" src="../images/down.gif" /> <a href="#references">References</a></li></ul></div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div><div class="section"><h2><a name="cryptographictech" id="cryptographictech">Cryptographic Techniques</a></h2><p>Understanding SSL requires an understanding of cryptographicalgorithms, message digest functions (aka. one-way or hash functions), anddigital signatures. These techniques are the subject of entire books (seefor instance [<a href="#AC96">AC96</a>]) and provide the basis for privacy,integrity, and authentication.</p><h3><a name="cryptographicalgo" id="cryptographicalgo">Cryptographic Algorithms</a></h3>    <p>Suppose Alice wants to send a message to her bank to transfer some    money. Alice would like the message to be private, since it will    include information such as her account number and transfer amount. One    solution is to use a cryptographic algorithm, a technique that would    transform her message into an encrypted form, unreadable except by    those it is intended for. Once in this form, the message may only be    interpreted through the use of a secret key. Without the key the    message is useless: good cryptographic algorithms make it so difficult    for intruders to decode the original text that it isn't worth their    effort.</p>    <p>There are two categories of cryptographic algorithms: conventional    and public key.</p>    <dl>    <dt>Conventional cryptography</dt>    <dd>also known as symmetric cryptography, requires the sender and    receiver to share a key: a secret piece of information that may be    used to encrypt or decrypt a message. If this key is secret, then    nobody other than the sender or receiver may read the message. If    Alice and the bank know a secret key, then they may send each other    private messages. The task of privately choosing a key before    communicating, however, can be problematic.</dd>    <dt>Public key cryptography</dt>    <dd>also known as asymmetric cryptography, solves the key exchange    problem by defining an algorithm which uses two keys, each of which    may be used to encrypt a message. If one key is used to encrypt a    message then the other must be used to decrypt it. This makes it    possible to receive secure messages by simply publishing one key    (the public key) and keeping the other secret (the private key).</dd>    </dl>    <p>Anyone may encrypt a message using the public key, but only the    owner of the private key will be able to read it. In this way, Alice    may send private messages to the owner of a key-pair (the bank), by    encrypting it using their public key. Only the bank will be able to    decrypt it.</p><h3><a name="messagedigests" id="messagedigests">Message Digests</a></h3>    <p>Although Alice may encrypt her message to make it private, there    is still a concern that someone might modify her original message or    substitute it with a different one, in order to transfer the money    to themselves, for instance. One way of guaranteeing the integrity    of Alice's message is to create a concise summary of her message and    send this to the bank as well. Upon receipt of the message, the bank    creates its own summary and compares it with the one Alice sent. If    they agree then the message was received intact.</p>    <p>A summary such as this is called a <dfn>message digest</dfn>, <em>one-wayfunction</em> or <em>hash function</em>. Message digests are used to createshort, fixed-length representations of longer, variable-length messages.Digest algorithms are designed to produce unique digests for differentmessages. Message digests are designed to make it too difficult to determinethe message from the digest, and also impossible to find two differentmessages which create the same digest -- thus eliminating the possibility ofsubstituting one message for another while maintaining the same digest.</p><p>Another challenge that Alice faces is finding a way to send the digest to thebank securely; when this is achieved, the integrity of the associated messageis assured. One way to do this is to include the digest in a digitalsignature.</p><h3><a name="digitalsignatures" id="digitalsignatures">Digital Signatures</a></h3><p>When Alice sends a message to the bank, the bank needs to ensure that themessage is really from her, so an intruder does not request a transactioninvolving her account. A <em>digital signature</em>, created by Alice andincluded with the message, serves this purpose.</p><p>Digital signatures are created by encrypting a digest of the message,and other information (such as a sequence number) with the sender'sprivate key. Though anyone may <em>decrypt</em> the signature using the publickey, only the signer knows the private key. This means that only they mayhave signed it. Including the digest in the signature means the signature isonly good for that message; it also ensures the integrity of the message sinceno one can change the digest and still sign it.</p><p>To guard against interception and reuse of the signature by an intruder at alater date, the signature contains a unique sequence number. This protectsthe bank from a fraudulent claim from Alice that she did not send the message-- only she could have signed it (non-repudiation).</p></div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div><div class="section"><h2><a name="certificates" id="certificates">Certificates</a></h2><p>Although Alice could have sent a private message to the bank, signedit, and ensured the integrity of the message, she still needs to be surethat she is really communicating with the bank. This means that she needsto be sure that the public key she is using corresponds to the bank'sprivate key. Similarly, the bank also needs to verify that the messagesignature really corresponds to Alice's signature.</p><p>If each party has a certificate which validates the other's identity,confirms the public key, and is signed by a trusted agency, then they bothwill be assured that they are communicating with whom they think they are.Such a trusted agency is called a <em>Certificate Authority</em>, andcertificates are used for authentication.</p><h3><a name="certificatecontents" id="certificatecontents">Certificate Contents</a></h3>    <p>A certificate associates a public key with the real identity of    an individual, server, or other entity, known as the subject. As    shown in <a href="#table1">Table 1</a>, information about the subject    includes identifying information (the distinguished name), and the    public key. It also includes the identification and signature of the    Certificate Authority that issued the certificate, and the period of    time during which the certificate is valid. It may have additional    information (or extensions) as well as administrative information    for the Certificate Authority's use, such as a serial number.</p>    <h4><a name="table1" id="table1">Table 1: Certificate Information</a></h4>        <table>        <tr><th>Subject</th>        <td>Distinguished Name, Public Key</td></tr>    <tr><th>Issuer</th>        <td>Distinguished Name, Signature</td></tr>    <tr><th>Period of Validity</th>        <td>Not Before Date, Not After Date</td></tr>    <tr><th>Administrative Information</th>        <td>Version, Serial Number</td></tr>    <tr><th>Extended Information</th>        <td>Basic Constraints, Netscape Flags, etc.</td></tr>    </table>        <p>A distinguished name is used to provide an identity in a specific    context -- for instance, an individual might have a personal    certificate as well as one for their identity as an employee.    Distinguished names are defined by the X.509 standard [<a href="#X509">X509</a>], which defines the fields, field names, and    abbreviations used to refer to the fields (see <a href="#table2">Table    2</a>).</p>    <h4><a name="table2" id="table2">Table 2: Distinguished Name Information</a></h4>        <table class="bordered">        <tr><th>DN Field</th>        <th>Abbrev.</th>        <th>Description</th>        <th>Example</th></tr>    <tr><td>Common Name</td>        <td>CN</td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -