]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - contrib/bind9/doc/rfc/rfc4398.txt
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / contrib / bind9 / doc / rfc / rfc4398.txt
1
2
3
4
5
6
7 Network Working Group                                       S. Josefsson
8 Request for Comments: 4398                                    March 2006
9 Obsoletes: 2538
10 Category: Standards Track
11
12
13           Storing Certificates in the Domain Name System (DNS)
14
15 Status of This Memo
16
17    This document specifies an Internet standards track protocol for the
18    Internet community, and requests discussion and suggestions for
19    improvements.  Please refer to the current edition of the "Internet
20    Official Protocol Standards" (STD 1) for the standardization state
21    and status of this protocol.  Distribution of this memo is unlimited.
22
23 Copyright Notice
24
25    Copyright (C) The Internet Society (2006).
26
27 Abstract
28
29    Cryptographic public keys are frequently published, and their
30    authenticity is demonstrated by certificates.  A CERT resource record
31    (RR) is defined so that such certificates and related certificate
32    revocation lists can be stored in the Domain Name System (DNS).
33
34    This document obsoletes RFC 2538.
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58 Josefsson                   Standards Track                     [Page 1]
59 \f
60 RFC 4398            Storing Certificates in the DNS        February 2006
61
62
63 Table of Contents
64
65    1. Introduction ....................................................3
66    2. The CERT Resource Record ........................................3
67       2.1. Certificate Type Values ....................................4
68       2.2. Text Representation of CERT RRs ............................6
69       2.3. X.509 OIDs .................................................6
70    3. Appropriate Owner Names for CERT RRs ............................7
71       3.1. Content-Based X.509 CERT RR Names ..........................8
72       3.2. Purpose-Based X.509 CERT RR Names ..........................9
73       3.3. Content-Based OpenPGP CERT RR Names ........................9
74       3.4. Purpose-Based OpenPGP CERT RR Names .......................10
75       3.5. Owner Names for IPKIX, ISPKI, IPGP, and IACPKIX ...........10
76    4. Performance Considerations .....................................11
77    5. Contributors ...................................................11
78    6. Acknowledgements ...............................................11
79    7. Security Considerations ........................................12
80    8. IANA Considerations ............................................12
81    9. Changes since RFC 2538 .........................................13
82    10. References ....................................................14
83       10.1. Normative References .....................................14
84       10.2. Informative References ...................................15
85    Appendix A.  Copying Conditions ...................................16
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114 Josefsson                   Standards Track                     [Page 2]
115 \f
116 RFC 4398            Storing Certificates in the DNS        February 2006
117
118
119 1.  Introduction
120
121    Public keys are frequently published in the form of a certificate,
122    and their authenticity is commonly demonstrated by certificates and
123    related certificate revocation lists (CRLs).  A certificate is a
124    binding, through a cryptographic digital signature, of a public key,
125    a validity interval and/or conditions, and identity, authorization,
126    or other information.  A certificate revocation list is a list of
127    certificates that are revoked, and of incidental information, all
128    signed by the signer (issuer) of the revoked certificates.  Examples
129    are X.509 certificates/CRLs in the X.500 directory system or OpenPGP
130    certificates/revocations used by OpenPGP software.
131
132    Section 2 specifies a CERT resource record (RR) for the storage of
133    certificates in the Domain Name System [1] [2].
134
135    Section 3 discusses appropriate owner names for CERT RRs.
136
137    Sections 4, 7, and 8 cover performance, security, and IANA
138    considerations, respectively.
139
140    Section 9 explains the changes in this document compared to RFC 2538.
141
142    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
143    "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
144    document are to be interpreted as described in [3].
145
146 2.  The CERT Resource Record
147
148    The CERT resource record (RR) has the structure given below.  Its RR
149    type code is 37.
150
151                        1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3
152    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
153    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
154    |             type              |             key tag           |
155    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
156    |   algorithm   |                                               /
157    +---------------+            certificate or CRL                 /
158    /                                                               /
159    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|
160
161    The type field is the certificate type as defined in Section 2.1
162    below.
163
164    The key tag field is the 16-bit value computed for the key embedded
165    in the certificate, using the RRSIG Key Tag algorithm described in
166    Appendix B of [12].  This field is used as an efficiency measure to
167
168
169
170 Josefsson                   Standards Track                     [Page 3]
171 \f
172 RFC 4398            Storing Certificates in the DNS        February 2006
173
174
175    pick which CERT RRs may be applicable to a particular key.  The key
176    tag can be calculated for the key in question, and then only CERT RRs
177    with the same key tag need to be examined.  Note that two different
178    keys can have the same key tag.  However, the key MUST be transformed
179    to the format it would have as the public key portion of a DNSKEY RR
180    before the key tag is computed.  This is only possible if the key is
181    applicable to an algorithm and complies to limits (such as key size)
182    defined for DNS security.  If it is not, the algorithm field MUST be
183    zero and the tag field is meaningless and SHOULD be zero.
184
185    The algorithm field has the same meaning as the algorithm field in
186    DNSKEY and RRSIG RRs [12], except that a zero algorithm field
187    indicates that the algorithm is unknown to a secure DNS, which may
188    simply be the result of the algorithm not having been standardized
189    for DNSSEC [11].
190
191 2.1.  Certificate Type Values
192
193    The following values are defined or reserved:
194
195          Value  Mnemonic  Certificate Type
196          -----  --------  ----------------
197              0            Reserved
198              1  PKIX      X.509 as per PKIX
199              2  SPKI      SPKI certificate
200              3  PGP       OpenPGP packet
201              4  IPKIX     The URL of an X.509 data object
202              5  ISPKI     The URL of an SPKI certificate
203              6  IPGP      The fingerprint and URL of an OpenPGP packet
204              7  ACPKIX    Attribute Certificate
205              8  IACPKIX   The URL of an Attribute Certificate
206          9-252            Available for IANA assignment
207            253  URI       URI private
208            254  OID       OID private
209            255            Reserved
210      256-65279            Available for IANA assignment
211    65280-65534            Experimental
212          65535            Reserved
213
214    These values represent the initial content of the IANA registry; see
215    Section 8.
216
217    The PKIX type is reserved to indicate an X.509 certificate conforming
218    to the profile defined by the IETF PKIX working group [8].  The
219    certificate section will start with a one-octet unsigned OID length
220    and then an X.500 OID indicating the nature of the remainder of the
221
222
223
224
225
226 Josefsson                   Standards Track                     [Page 4]
227 \f
228 RFC 4398            Storing Certificates in the DNS        February 2006
229
230
231    certificate section (see Section 2.3, below).  (NOTE: X.509
232    certificates do not include their X.500 directory-type-designating
233    OID as a prefix.)
234
235    The SPKI and ISPKI types are reserved to indicate the SPKI
236    certificate format [15], for use when the SPKI documents are moved
237    from experimental status.  The format for these two CERT RR types
238    will need to be specified later.
239
240    The PGP type indicates an OpenPGP packet as described in [5] and its
241    extensions and successors.  This is used to transfer public key
242    material and revocation signatures.  The data is binary and MUST NOT
243    be encoded into an ASCII armor.  An implementation SHOULD process
244    transferable public keys as described in Section 10.1 of [5], but it
245    MAY handle additional OpenPGP packets.
246
247    The ACPKIX type indicates an Attribute Certificate format [9].
248
249    The IPKIX and IACPKIX types indicate a URL that will serve the
250    content that would have been in the "certificate, CRL, or URL" field
251    of the corresponding type (PKIX or ACPKIX, respectively).
252
253    The IPGP type contains both an OpenPGP fingerprint for the key in
254    question, as well as a URL.  The certificate portion of the IPGP CERT
255    RR is defined as a one-octet fingerprint length, followed by the
256    OpenPGP fingerprint, followed by the URL.  The OpenPGP fingerprint is
257    calculated as defined in RFC 2440 [5].  A zero-length fingerprint or
258    a zero-length URL are legal, and indicate URL-only IPGP data or
259    fingerprint-only IPGP data, respectively.  A zero-length fingerprint
260    and a zero-length URL are meaningless and invalid.
261
262    The IPKIX, ISPKI, IPGP, and IACPKIX types are known as "indirect".
263    These types MUST be used when the content is too large to fit in the
264    CERT RR and MAY be used at the implementer's discretion.  They SHOULD
265    NOT be used where the DNS message is 512 octets or smaller and could
266    thus be expected to fit a UDP packet.
267
268    The URI private type indicates a certificate format defined by an
269    absolute URI.  The certificate portion of the CERT RR MUST begin with
270    a null-terminated URI [10], and the data after the null is the
271    private format certificate itself.  The URI SHOULD be such that a
272    retrieval from it will lead to documentation on the format of the
273    certificate.  Recognition of private certificate types need not be
274    based on URI equality but can use various forms of pattern matching
275    so that, for example, subtype or version information can also be
276    encoded into the URI.
277
278
279
280
281
282 Josefsson                   Standards Track                     [Page 5]
283 \f
284 RFC 4398            Storing Certificates in the DNS        February 2006
285
286
287    The OID private type indicates a private format certificate specified
288    by an ISO OID prefix.  The certificate section will start with a
289    one-octet unsigned OID length and then a BER-encoded OID indicating
290    the nature of the remainder of the certificate section.  This can be
291    an X.509 certificate format or some other format.  X.509 certificates
292    that conform to the IETF PKIX profile SHOULD be indicated by the PKIX
293    type, not the OID private type.  Recognition of private certificate
294    types need not be based on OID equality but can use various forms of
295    pattern matching such as OID prefix.
296
297 2.2.  Text Representation of CERT RRs
298
299    The RDATA portion of a CERT RR has the type field as an unsigned
300    decimal integer or as a mnemonic symbol as listed in Section 2.1,
301    above.
302
303    The key tag field is represented as an unsigned decimal integer.
304
305    The algorithm field is represented as an unsigned decimal integer or
306    a mnemonic symbol as listed in [12].
307
308    The certificate/CRL portion is represented in base 64 [16] and may be
309    divided into any number of white-space-separated substrings, down to
310    single base-64 digits, which are concatenated to obtain the full
311    signature.  These substrings can span lines using the standard
312    parenthesis.
313
314    Note that the certificate/CRL portion may have internal sub-fields,
315    but these do not appear in the master file representation.  For
316    example, with type 254, there will be an OID size, an OID, and then
317    the certificate/CRL proper.  However, only a single logical base-64
318    string will appear in the text representation.
319
320 2.3.  X.509 OIDs
321
322    OIDs have been defined in connection with the X.500 directory for
323    user certificates, certification authority certificates, revocations
324    of certification authority, and revocations of user certificates.
325    The following table lists the OIDs, their BER encoding, and their
326    length-prefixed hex format for use in CERT RRs:
327
328
329
330
331
332
333
334
335
336
337
338 Josefsson                   Standards Track                     [Page 6]
339 \f
340 RFC 4398            Storing Certificates in the DNS        February 2006
341
342
343        id-at-userCertificate
344            = { joint-iso-ccitt(2) ds(5) at(4) 36 }
345               == 0x 03 55 04 24
346        id-at-cACertificate
347            = { joint-iso-ccitt(2) ds(5) at(4) 37 }
348               == 0x 03 55 04 25
349        id-at-authorityRevocationList
350            = { joint-iso-ccitt(2) ds(5) at(4) 38 }
351               == 0x 03 55 04 26
352        id-at-certificateRevocationList
353            = { joint-iso-ccitt(2) ds(5) at(4) 39 }
354               == 0x 03 55 04 27
355
356 3.  Appropriate Owner Names for CERT RRs
357
358    It is recommended that certificate CERT RRs be stored under a domain
359    name related to their subject, i.e., the name of the entity intended
360    to control the private key corresponding to the public key being
361    certified.  It is recommended that certificate revocation list CERT
362    RRs be stored under a domain name related to their issuer.
363
364    Following some of the guidelines below may result in DNS names with
365    characters that require DNS quoting as per Section 5.1 of RFC 1035
366    [2].
367
368    The choice of name under which CERT RRs are stored is important to
369    clients that perform CERT queries.  In some situations, the clients
370    may not know all information about the CERT RR object it wishes to
371    retrieve.  For example, a client may not know the subject name of an
372    X.509 certificate, or the email address of the owner of an OpenPGP
373    key.  Further, the client might only know the hostname of a service
374    that uses X.509 certificates or the Key ID of an OpenPGP key.
375
376    Therefore, two owner name guidelines are defined: content-based owner
377    names and purpose-based owner names.  A content-based owner name is
378    derived from the content of the CERT RR data; for example, the
379    Subject field in an X.509 certificate or the User ID field in OpenPGP
380    keys.  A purpose-based owner name is a name that a client retrieving
381    CERT RRs ought to know already; for example, the host name of an
382    X.509 protected service or the Key ID of an OpenPGP key.  The
383    content-based and purpose-based owner name may be the same; for
384    example, when a client looks up a key based on the From: address of
385    an incoming email.
386
387    Implementations SHOULD use the purpose-based owner name guidelines
388    described in this document and MAY use CNAME RRs at content-based
389    owner names (or other names), pointing to the purpose-based owner
390    name.
391
392
393
394 Josefsson                   Standards Track                     [Page 7]
395 \f
396 RFC 4398            Storing Certificates in the DNS        February 2006
397
398
399    Note that this section describes an application-based mapping from
400    the name space used in a certificate to the name space used by DNS.
401    The DNS does not infer any relationship amongst CERT resource records
402    based on similarities or differences of the DNS owner name(s) of CERT
403    resource records.  For example, if multiple labels are used when
404    mapping from a CERT identifier to a domain name, then care must be
405    taken in understanding wildcard record synthesis.
406
407 3.1.  Content-Based X.509 CERT RR Names
408
409    Some X.509 versions, such as the PKIX profile of X.509 [8], permit
410    multiple names to be associated with subjects and issuers under
411    "Subject Alternative Name" and "Issuer Alternative Name".  For
412    example, the PKIX profile has such Alternate Names with an ASN.1
413    specification as follows:
414
415       GeneralName ::= CHOICE {
416            otherName                       [0]     OtherName,
417            rfc822Name                      [1]     IA5String,
418            dNSName                         [2]     IA5String,
419            x400Address                     [3]     ORAddress,
420            directoryName                   [4]     Name,
421            ediPartyName                    [5]     EDIPartyName,
422            uniformResourceIdentifier       [6]     IA5String,
423            iPAddress                       [7]     OCTET STRING,
424            registeredID                    [8]     OBJECT IDENTIFIER }
425
426    The recommended locations of CERT storage are as follows, in priority
427    order:
428
429    1.  If a domain name is included in the identification in the
430        certificate or CRL, that ought to be used.
431    2.  If a domain name is not included but an IP address is included,
432        then the translation of that IP address into the appropriate
433        inverse domain name ought to be used.
434    3.  If neither of the above is used, but a URI containing a domain
435        name is present, that domain name ought to be used.
436    4.  If none of the above is included but a character string name is
437        included, then it ought to be treated as described below for
438        OpenPGP names.
439    5.  If none of the above apply, then the distinguished name (DN)
440        ought to be mapped into a domain name as specified in [4].
441
442    Example 1: An X.509v3 certificate is issued to /CN=John Doe /DC=Doe/
443    DC=com/DC=xy/O=Doe Inc/C=XY/ with Subject Alternative Names of (a)
444    string "John (the Man) Doe", (b) domain name john-doe.com, and (c)
445    URI <https://www.secure.john-doe.com:8080/>.  The storage locations
446    recommended, in priority order, would be
447
448
449
450 Josefsson                   Standards Track                     [Page 8]
451 \f
452 RFC 4398            Storing Certificates in the DNS        February 2006
453
454
455    1.  john-doe.com,
456    2.  www.secure.john-doe.com, and
457    3.  Doe.com.xy.
458
459    Example 2: An X.509v3 certificate is issued to /CN=James Hacker/
460    L=Basingstoke/O=Widget Inc/C=GB/ with Subject Alternate names of (a)
461    domain name widget.foo.example, (b) IPv4 address 10.251.13.201, and
462    (c) string "James Hacker <hacker@mail.widget.foo.example>".  The
463    storage locations recommended, in priority order, would be
464
465    1.  widget.foo.example,
466    2.  201.13.251.10.in-addr.arpa, and
467    3.  hacker.mail.widget.foo.example.
468
469 3.2.  Purpose-Based X.509 CERT RR Names
470
471    Due to the difficulty for clients that do not already possess a
472    certificate to reconstruct the content-based owner name,
473    purpose-based owner names are recommended in this section.
474    Recommendations for purpose-based owner names vary per scenario.  The
475    following table summarizes the purpose-based X.509 CERT RR owner name
476    guidelines for use with S/MIME [17], SSL/TLS [13], and IPsec [14]:
477
478     Scenario             Owner name
479     ------------------   ----------------------------------------------
480     S/MIME Certificate   Standard translation of an RFC 2822 email
481                          address.  Example: An S/MIME certificate for
482                          "postmaster@example.org" will use a standard
483                          hostname translation of the owner name,
484                          "postmaster.example.org".
485
486     TLS Certificate      Hostname of the TLS server.
487
488     IPsec Certificate    Hostname of the IPsec machine and/or, for IPv4
489                          or IPv6 addresses, the fully qualified domain
490                          name in the appropriate reverse domain.
491
492    An alternate approach for IPsec is to store raw public keys [18].
493
494 3.3.  Content-Based OpenPGP CERT RR Names
495
496    OpenPGP signed keys (certificates) use a general character string
497    User ID [5].  However, it is recommended by OpenPGP that such names
498    include the RFC 2822 [7] email address of the party, as in "Leslie
499    Example <Leslie@host.example>".  If such a format is used, the CERT
500    ought to be under the standard translation of the email address into
501
502
503
504
505
506 Josefsson                   Standards Track                     [Page 9]
507 \f
508 RFC 4398            Storing Certificates in the DNS        February 2006
509
510
511    a domain name, which would be leslie.host.example in this case.  If
512    no RFC 2822 name can be extracted from the string name, no specific
513    domain name is recommended.
514
515    If a user has more than one email address, the CNAME type can be used
516    to reduce the amount of data stored in the DNS.  For example:
517
518       $ORIGIN example.org.
519       smith        IN CERT PGP 0 0 <OpenPGP binary>
520       john.smith   IN CNAME smith
521       js           IN CNAME smith
522
523 3.4.  Purpose-Based OpenPGP CERT RR Names
524
525    Applications that receive an OpenPGP packet containing encrypted or
526    signed data but do not know the email address of the sender will have
527    difficulties constructing the correct owner name and cannot use the
528    content-based owner name guidelines.  However, these clients commonly
529    know the key fingerprint or the Key ID.  The key ID is found in
530    OpenPGP packets, and the key fingerprint is commonly found in
531    auxiliary data that may be available.  In this case, use of an owner
532    name identical to the key fingerprint and the key ID expressed in
533    hexadecimal [16] is recommended.  For example:
534
535       $ORIGIN example.org.
536       0424D4EE81A0E3D119C6F835EDA21E94B565716F IN CERT PGP ...
537       F835EDA21E94B565716F                     IN CERT PGP ...
538       B565716F                                 IN CERT PGP ...
539
540    If the same key material is stored for several owner names, the use
541    of CNAME may help avoid data duplication.  Note that CNAME is not
542    always applicable, because it maps one owner name to the other for
543    all purposes, which may be sub-optimal when two keys with the same
544    Key ID are stored.
545
546 3.5.  Owner Names for IPKIX, ISPKI, IPGP, and IACPKIX
547
548    These types are stored under the same owner names, both purpose- and
549    content-based, as the PKIX, SPKI, PGP, and ACPKIX types.
550
551
552
553
554
555
556
557
558
559
560
561
562 Josefsson                   Standards Track                    [Page 10]
563 \f
564 RFC 4398            Storing Certificates in the DNS        February 2006
565
566
567 4.  Performance Considerations
568
569    The Domain Name System (DNS) protocol was designed for small
570    transfers, typically below 512 octets.  While larger transfers will
571    perform correctly and work is underway to make larger transfers more
572    efficient, it is still advisable at this time that every reasonable
573    effort be made to minimize the size of certificates stored within the
574    DNS.  Steps that can be taken may include using the fewest possible
575    optional or extension fields and using short field values for
576    necessary variable-length fields.
577
578    The RDATA field in the DNS protocol may only hold data of size 65535
579    octets (64kb) or less.  This means that each CERT RR MUST NOT contain
580    more than 64kb of payload, even if the corresponding certificate or
581    certificate revocation list is larger.  This document addresses this
582    by defining "indirect" data types for each normal type.
583
584    Deploying CERT RRs to support digitally signed email changes the
585    access patterns of DNS lookups from per-domain to per-user.  If
586    digitally signed email and a key/certificate lookup based on CERT RRs
587    are deployed on a wide scale, this may lead to an increased DNS load,
588    with potential performance and cache effectiveness consequences.
589    Whether or not this load increase will be noticeable is not known.
590
591 5.  Contributors
592
593    The majority of this document is copied verbatim from RFC 2538, by
594    Donald Eastlake 3rd and Olafur Gudmundsson.
595
596 6.  Acknowledgements
597
598    Thanks to David Shaw and Michael Graff for their contributions to
599    earlier works that motivated, and served as inspiration for, this
600    document.
601
602    This document was improved by suggestions and comments from Olivier
603    Dubuisson, Scott Hollenbeck, Russ Housley, Peter Koch, Olaf M.
604    Kolkman, Ben Laurie, Edward Lewis, John Loughney, Allison Mankin,
605    Douglas Otis, Marcos Sanz, Pekka Savola, Jason Sloderbeck, Samuel
606    Weiler, and Florian Weimer.  No doubt the list is incomplete.  We
607    apologize to anyone we left out.
608
609
610
611
612
613
614
615
616
617
618 Josefsson                   Standards Track                    [Page 11]
619 \f
620 RFC 4398            Storing Certificates in the DNS        February 2006
621
622
623 7.  Security Considerations
624
625    By definition, certificates contain their own authenticating
626    signatures.  Thus, it is reasonable to store certificates in
627    non-secure DNS zones or to retrieve certificates from DNS with DNS
628    security checking not implemented or deferred for efficiency.  The
629    results may be trusted if the certificate chain is verified back to a
630    known trusted key and this conforms with the user's security policy.
631
632    Alternatively, if certificates are retrieved from a secure DNS zone
633    with DNS security checking enabled and are verified by DNS security,
634    the key within the retrieved certificate may be trusted without
635    verifying the certificate chain if this conforms with the user's
636    security policy.
637
638    If an organization chooses to issue certificates for its employees,
639    placing CERT RRs in the DNS by owner name, and if DNSSEC (with NSEC)
640    is in use, it is possible for someone to enumerate all employees of
641    the organization.  This is usually not considered desirable, for the
642    same reason that enterprise phone listings are not often publicly
643    published and are even marked confidential.
644
645    Using the URI type introduces another level of indirection that may
646    open a new vulnerability.  One method of securing that indirection is
647    to include a hash of the certificate in the URI itself.
648
649    If DNSSEC is used, then the non-existence of a CERT RR and,
650    consequently, certificates or revocation lists can be securely
651    asserted.  Without DNSSEC, this is not possible.
652
653 8.  IANA Considerations
654
655    The IANA has created a new registry for CERT RR: certificate types.
656    The initial contents of this registry is:
657
658        Decimal   Type     Meaning                           Reference
659        -------   ----     -------                           ---------
660              0            Reserved                          RFC 4398
661              1   PKIX     X.509 as per PKIX                 RFC 4398
662              2   SPKI     SPKI certificate                  RFC 4398
663              3   PGP      OpenPGP packet                    RFC 4398
664              4   IPKIX    The URL of an X.509 data object   RFC 4398
665              5   ISPKI    The URL of an SPKI certificate    RFC 4398
666              6   IPGP     The fingerprint and URL           RFC 4398
667                           of an OpenPGP packet
668              7   ACPKIX   Attribute Certificate             RFC 4398
669              8   IACPKIX  The URL of an Attribute           RFC 4398
670                              Certificate
671
672
673
674 Josefsson                   Standards Track                    [Page 12]
675 \f
676 RFC 4398            Storing Certificates in the DNS        February 2006
677
678
679          9-252            Available for IANA assignment
680                              by IETF Standards action
681            253   URI      URI private                       RFC 4398
682            254   OID      OID private                       RFC 4398
683            255            Reserved                          RFC 4398
684      256-65279            Available for IANA assignment
685                           by IETF Consensus
686    65280-65534            Experimental                      RFC 4398
687          65535            Reserved                          RFC 4398
688
689    Certificate types 0x0000 through 0x00FF and 0xFF00 through 0xFFFF can
690    only be assigned by an IETF standards action [6].  This document
691    assigns 0x0001 through 0x0008 and 0x00FD and 0x00FE.  Certificate
692    types 0x0100 through 0xFEFF are assigned through IETF Consensus [6]
693    based on RFC documentation of the certificate type.  The availability
694    of private types under 0x00FD and 0x00FE ought to satisfy most
695    requirements for proprietary or private types.
696
697    The CERT RR reuses the DNS Security Algorithm Numbers registry.  In
698    particular, the CERT RR requires that algorithm number 0 remain
699    reserved, as described in Section 2.  The IANA will reference the
700    CERT RR as a user of this registry and value 0, in particular.
701
702 9.  Changes since RFC 2538
703
704    1.   Editorial changes to conform with new document requirements,
705         including splitting reference section into two parts and
706         updating the references to point at latest versions, and to add
707         some additional references.
708    2.   Improve terminology.  For example replace "PGP" with "OpenPGP",
709         to align with RFC 2440.
710    3.   In Section 2.1, clarify that OpenPGP public key data are binary,
711         not the ASCII armored format, and reference 10.1 in RFC 2440 on
712         how to deal with OpenPGP keys, and acknowledge that
713         implementations may handle additional packet types.
714    4.   Clarify that integers in the representation format are decimal.
715    5.   Replace KEY/SIG with DNSKEY/RRSIG etc, to align with DNSSECbis
716         terminology.  Improve reference for Key Tag Algorithm
717         calculations.
718    6.   Add examples that suggest use of CNAME to reduce bandwidth.
719    7.   In Section 3, appended the last paragraphs that discuss
720         "content-based" vs "purpose-based" owner names.  Add Section 3.2
721         for purpose-based X.509 CERT owner names, and Section 3.4 for
722         purpose-based OpenPGP CERT owner names.
723    8.   Added size considerations.
724    9.   The SPKI types has been reserved, until RFC 2692/2693 is moved
725         from the experimental status.
726    10.  Added indirect types IPKIX, ISPKI, IPGP, and IACPKIX.
727
728
729
730 Josefsson                   Standards Track                    [Page 13]
731 \f
732 RFC 4398            Storing Certificates in the DNS        February 2006
733
734
735    11.  An IANA registry of CERT type values was created.
736
737 10.  References
738
739 10.1.  Normative References
740
741    [1]   Mockapetris, P., "Domain names - concepts and facilities",
742          STD 13, RFC 1034, November 1987.
743
744    [2]   Mockapetris, P., "Domain names - implementation and
745          specification", STD 13, RFC 1035, November 1987.
746
747    [3]   Bradner, S., "Key words for use in RFCs to Indicate Requirement
748          Levels", BCP 14, RFC 2119, March 1997.
749
750    [4]   Kille, S., Wahl, M., Grimstad, A., Huber, R., and S. Sataluri,
751          "Using Domains in LDAP/X.500 Distinguished Names", RFC 2247,
752          January 1998.
753
754    [5]   Callas, J., Donnerhacke, L., Finney, H., and R. Thayer,
755          "OpenPGP Message Format", RFC 2440, November 1998.
756
757    [6]   Narten, T. and H. Alvestrand, "Guidelines for Writing an IANA
758          Considerations Section in RFCs", BCP 26, RFC 2434,
759          October 1998.
760
761    [7]   Resnick, P., "Internet Message Format", RFC 2822, April 2001.
762
763    [8]   Housley, R., Polk, W., Ford, W., and D. Solo, "Internet X.509
764          Public Key Infrastructure Certificate and Certificate
765          Revocation List (CRL) Profile", RFC 3280, April 2002.
766
767    [9]   Farrell, S. and R. Housley, "An Internet Attribute Certificate
768          Profile for Authorization", RFC 3281, April 2002.
769
770    [10]  Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform
771          Resource Identifier (URI): Generic Syntax", STD 66, RFC 3986,
772          January 2005.
773
774    [11]  Arends, R., Austein, R., Larson, M., Massey, D., and S. Rose,
775          "DNS Security Introduction and Requirements", RFC 4033,
776          March 2005.
777
778    [12]  Arends, R., Austein, R., Larson, M., Massey, D., and S. Rose,
779          "Resource Records for the DNS Security Extensions", RFC 4034,
780          March 2005.
781
782
783
784
785
786 Josefsson                   Standards Track                    [Page 14]
787 \f
788 RFC 4398            Storing Certificates in the DNS        February 2006
789
790
791 10.2.  Informative References
792
793    [13]  Dierks, T. and C. Allen, "The TLS Protocol Version 1.0",
794          RFC 2246, January 1999.
795
796    [14]  Kent, S. and K. Seo, "Security Architecture for the Internet
797          Protocol", RFC 4301, December 2005.
798
799    [15]  Ellison, C., Frantz, B., Lampson, B., Rivest, R., Thomas, B.,
800          and T. Ylonen, "SPKI Certificate Theory", RFC 2693,
801          September 1999.
802
803    [16]  Josefsson, S., "The Base16, Base32, and Base64 Data Encodings",
804          RFC 3548, July 2003.
805
806    [17]  Ramsdell, B., "Secure/Multipurpose Internet Mail Extensions
807          (S/MIME) Version 3.1 Message Specification", RFC 3851,
808          July 2004.
809
810    [18]  Richardson, M., "A Method for Storing IPsec Keying Material in
811          DNS", RFC 4025, March 2005.
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842 Josefsson                   Standards Track                    [Page 15]
843 \f
844 RFC 4398            Storing Certificates in the DNS        February 2006
845
846
847 Appendix A.  Copying Conditions
848
849    Regarding the portion of this document that was written by Simon
850    Josefsson ("the author", for the remainder of this section), the
851    author makes no guarantees and is not responsible for any damage
852    resulting from its use.  The author grants irrevocable permission to
853    anyone to use, modify, and distribute it in any way that does not
854    diminish the rights of anyone else to use, modify, and distribute it,
855    provided that redistributed derivative works do not contain
856    misleading author or version information.  Derivative works need not
857    be licensed under similar terms.
858
859 Author's Address
860
861    Simon Josefsson
862
863    EMail: simon@josefsson.org
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898 Josefsson                   Standards Track                    [Page 16]
899 \f
900 RFC 4398            Storing Certificates in the DNS        February 2006
901
902
903 Full Copyright Statement
904
905    Copyright (C) The Internet Society (2006).
906
907    This document is subject to the rights, licenses and restrictions
908    contained in BCP 78, and except as set forth therein, the authors
909    retain all their rights.
910
911    This document and the information contained herein are provided on an
912    "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
913    OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
914    ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
915    INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
916    INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
917    WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
918
919 Intellectual Property
920
921    The IETF takes no position regarding the validity or scope of any
922    Intellectual Property Rights or other rights that might be claimed to
923    pertain to the implementation or use of the technology described in
924    this document or the extent to which any license under such rights
925    might or might not be available; nor does it represent that it has
926    made any independent effort to identify any such rights.  Information
927    on the procedures with respect to rights in RFC documents can be
928    found in BCP 78 and BCP 79.
929
930    Copies of IPR disclosures made to the IETF Secretariat and any
931    assurances of licenses to be made available, or the result of an
932    attempt made to obtain a general license or permission for the use of
933    such proprietary rights by implementers or users of this
934    specification can be obtained from the IETF on-line IPR repository at
935    http://www.ietf.org/ipr.
936
937    The IETF invites any interested party to bring to its attention any
938    copyrights, patents or patent applications, or other proprietary
939    rights that may cover technology that may be required to implement
940    this standard.  Please address the information to the IETF at
941    ietf-ipr@ietf.org.
942
943 Acknowledgement
944
945    Funding for the RFC Editor function is provided by the IETF
946    Administrative Support Activity (IASA).
947
948
949
950
951
952
953
954 Josefsson                   Standards Track                    [Page 17]
955 \f