One document matched: draft-ietf-tls-oob-pubkey-03.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc strict="no" ?>
<?rfc toc="yes"?>
<?rfc tocdepth="4"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no" ?>
<rfc category="std" docName="draft-ietf-tls-oob-pubkey-03.txt" ipr="trust200902">
<front>
<!-- The abbreviated title is used in the page header - it is only necessary if the
full title is longer than 39 characters -->
<title abbrev="TLS OOB Public Key Validation">TLS Out-of-Band Public Key Validation</title>
<!-- add 'role="editor"' below for the editors if appropriate -->
<author fullname="Paul Wouters" initials="P." surname="Wouters">
<organization>No Hats Corporation</organization>
<address>
<postal>
<street/>
<city/>
<region/>
<code/>
<country/>
</postal>
<email>paul@nohats.ca</email>
</address>
</author>
<author fullname="John Gilmore" initials="J." surname="Gilmore">
<organization />
<address>
<postal>
<street>PO Box 170608</street>
<city>San Francisco</city>
<region>California</region>
<code>94117</code>
<country>USA</country>
</postal>
<phone>+1 415 221 6524</phone>
<email>gnu@toad.com</email>
<uri>https://www.toad.com/</uri>
</address>
</author>
<author fullname="Samuel Weiler" initials="S." surname="Weiler">
<organization>SPARTA, Inc.</organization>
<address>
<postal>
<street>7110 Samuel Morse Drive</street>
<city>Columbia, Maryland</city>
<code>21046</code>
<country>US</country>
</postal>
<email>weiler@tislabs.com</email>
</address>
</author>
<author initials="T." surname="Kivinen" fullname="Tero Kivinen">
<organization>AuthenTec</organization>
<address>
<postal>
<street>Eerikinkatu 28</street>
<city>HELSINKI</city>
<code>FI-00180</code>
<country>FI</country>
</postal>
<email>kivinen@iki.fi</email>
</address>
</author>
<author initials="H." surname="Tschofenig" fullname="Hannes Tschofenig">
<organization>Nokia Siemens Networks</organization>
<address>
<postal>
<street>Linnoitustie 6</street>
<city>Espoo</city>
<code>02600</code>
<country>Finland</country>
</postal>
<phone>+358 (50) 4871445</phone>
<email>Hannes.Tschofenig@gmx.net</email>
<uri>http://www.tschofenig.priv.at</uri>
</address>
</author>
<date year="2012" />
<!-- If the month and year are both specified and are the current ones, xml2rfc will fill
in the current day for you. If only the current year is specified, xml2rfc will fill
in the current day and month for you. If the year is not the current one, it is
to specify at least a month (xml2rfc assumes day="1" if not specified for the
purpose of calculating the expiry date). With drafts it is normally sufficient to
specify just the year. -->
<!-- Meta-data Declarations -->
<area>Security</area>
<workgroup>TLS</workgroup>
<!-- WG name at the upperleft corner of the doc,
IETF is fine for individual submissions.
If this element is not present, the default is "Network Working Group",
which is used by the RFC Editor as a nod to the history of the IETF. -->
<keyword>TLS</keyword>
<keyword>DNSSEC</keyword>
<keyword>DANE</keyword>
<keyword>Raw Public Key</keyword>
<!-- Keywords will be incorporated into HTML output
files in a meta tag but they have no effect on text or nroff
output. If you submit your draft to the RFC Editor, the
keywords will be used for the search engine. -->
<abstract>
<t>
This document specifies a new TLS certificate type for exchanging
raw public keys in Transport Layer Security (TLS)
and Datagram Transport Layer Security (DTLS) for use with out-of-band
public key validation. Currently, TLS authentication can only occur via X.509-based Public
Key Infrastructure (PKI) or OpenPGP certificates. By specifying a minimum resource for raw
public key exchange, implementations can use alternative public key validation
methods.
</t>
<t>
One such alternative public key valiation method is offered by the DNS-Based Authentication of Named Entities (DANE) together with DNS Security. Another alternative is to utilize pre-configured keys, as is the case with sensors and other
embedded devices. The usage of raw public keys, instead of X.509-based certificates, leads to a smaller
code footprint.
</t>
<t>The support for raw public keys is introduced into TLS via a new non-PKIX certificate type.</t>
</abstract>
</front>
<middle>
<section anchor="into" title="Introduction">
<t>Traditionally, TLS server public keys are obtained in PKIX containers
in-band using the TLS handshake and validated using trust anchors
based on a <xref target='PKIX'/> certification authority (CA). This
method can add a complicated trust relationship that is difficult
to validate. Examples of such complexity can be seen in
<xref target='Defeating-SSL'/>.</t>
<t>Alternative methods are available that allow a TLS client to obtain
the TLS server public key:</t>
<t><list style="symbols">
<t>The TLS server public key is obtained from a DNSSEC secured resource records
using DANE <xref target="I-D.ietf-dane-protocol"/>.</t>
<t>The TLS server public key is obtained from a <xref target='PKIX'/>
certificate chain from an Lightweight Directory Access Protocol (LDAP) <xref target="LDAP"/> server.</t>
<t>The TLS client and server public key is provisioned into the operating system firmware image,
and updated via software updates.</t>
</list>
</t>
<t>Some smart objects use the UDP-based Constrained Application Protocol (CoAP) <xref target="I-D.ietf-core-coap"/> to
interact with a Web server to upload sensor data at a regular intervals, such as
temperature readings. CoAP <xref target="I-D.ietf-core-coap"/> can utilize
DTLS for securing the client-to-server communication. As part of the manufacturing process,
the embeded device may be configured with the address and the public key of a
dedicated CoAP server, as well as a public key for the client itself.
The usage of X.509-based PKIX certificates <xref target='PKIX'/> may not suit all
smart object deployments and would therefore be an unneccesarry burden.
</t>
<t>The Transport Layer Security (TLS) Protocol Version 1.2 <xref target="RFC5246"/> provides
a framework for extensions to TLS as well as guidelines for
designing such extensions. This document uses the TLS Certificate Type extension point
to define a new non-X.509 certificate type for carrying raw public keys. </t>
</section>
<section title="Terminology" anchor="terminology">
<t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in <xref target="RFC2119">RFC 2119</xref>.</t>
</section>
<section title="TLS Handshake Extension">
<t>
This section describes the changes to the TLS handshake message
contents when raw public key certificates are to be used.
<xref target="flow"/> illustrates the exchange of messages as
described in the sub-sections below. The new "RawPublicKey" value
in the cert_type extension indicates the ability and desire to
exchange raw public keys, which are then exchanged as part of the
certificate payloads. Note that the certificate payloads only
contain the SubjectPublicKeyInfo structure instead of the entire
certificate.
</t>
<t>
<figure anchor="flow" title="Example Message Flow">
<artwork>
<![CDATA[
client_hello,
cert_type="RawPublicKey" ->
<- server_hello,
cert_type="RawPublicKey",
certificate,
server_key_exchange,
certificate_request,
server_hello_done
certificate,
client_key_exchange,
certificate_verify,
change_cipher_spec,
finished ->
<- change_cipher_spec,
finished
Application Data <-------> Application Data
]]>
</artwork>
</figure>
</t>
<section title="Client Hello">
<t>
In order to indicate the support of out-of-band raw public keys,
clients MUST include an extension of type "cert_type" to the extended
client hello message. The "cert_type" TLS extension, which is defined
in <xref target="RFC6091"/>, is assigned the
value of 9 from the TLS ExtensionType registry. This value is used
as the extension number for the extensions in both the client hello
message and the server hello message. The hello extension mechanism
is described in <xref target="RFC5246"/>.
</t>
<t>
The "cert_type" TLS extension carries a list of supported certificate types the
client can use, sorted by client preference. This extension MUST be
omitted if the client only supports X.509 certificates. The
"extension_data" field of this extension contains a
CertificateTypeExtension structure. Note that the
CertificateTypeExtension structure is being used both by the client
and the server, even though the structure is only specified once in
this document.
</t>
<t>The <xref target="RFC6091"/> defined CertificateTypeExtension is extended
as follows:
<figure>
<artwork>
<![CDATA[
enum { client, server } ClientOrServerExtension;
enum { X.509(0), OpenPGP(1),
RawPublicKey([TBD]),
(255) } CertificateType;
struct {
select(ClientOrServerExtension)
case client:
CertificateType certificate_types<1..2^8-1>;
case server:
CertificateType certificate_type;
}
} CertificateTypeExtension;
]]>
</artwork>
</figure>
</t>
<t>No new cipher suites are required to use raw public keys. All
existing cipher suites that support a key exchange method compatible
with the defined extension can be used.</t>
</section>
<section title="Server Hello">
<t>If the server receives a client hello that contains the "cert_type"
extension and chooses a cipher suite then two outcomes are possible.
The server MUST either select a certificate type from the CertificateType
field in the extended client hello or terminate the session with a
fatal alert of type "unsupported_certificate".</t>
<t>The certificate type selected by the server is encoded in a
CertificateTypeExtension structure, which is included in the extended
server hello message using an extension of type "cert_type". Servers
that only support X.509 certificates MAY omit including the
"cert_type" extension in the extended server hello.
</t>
<t>If the negotiated certificate type is RawPublicKey the TLS server MUST
place the SubjectPublicKeyInfo structure into the Certificate payload.
The public key MUST match the selected key exchange algorithm.</t>
</section>
<section title="Certificate Request">
<t>
The semantics of this message remain the same as in the TLS
specification.
</t>
</section>
<section title="Other Handshake Messages">
<t>All the other handshake messages are identical to the TLS
specification.</t>
</section>
<section title="Client authentication">
<t>Client authentication by the TLS server is supported only through
authentication of the received client SubjectPublicKeyInfo via an
out-of-band method</t>
</section>
</section>
<section title="Security Considerations" anchor="security">
<t>The transmission of raw public keys, as described in this document,
provides benefits by lowering the over-the-air transmission overhead since
raw public keys are quite naturally smaller than an entire certificate.
There are also advantages from a codesize point of view for parsing and
processing these keys. The crytographic procedures for assocating the
public key with the possession of a private key also follows standard
procedures.</t>
<t>The main security challenge is, however, how to associate the public
key with a specific entity. This information will be needed to make
authorization decisions. Without a secure binding, man-in-the-middle
attacks may be the consequence. This document assumes that such
binding can be made out-of-band and we list a few examples in <xref target="into"/>.
DANE <xref target="I-D.ietf-dane-protocol"/> offers one such approach.
If public keys are obtained using DANE, these public keys are authenticated via DNSSEC.
Pre-configured keys is another out of band method for authenticating raw public keys.
While pre-configured keys are not suitable for
a generic Web-based e-commerce environment such keys are a reasonable approach
for many smart object deployments where there is a close relationship between
the software running on the device and the server-side communication endpoint.
Regardless of the chosen mechanism for out-of-band public key validation an
assessment of the most suitable approach has to be made prior to the start of a
deployment to ensure the security of the system.</t>
</section>
<section anchor="IANA" title="IANA Considerations">
<t>This document requests IANA to assign a TLS cert_type value for RawPublicKey.
The cert_type registry is established with <xref target="RFC6091"/>.</t>
</section>
<section title="Contributors" anchor="contributors">
<t>The following individuals made important contributions to this document: Paul Hoffman.</t>
</section>
<section title="Acknowledgements" anchor="acknowledgements">
<t>The feedback from the TLS working group meeting at IETF#81 has
substantially shaped the document and we would like to thank the
meeting participants for their input. The support for hashes of
public keys has been moved to <xref target="I-D.ietf-tls-cached-info"/> after the discussions at the IETF#82
meeting and the feedback from Eric Rescorla.</t>
<t>We would like to thank Martin Rex, Bill Frantz, Zach Shelby,
Carsten Bormann, Cullen Jennings, Rene Struik, Alper Yegin,
and Jim Schaad.</t>
</section>
</middle>
<!-- *****BACK MATTER ***** -->
<back>
<!-- References split into informative and normative -->
<!-- There are 2 ways to insert reference entries from the citation libraries:
1. define an ENTITY at the top, and use "ampersand character"RFC2629; here (as shown)
2. simply use a PI "less than character"?rfc include="reference.RFC.2119.xml"?> here
(for I-Ds: include="reference.I-D.narten-iana-considerations-rfc2434bis.xml")
Both are cited textually in the same manner: by using xref elements.
If you use the PI option, xml2rfc will, by default, try to find included files in the same
directory as the including file. You can also define the XML_LIBRARY environment variable
with a value containing a set of directories to search. These can be either in the local
filing system or remote ones accessed by http (http://domain/dir/... ).-->
<references title="Normative References">
<?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml"?>
<?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.5246.xml"?>
<reference anchor='PKIX'>
<front>
<title>Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile</title>
<author initials='D.' surname='Cooper' fullname='D. Cooper'>
<organization /></author>
<author initials='S.' surname='Santesson' fullname='S. Santesson'>
<organization /></author>
<author initials='S.' surname='Farrell' fullname='S. Farrell'>
<organization /></author>
<author initials='S.' surname='Boeyen' fullname='S. Boeyen'>
<organization /></author>
<author initials='R.' surname='Housley' fullname='R. Housley'>
<organization /></author>
<author initials='W.' surname='Polk' fullname='W. Polk'>
<organization /></author>
<date year='2008' month='May' />
<abstract>
<t>This memo profiles the X.509 v3 certificate and X.509 v2 certificate revocation list (CRL) for use in the Internet. An overview of this approach and model is provided as an introduction. The X.509 v3 certificate format is described in detail, with additional information regarding the format and semantics of Internet name forms. Standard certificate extensions are described and two Internet-specific extensions are defined. A set of required certificate extensions is specified. The X.509 v2 CRL format is described in detail along with standard and Internet-specific extensions. An algorithm for X.509 certification path validation is described. An ASN.1 module and examples are provided in the appendices. [STANDARDS TRACK]</t></abstract></front>
<seriesInfo name='RFC' value='5280' />
<format type='TXT' octets='352580' target='ftp://ftp.isi.edu/in-notes/rfc5280.txt' />
</reference>
</references>
<references title="Informative References">
<?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.6091.xml"?>
<?rfc include="http://xml.resource.org/public/rfc/bibxml3/reference.I-D.ietf-dane-protocol.xml"?>
<?rfc include="http://xml.resource.org/public/rfc/bibxml3/reference.I-D.ietf-core-coap.xml"?>
<?rfc include="http://xml.resource.org/public/rfc/bibxml3/reference.I-D.ietf-tls-cached-info.xml"?>
<reference anchor='LDAP'>
<front>
<title>Lightweight Directory Access Protocol (LDAP): The Protocol</title>
<author initials='J.' surname='Sermersheim' fullname='J. Sermersheim'>
<organization /></author>
<date year='2006' month='June' />
<abstract>
<t>This document describes the protocol elements, along with
their semantics and encodings, of the Lightweight Directory
Access Protocol (LDAP). LDAP provides access to distributed
directory services that act in accordance with X.500 data
and service models. These protocol elements are based
on those described in the X.500 Directory Access Protocol
(DAP). [STANDARDS TRACK]</t>
</abstract>
</front>
<seriesInfo name='RFC' value='4511' />
<format type='TXT' octets='150116' target='ftp://ftp.isi.edu/in-notes/rfc4511.txt' />
</reference>
<reference anchor='Defeating-SSL' target='http://www.blackhat.com/presentations/bh-dc-09/Marlinspike/BlackHat-DC-09-Marlinspike-Defeating-SSL.pdf'>
<front>
<title>New Tricks for Defeating SSL in Practice</title>
<author initials='M.' surname='Marlinspike' fullname='Moxie Marlinspike'>
<organization /></author>
<date year='2009' month='February' />
</front>
<format type='PDF' target='http://www.blackhat.com/presentations/bh-dc-09/Marlinspike/BlackHat-DC-09-Marlinspike-Defeating-SSL.pdf' />
</reference>
</references>
</back>
</rfc>
| PAFTECH AB 2003-2026 | 2026-04-22 03:56:38 |