TOC |
|
This Internet-Draft is submitted to IETF in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet-Drafts.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work in progress.”
The list of current Internet-Drafts can be accessed at http://www.ietf.org/ietf/1id-abstracts.txt.
The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html.
This Internet-Draft will expire on March 5, 2010.
Copyright (c) 2009 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents in effect on the date of publication of this document (http://trustee.ietf.org/license-info). Please review these documents carefully, as they describe your rights and restrictions with respect to this document.
Technologies such as Transport Layer Security (TLS) and IPsec enable a secure connection between two entities (a "client" and a "server") using X.509 certificates. This document specifies recommended procedures for checking the identity of the server in such an interaction.
1.
Introduction
2.
Conventions
3.
Verification Process
3.1.
Overview
3.2.
Comparison Rules
3.2.1.
Domain Names
3.2.2.
IP Addresses
3.2.3.
Email Addresses
3.2.4.
SIP Addresses
3.2.5.
JabberIDs
3.3.
Outcome
4.
Security Considerations
5.
IANA Considerations
6.
References
6.1.
Normative References
6.2.
Informative References
§
Authors' Addresses
TOC |
Technologies such as Transport Layer Security [TLS] (Dierks, T. and E. Rescorla, “The Transport Layer Security (TLS) Protocol Version 1.2,” August 2008.) and [IPSEC] (Kent, S. and K. Seo, “Security Architecture for the Internet Protocol,” December 2005.) enable a secure connection between two entities using the Internet X.509 Public Key Infrastructure (PKI) as described in [X509] (Cooper, D., Santesson, S., Farrell, S., Boeyen, S., Housley, R., and W. Polk, “Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile,” May 2008.). In such interactions, the entity that initiates the connection is called a "client" and the entity that receives the connection is called a "server".
Note: The terms "client" and "server" as used here refer to security roles, not application roles; a server in the context of TLS or IPSec might be a "client" (i.e., a user agent) in the context of an application protocol as deployed on the Internet.
If a client wishes to connect to a server securely, it needs to check the identity of the server so that it can determine if the server is what it claims to be, verify that there is no attacker in the middle, etc. Typically this is done by correlating the information presented in the server's certificate with information available about the server contained in the Domain Name System (DNS).
Different application protocols that make use of the client-server pattern for security purposes have traditionally specified their own procedures for checking server identities. Examples include but are not limited to:
Unfortunately, this divergence of approaches has caused some confusion among developers and protocol designers. Therefore this document specifies recommended identity checking procedures for application protocols produced within the Internet Standards Process, for the purpose of codifying secure authentication practices.
Note: This document is currently limited in scope to the presentation of identities in X.509 certificates as issued in the context of the Public Key Infrastructure (PKI) and as applied to Transport Layer Security [TLS] (Dierks, T. and E. Rescorla, “The Transport Layer Security (TLS) Protocol Version 1.2,” August 2008.); a future version of this document might address X.509 certificates as issued outside the context of the PKI, non-X.509 public keys such as OpenPGP keys, presentation of identities in ways other than in the certificate itself (e.g., certificate fingerprints for Secure Shell as described in [SSH] (Ylonen, T. and C. Lonvick, “The Secure Shell (SSH) Protocol Architecture,” January 2006.) or for Datagram Transport Layer Security DTLS and Secure Real-time Transport Protocol as described in [DTLS‑SRTP] (McGrew, D. and E. Rescorla, “Datagram Transport Layer Security (DTLS) Extension to Establish Keys for Secure Real-time Transport Protocol (SRTP),” February 2009.)), and applications other than TLS.
TOC |
The following capitalized keywords are to be interpreted as described in [TERMS] (Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” March 1997.): "MUST", "SHALL", "REQUIRED"; "MUST NOT", "SHALL NOT"; "SHOULD", "RECOMMENDED"; "SHOULD NOT", "NOT RECOMMENDED"; "MAY", "OPTIONAL".
Most security-related terms are to be understood in the sense defined in [SECTERMS] (Shirey, R., “Internet Security Glossary, Version 2,” August 2007.); such terms include, but are not limited to, "assurance", "attack", "authentication", "authorization", "certificate", "certification authority", "confidentiality", "credential", "downgrade", "encryption", "fingerprint", "hash value", "identity", "integrity", "signature", "security perimeter", "self-signed certificate", "sign", "spoof", "tamper", "trust", "trust anchor", "trust chain", "validate", "verify".
In addition, we define the following terms to assist in understanding the process of verifying identity:
- identity set:
- The set of identities that are presented by the server to the client (in the form of the server's X.509 certificate) when the client is attempts to establish a secure connection to the server.
- identity type:
- The "natural kind" of identity to which a presented identity or reference identity belongs. For example, the reference identity might be a domain name, an IPv4 or IPv6 address, an email address, a SIP address, a JabberID, or some other type (this specification does not yet provide a complete taxonomy of identity types). In the case of domain names, the reference identity MUST NOT contain the wildcard character '*' (ASCII 42) in the left-most (least significant) domain name component or component fragment.
- presented identity:
- A single member of the identity set.
- reference identity:
- The client's conception of the server's identity before it attempts to establish a secure connection to the server; this is the identity that the client expects the server to present and to which the client makes reference when attempting to verify the server's identity.
TOC |
When a client connects to a server, it MUST verify the server's identity (in order to prevent passive and active attacks against the connection). By "verify identity" we mean that the client needs to establish that at least one of the identities in the identity set matches the reference identity.
TOC |
At a high level, the client verifies the server identity in accordance with the following rules:
Note: Beyond the server identity check described in this section, clients might complete further checking to ensure that the server is authorized to provide the service it is requested to provide. The client might need to make use of local policy information in making this determination.
TOC |
TOC |
If the reference identity is a domain name as defined by [RFC1034] (Mockapetris, P., “Domain names - concepts and facilities,” November 1987.) and [RFC1035] (Mockapetris, P., “Domain names - implementation and specification,” November 1987.) for "traditional" domain names or by [IDNA] (Faltstrom, P., Hoffman, P., and A. Costello, “Internationalizing Domain Names in Applications (IDNA),” March 2003.) for internationalized domain names, then the client can match the reference identity against subjectAltName extensions of type dNSName and SRVName [SRVNAME] (Santesson, S., “Internet X.509 Public Key Infrastructure Subject Alternative Name for Expression of Service Name,” August 2007.) according to the following rules.
If the reference identity is a "traditional" domain name, then matching of reference identity against the presented identity is performed by comparing the set of domain components using a case-insensitive ASCII comparison.
If the reference identity is an internationalized domain name, then an implementation MUST convert the reference identity to the ASCII Compatible Encoding (ACE) format as specified in Section 4 of [IDNA] (Faltstrom, P., Hoffman, P., and A. Costello, “Internationalizing Domain Names in Applications (IDNA),” March 2003.) before comparison with subjectAltName values of type dNSName; specifically, the conversion operation specified in Section 4 of [IDNA] (Faltstrom, P., Hoffman, P., and A. Costello, “Internationalizing Domain Names in Applications (IDNA),” March 2003.) MUST be performed as follows:
After performing the "to-ASCII" conversion, the DNS labels and names MUST be compared for equality according to the rules specified in Section 3 of [IDNA] (Faltstrom, P., Hoffman, P., and A. Costello, “Internationalizing Domain Names in Applications (IDNA),” March 2003.).
A dNSName MAY contain the wildcard character '*' (ASCII 42). The wildcard character applies only to the left-most (least significant) domain name component or component fragment and matches any single component or component fragment. For instance, a dNSName of *.example.com matches foo.example.com but not bar.foo.example.com or example.com itself; similarly, a dNSName of baz*.example.net matches baz1.example.net and baz2.example.net but not qux.example.net or example.net itself.
In addition to checking the subjectAltName extensions of type dNSName and SRVNAME, the client MAY as a fallback check the value of the Common Name (CN) (see [LDAP‑SCHEMA] (Sciberras, A., “Lightweight Directory Access Protocol (LDAP): Schema for User Applications,” June 2006.)) as presented in the subjectName component of the server's X.509 certificate. In existing certificates, the CN is often used for encapsulating a domain name; for example, consider the following subjectName:
cn=www.example.com, ou=Web Services, c=GB
Here the Common Name is "www.example.com" and the client could choose to compare the reference identity against that CN.
When comparing the referenced identity against the Common Name, the client MUST follow the comparison rules described above for subjectAltName extensions of type dNSName and SRVName, with the exception that no wildcard matching is allowed.
In order to match domain names, a client MUST NOT check Relative Distinguished Names (RDNs) other than the Common Name; in particular, this means that a series of Domain Component (DC) attributes MUST NOT be checked (because the order of Domain Components is not guaranteed, certain attacks are possible if DC attributes are checked).
TOC |
If the reference identity is an IP address as defined by [IP] (Postel, J., “Internet Protocol,” September 1981.) or [IPv6] (Deering, S. and R. Hinden, “Internet Protocol, Version 6 (IPv6) Specification,” December 1998.), then the client can match the reference identity against subjectAltName extensions of type iPaddress according to the following rules.
The reference identity MUST be converted to the "network byte order" octet string representation; for IP Version 4 the octet string will contain exactly four octets, and for IP Version 6 the octet string will contain exactly sixteen octets. The client then compares this octet string, where a match occurs if the reference identity and presented identity octet strings are identical.
TOC |
If the reference identity is an email address as defined by [EMAIL] (Resnick, P., Ed., “Internet Message Format,” October 2008.), then the client SHOULD compare the reference identity against the value of the "rfc822Name" subjectAltName extension described in [X509] (Cooper, D., Santesson, S., Farrell, S., Boeyen, S., Housley, R., and W. Polk, “Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile,” May 2008.).
The client MAY also compare the reference identity against the value of the "E" attribute of the subjectName as described in [CRMF] (Schaad, J., “Internet X.509 Public Key Infrastructure Certificate Request Message Format (CRMF),” September 2005.).
TOC |
If the reference identity is a SIP address as defined by [SIP] (Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston, A., Peterson, J., Sparks, R., Handley, M., and E. Schooler, “SIP: Session Initiation Protocol,” June 2002.), then the client SHOULD compare map the reference identity to a domain name or email address and proceed as described for those identity types, or proceed as described in [SIP‑CERTS] (Gurbani, V., Lawrence, S., and B. Laboratories, “Domain Certificates in the Session Initiation Protocol (SIP),” May 2009.).
TOC |
If the reference identity is a JabberID as defined by [XMPP] (Saint-Andre, P., Ed., “Extensible Messaging and Presence Protocol (XMPP): Core,” October 2004.), then the client SHOULD compare the reference identity against the value of the "id-on-xmppAddr" subjectAltName extension of type otherName described in [XMPP] (Saint-Andre, P., Ed., “Extensible Messaging and Presence Protocol (XMPP): Core,” October 2004.), or proceed as described in [XMPPBIS] (Saint-Andre, P., “Extensible Messaging and Presence Protocol (XMPP): Core,” August 2009.).
TOC |
The outcome of the checking procedure is one of the following:
- Case #1:
- The client finds at least one presented identity that matches the reference identity; the entity MUST use this as the validated identity of the server.
- Case #2:
- The client finds no subjectAltName that matches the reference identity but a human user has permanently accepted the certificate during a previous connection attempt; the client MUST verify that the cached certificate was presented and MUST notify the user if the certificate has changed since the last time that a secure connection was successfully negotiated.
- Case #3:
- The client finds no subjectAltName that matches the reference identity and a human user has not permanently accepted the certificate during a previous connection attempt; the client MUST NOT use the presented identity (if any) as the validated identity of the server and instead MUST proceed as described in the next section. Instead, if the client is a user-oriented application, then it MUST either (1) automatically terminate the connection with a bad certificate error or (2) show the certificate (including the entire certificate chain) to the user and give the user the choice of terminating the connecting or accepting the certificate temporarily (i.e., for this connection attempt only) or permanently (i.e., for all future connection attempts) and then continuing with the connection; if a user permanently accepts a certificate in this way, the client MUST cache the certificate (or some non-forgeable representation such as a hash value) and in future connection attempts behave as in Case #2. (It is the resposibility of the human user to verify the hash value or fingerprint of the certificate with the peer over a trusted communication layer.) If the client is an automated application, then it SHOULD terminate the connection with a bad certificate error and log the error to an appropriate audit log; an automated application MAY provide a configuration setting that disables this check, but MUST provide a setting that enables the check.
TOC |
To follow.
TOC |
This document has no actions for the IANA.
TOC |
TOC |
[IDNA] | Faltstrom, P., Hoffman, P., and A. Costello, “Internationalizing Domain Names in Applications (IDNA),” RFC 3490, March 2003 (TXT). |
[IP] | Postel, J., “Internet Protocol,” STD 5, RFC 791, September 1981 (TXT). |
[IPv6] | Deering, S. and R. Hinden, “Internet Protocol, Version 6 (IPv6) Specification,” RFC 2460, December 1998 (TXT, HTML, XML). |
[TERMS] | Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” BCP 14, RFC 2119, March 1997 (TXT, HTML, XML). |
[X509] | Cooper, D., Santesson, S., Farrell, S., Boeyen, S., Housley, R., and W. Polk, “Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile,” RFC 5280, May 2008 (TXT). |
TOC |
TOC |
Peter Saint-Andre | |
Cisco | |
Email: | psaintan@cisco.com |
Kurt D. Zeilenga | |
Isode Limited | |
Email: | Kurt.Zeilenga@Isode.COM |
Jeff Hodges | |
PayPal | |
Email: | Jeff.Hodges@KingsMountain.com |
RL 'Bob' Morgan | |
UWashington/Internet2 | |
Email: | rlmorgan@washington.edu |