Browse Source

Clarify who sends certs and chains

svn:r3462
Nick Mathewson 20 years ago
parent
commit
5cf6534bae
1 changed files with 8 additions and 5 deletions
  1. 8 5
      doc/tor-spec.txt

+ 8 - 5
doc/tor-spec.txt

@@ -71,11 +71,10 @@ TODO: (very soon)
    support any suite without ephemeral keys, symmetric keys of at
    support any suite without ephemeral keys, symmetric keys of at
    least 128 bits, and digests of at least 160 bits.
    least 128 bits, and digests of at least 160 bits.
 
 
-[what kind of cert does an OP send? -RD]
+   An OP or OR always sends a two-certificate chain, consisting of a
-   An OR always sends a two-certificate chain, consisting of a self-signed
+   self-signed certificate containing the OR's identity key, and a second
-   certificate containing the OR's identity key, and a second certificate
+   certificate using a short-term connection key.  The commonName of the
-   using a short-term connection key.  The commonName of the second
+   second certificate is the OR's nickname, and the commonName of the first
-   certificate is the OR's nickname, and the commonName of the first
    certificate is the OR's nickname, followed by a space and the string
    certificate is the OR's nickname, followed by a space and the string
    "<identity>".
    "<identity>".
 
 
@@ -85,6 +84,10 @@ TODO: (very soon)
    EXTEND cell, the expected identity key is the one given in the cell.)  If
    EXTEND cell, the expected identity key is the one given in the cell.)  If
    the key is not as expected, the party must close the connection.
    the key is not as expected, the party must close the connection.
 
 
+   All parties SHOULD reject connections to or from ORs that have malformed
+   or missing certificates.  ORs MAY accept connections from OPs with
+   malformed or missing certificates.
+
    Once a TLS connection is established, the two sides send cells
    Once a TLS connection is established, the two sides send cells
    (specified below) to one another.  Cells are sent serially.  All
    (specified below) to one another.  Cells are sent serially.  All
    cells are 512 bytes long.  Cells may be sent embedded in TLS
    cells are 512 bytes long.  Cells may be sent embedded in TLS