1 INTERNET-DRAFT Brian Tung
2 draft-ietf-cat-kerberos-pk-init-19.txt Clifford Neuman
3 Updates: RFC 1510bis USC/ISI
4 expires September 30, 2004 Matthew Hur
14 Public Key Cryptography for Initial Authentication in Kerberos
17 0. Status Of This Memo
20 This document is an Internet-Draft and is in full conformance with
21 all provision of Section 10 of RFC 2026. Internet-Drafts are
22 working documents of the Internet Engineering Task Force (IETF), its
23 areas, and its working groups. Note that other groups may also
24 distribute working documents as Internet-Drafts.
27 Internet-Drafts are draft documents valid for a maximum of six
28 months and may be updated, replaced, or obsoleted by other documents
29 at any time. It is inappropriate to use Internet-Drafts as
30 reference material or to cite them other than as "work in progress."
33 The list of current Internet-Drafts can be accessed at
34 http://www.ietf.org/ietf/1id-abstracts.txt
37 The list of Internet-Draft Shadow Directories can be accessed at
38 http://www.ietf.org/shadow.html
41 The distribution of this memo is unlimited. It is filed as
42 draft-ietf-cat-kerberos-pk-init-19.txt and expires September 30,
43 2004. Please send comments to the authors.
50 This document describes protocol extensions (hereafter called PKINIT)
51 to the Kerberos protocol specification (RFC 1510bis [1]). These
52 extensions provide a method for integrating public key cryptography
53 into the initial authentication exchange, by passing digital
54 certificates and associated authenticators in preauthentication data
62 A client typically authenticates itself to a service in Kerberos
63 using three distinct though related exchanges. First, the client
64 requests a ticket-granting ticket (TGT) from the Kerberos
65 authentication server (AS). Then, it uses the TGT to request a
66 service ticket from the Kerberos ticket-granting server (TGS).
67 Usually, the AS and TGS are integrated in a single device known as
68 a Kerberos Key Distribution Center, or KDC. (In this document, we will
69 refer to both the AS and the TGS as the KDC.) Finally, the client
70 uses the service ticket to authenticate itself to the service.
73 The advantage afforded by the TGT is that the client need
74 explicitly request a ticket and expose his credentials only once. The
75 TGT and its associated session key can then be used for any
76 subsequent requests. One result of this is that all further
77 authentication is independent of the method by which the initial
78 authentication was performed. Consequently, initial authentication
79 provides a convenient place to integrate public-key cryptography
80 into Kerberos authentication.
83 As defined, Kerberos authentication exchanges use symmetric-key
84 cryptography, in part for performance. One cost of using
85 symmetric-key cryptography is that the keys must be shared, so that
86 before a client can authenticate itself, he must already be
87 registered with the KDC.
90 Conversely, public-key cryptography (in conjunction with an
91 established Public Key Infrastructure) permits authentication
92 without prior registration with a KDC. Adding it to Kerberos allows the
93 widespread use of Kerberized applications by clients without requiring
94 them to register first with a KDC: a requirement that has no inherent
98 As noted above, a convenient and efficient place to introduce
99 public-key cryptography into Kerberos is in the initial
100 authentication exchange. This document describes the methods and
101 data formats for integrating public-key cryptography into Kerberos
102 initial authentication.
109 This section describes extensions to RFC 1510bis for supporting the
110 use of public-key cryptography in the initial request for a ticket.
113 Briefly, this document defines the following extensions to RFC 1510bis:
116 1. The client indicates the use of public-key authentication by
117 including a special preauthenticator in the initial request.
118 This preauthenticator contains the client's public-key data
122 2. 2. The KDC tests the client's request against its policy and
123 trusted Certification Authorities (CAs).
126 3. If the request passes the verification tests, the KDC
127 replies as usual, but the reply is encrypted using either:
130 a. a symmetric encryption key, signed using the KDC?s
131 signature key and encrypted using the client?s encryption
135 b. a key generated through a Diffie-Hellman exchange with
136 the client, signed using the KDC's signature key.
139 Any keying material required by the client to obtain the
140 Encryption key is returned in a preauthentication field in
144 4. The client obtains the encryption key, decrypts the reply,
145 and then proceeds as usual.
148 Section 3.1 of this document defines the necessary message formats.
149 Section 3.2 describes their syntax and use in greater detail.
157 3.1.1. Required Algorithms
160 All PKINIT implementations MUST support the following algorithms:
163 - Reply key (or DH-derived key): AES256-CTS-HMAC-SHA1-96 etype;
165 - Signature algorithm: SHA-1 digest and RSA;
168 - Reply key delivery method: ephemeral-ephemeral Diffie-Hellman
169 with a non-zero nonce;
172 - Unkeyed checksum type for the paChecksum member of
173 PKAuthenticator: SHA1 (unkeyed).
177 3.1.2. Defined Message and Encryption Types
180 PKINIT makes use of the following new preauthentication types:
189 PKINIT also makes use of the following new authorization data type:
192 AD-INITIAL-VERIFIED-CAS TBD
195 PKINIT introduces the following new error codes:
198 KDC_ERR_CLIENT_NOT_TRUSTED 62
199 KDC_ERR_KDC_NOT_TRUSTED 63
200 KDC_ERR_INVALID_SIG 64
202 KDC_ERR_CERTIFICATE_MISMATCH 66
203 KDC_ERR_CANT_VERIFY_CERTIFICATE 70
204 KDC_ERR_INVALID_CERTIFICATE 71
205 KDC_ERR_REVOKED_CERTIFICATE 72
206 KDC_ERR_REVOCATION_STATUS_UNKNOWN 73
207 KDC_ERR_CLIENT_NAME_MISMATCH 75
210 PKINIT uses the following typed data types for errors:
214 TD-TRUSTED-CERTIFIERS 104
215 TD-CERTIFICATE-INDEX 105
218 PKINIT defines the following encryption types, for use in the AS-REQ
219 message (to indicate acceptance of the corresponding encryption OIDs
224 md5WithRSAEncryption-CmsOID 10
225 sha1WithRSAEncryption-CmsOID 11
227 rsaEncryption-EnvOID (PKCS1 v1.5) 13
228 rsaES-OAEP-EnvOID (PKCS1 v2.0) 14
229 des-ede3-cbc-EnvOID 15
232 The above encryption types are used by the client only within the
233 KDC-REQ-BODY to indicate which CMS [2] algorithms it supports. Their
234 use within Kerberos EncryptedData structures is not specified by this
239 3.1.3. Algorithm Identifiers
242 PKINIT does not define, but does make use of, the following
243 algorithm identifiers.
246 PKINIT uses the following algorithm identifier for Diffie-Hellman
253 PKINIT uses the following signature algorithm identifiers [8, 12]:
256 sha-1WithRSAEncryption (RSA with SHA1)
257 md5WithRSAEncryption (RSA with MD5)
258 id-dsa-with-sha1 (DSA with SHA1)
261 PKINIT uses the following encryption algorithm identifiers [5] for
262 encrypting the temporary key with a public key:
265 rsaEncryption (PKCS1 v1.5)
266 id-RSAES-OAEP (PKCS1 v2.0)
269 PKINIT uses the following algorithm identifiers [2] for encrypting
270 the reply key with the temporary key:
273 des-ede3-cbc (three-key 3DES, CBC mode)
274 rc2-cbc (RC2, CBC mode)
277 Kerberos data structures require the use of integer etypes, while CMS
278 objects use OIDs. Therefore, each cryptographic algorithm supported
279 by PKINIT is identified both by a CMS OID and by an equivalent
280 Kerberos etype (defined in section 3.1.2).
283 3.2. PKINIT Preauthentication Syntax and Use
286 This section defines the syntax and use of the various
287 preauthentication fields employed by PKINIT.
291 3.2.1. Client Request
294 The initial authentication request (AS-REQ) is sent as per RFC
295 1510bis; the preauthentication field contains data signed by the
296 client's private signature key as follows:
299 PA-PK-AS-REQ ::= SEQUENCE {
300 signedAuthPack [0] ContentInfo,
301 -- Defined in CMS [2].
302 -- Type is SignedData.
303 -- Content is AuthPack
305 trustedCertifiers [1] SEQUENCE OF TrustedCA OPTIONAL,
306 -- A list of CAs, trusted by
307 -- the client, used to certify
309 kdcCert [2] IssuerAndSerialNumber OPTIONAL,
310 -- Defined in CMS [2].
311 -- Identifies a particular KDC
312 -- certificate, if the client
314 encryptionCert [3] IssuerAndSerialNumber OPTIONAL,
315 -- May identify the client's
316 -- Diffie-Hellman certificate,
317 -- or an RSA encryption key
323 TrustedCA ::= CHOICE {
325 -- Fully qualified X.500 name
326 -- as defined in RFC 3280 [4].
327 issuerAndSerial [1] IssuerAndSerialNumber,
328 -- Identifies a specific CA
334 AuthPack ::= SEQUENCE {
335 pkAuthenticator [0] PKAuthenticator,
336 clientPublicValue [1] SubjectPublicKeyInfo OPTIONAL,
337 -- Defined in RFC 3280 [4].
338 -- Present only if the client
339 -- is using ephemeral-ephemeral
345 PKAuthenticator ::= SEQUENCE {
347 ctime [1] KerberosTime,
348 -- cusec and ctime are used as
349 -- in RFC 1510bis, for replay
352 -- Binds reply to request,
353 -- MUST be zero when client
354 -- will accept cached
355 -- Diffie-Hellman parameters
356 -- from KDC. MUST NOT be
358 -- MUST be 0 <= nonce < 2^32.
359 paChecksum [3] Checksum,
360 -- Defined in RFC 1510bis [1].
361 -- Performed over KDC-REQ-BODY,
369 SubjectPublicKeyInfo, AlgorithmIdentifier, Name
370 FROM PKIX1Explicit88 { iso (1) identified-organization (3)
371 dod (6) internet (1) security (5) mechanisms (5)
372 pkix (7) id-mod (0) id-pkix1-explicit (18) }
377 ContentInfo, IssuerAndSerialNumber
378 FROM CryptographicMessageSyntax { iso(1) member-body(2)
379 us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
384 -- from RFC 1510bis [1]
385 KerberosTime, Checksum
386 FROM KerberosV5Spec2 { iso(1) identified-organization(3)
387 dod(6) internet(1) security(5) kerberosV5(2) modules(4)
391 The ContentInfo in the signedAuthPack is filled out as follows:
394 1. The eContent field contains data of type AuthPack. It MUST
395 contain the pkAuthenticator, and MAY also contain the
396 client's Diffie-Hellman public value (clientPublicValue).
399 2. The eContentType field MUST contain the OID value for
400 pkauthdata: { iso (1) org (3) dod (6) internet (1)
401 security (5) kerberosv5 (2) pkinit (3) pkauthdata (1)}
404 3. The signerInfos field MUST contain the signature over the
408 4. The certificates field MUST contain at least a signature
409 verification certificate chain that the KDC can use to
410 verify the signature over the AuthPack. Additionally, the
411 client MAY insert an encryption certificate chain, if
412 (for example) the client is not using ephemeral-ephemeral
416 5. If a Diffie-Hellman key is being used, the parameters SHOULD
417 be chosen from the First or Second defined Oakley Groups.
421 6. The KDC may wish to use cached Diffie-Hellman parameters.
422 To indicate acceptance of caching, the client sends zero in
423 the nonce field of the pkAuthenticator. Zero is not a valid
424 value for this field under any other circumstances. Since
425 zero is used to indicate acceptance of cached parameters,
426 message binding in this case is performed using only the
427 nonce in the main request.
431 3.2.2. Validation of Client Request
434 Upon receiving the client's request, the KDC validates it. This
435 section describes the steps that the KDC MUST (unless otherwise
436 noted) take in validating the request.
439 The KDC must look for a client certificate in the signedAuthPack.
440 If it cannot find one signed by a CA it trusts, it sends back an
441 error of type KDC_ERR_CANT_VERIFY_CERTIFICATE. The accompanying
442 e-data for this error is a SEQUENCE OF TYPED-DATA:
445 TYPED-DATA ::= SEQUENCE {
446 -- As defined in RFC 1510bis.
447 data-type [0] INTEGER,
448 data-value [1] OCTET STRING
453 -- from RFC 1510bis [1]
455 FROM KerberosV5Spec2 { iso(1) identified-organization(3)
456 dod(6) internet(1) security(5) kerberosV5(2) modules(4)
460 For this error, the data-type is TD-TRUSTED-CERTIFIERS, and the
461 data-value is an OCTET STRING containing the DER encoding of
464 TrustedCertifiers ::= SEQUENCE OF Name
467 If, while verifying the certificate chain, the KDC determines that
468 the signature on one of the certificates in the signedAuthPack is
469 invalid, it returns an error of type KDC_ERR_INVALID_CERTIFICATE.
470 The accompanying e-data for this error is a SEQUENCE OF TYPED-DATA,
471 whose data-type is TD-CERTIFICATE-INDEX, and whose data-value is an
472 OCTET STRING containing the DER encoding of the index into the
473 CertificateSet field, ordered as sent by the client:
476 CertificateIndex ::= IssuerAndSerialNumber
477 -- IssuerAndSerialNumber of
478 -- certificate with invalid signature
481 If more than one certificate signature is invalid, the KDC MAY send one
482 TYPED-DATA per invalid signature.
485 The KDC MAY also check whether any of the certificates in the client's
486 chain have been revoked. If any of them have been revoked, the KDC
487 MUST return an error of type KDC_ERR_REVOKED_CERTIFICATE; if the KDC
488 attempts to determine the revocation status but is unable to do so,
489 it SHOULD return an error of type KDC_ERR_REVOCATION_STATUS_UNKNOWN.
490 The certificate or certificates affected are identified exactly as
491 for an error of type KDC_ERR_INVALID_CERTIFICATE (see above).
494 In addition to validating the certificate chain, the KDC MUST also
495 check that the certificate properly maps to the client's principal name
496 as specified in the AS-REQ as follows:
499 1. If the KDC has its own mapping from the name in the
500 certificate to a Kerberos name, it uses that Kerberos
504 2. Otherwise, if the certificate contains a SubjectAltName
505 extension with a Kerberos name in the otherName field,
506 it uses that name. The otherName field (of type AnotherName) in
507 the SubjectAltName extension MUST contain the following:
513 krb5PrincipalName OBJECT IDENTIFIER ::= { iso (1) org (3) dod (6)
514 internet (1) security (5) kerberosv5 (2) 2 }
520 KRB5PrincipalName ::= SEQUENCE {
522 principalName [1] PrincipalName
529 FROM PKIX1Explicit88 { iso (1) identified-organization (3)
530 dod (6) internet (1) security (5) mechanisms (5)
531 pkix (7) id-mod (0) id-pkix1-explicit (18) }
535 -- from RFC 1510bis [1]
537 FROM KerberosV5Spec2 { iso(1) identified-organization(3)
538 dod(6) internet(1) security(5) kerberosV5(2) modules(4)
542 If the KDC does not have its own mapping and there is no Kerberos
543 name present in the certificate, or if the name in the request does
544 not match the name in the certificate (including the realm name), or
545 if there is no name in the request, the KDC MUST return error code
546 KDC_ERR_CLIENT_NAME_MISMATCH. There is no accompanying e-data
547 for this error. If the name in the request is [special "blank"
548 name], the KDC MAY insert a different name in the reply.
551 Even if the chain is validated, and the names in the certificate and
552 the request match, the KDC may decide not to trust the client. For
553 example, the certificate may include an Enxtended Key Usage (EKU) OID
554 in the extensions field. As a matter of local policy, the KDC may
555 decide to reject requests on the basis of the absence or presence of
556 specific EKU OIDs. In this case, the KDC MUST return error code
557 KDC_ERR_CLIENT_NOT_TRUSTED. The PKINIT EKU OID is defined as:
560 { iso (1) org (3) dod (6) internet (1) security (5)
561 kerberosv5 (2) pkinit (3) pkekuoid (4) }
564 If the client's signature on the signedAuthPack fails to verify, the KDC
565 MUST return error KDC_ERR_INVALID_SIG. There is no accompanying
566 e-data for this error.
569 The KDC MUST check the timestamp to ensure that the request is not
570 a replay, and that the time skew falls within acceptable limits.
571 The recommendations clock skew times in RFC 1510bis [1] apply here.
572 If the check fails, the KDC MUSTreturn error code KRB_AP_ERR_REPEAT
573 or KRB_AP_ERR_SKEW, respectively.
576 If the clientPublicValue is filled in, indicating that the
577 client wishes to use ephemeral-ephemeral Diffie-Hellman, the KDC
578 checks to see if the parameters satisfy its policy. If they do not,
579 it MUST return error code KDC_ERR_KEY_SIZE. The accompanying e-data is
580 a SEQUENCE OF TYPED-DATA, whose data-type is TD-DH-PARAMETERS, and whose
581 data-value is an OCTET STRING containing the DER encoding of a
582 DomainParameters (see [3]), including appropriate Diffie-Hellman
583 parameters with which to retry the request.
586 The KDC MUST return error code KDC_ERR_CERTIFICATE_MISMATCH if the
587 client included a kdcCert field in the PA-PK-AS-REQ and the KDC does not
588 have the corresponding certificate.
591 The KDC MUST return error code KDC_ERR_KDC_NOT_TRUSTED if the client did
592 not include a kdcCert field, but did include a trustedCertifiers field,
593 and the KDC does not possesses a certificate issued by one of the listed
601 Assuming that the client's request has been properly validated, the
602 KDC proceeds as per RFC 1510bis, except as follows.
605 The KDC MUST set the initial flag and include an authorization data of
606 type AD-INITIAL-VERIFIED-CAS in the issued ticket. The value is an
607 OCTET STRING containing the DER encoding of InitialVerifiedCAs:
610 InitialVerifiedCAs ::= SEQUENCE OF SEQUENCE {
612 Validated [1] BOOLEAN,
617 The KDC MAY wrap any AD-INITIAL-VERIFIED-CAS data in AD-IF-RELEVANT
618 containers if the list of CAs satisfies the KDC's realm's policy.
619 (This corresponds to the TRANSITED-POLICY-CHECKED ticket flag.)
620 Furthermore, any TGS must copy such authorization data from tickets
621 used in a PA-TGS-REQ of the TGS-REQ to the resulting ticket,
622 including the AD-IF-RELEVANT container, if present.
625 AP servers that understand this authorization data type SHOULD apply
626 local policy to determine whether a given ticket bearing such a type
627 (not contained within an AD-IF-RELEVANT container) is acceptable.
628 (This corresponds to the AP server checking the transited field when
629 the TRANSITED-POLICY-CHECKED flag has not been set.) If such a data
630 type is contained within an AD-IF-RELEVANT container, AP servers
631 MAY apply local policy to determine whether the authorization
635 The AS-REP is otherwise unchanged from RFC 1510bis. The KDC encrypts
636 the reply as usual, but not with the client's long-term key.
637 Instead, it encrypts it with either a generated encryption key, or a
638 key derived from a Diffie-Hellman exchange. The contents of the
639 PA-PK-AS-REP indicate the type of encryption key that was used:
642 PA-PK-AS-REP ::= CHOICE {
643 dhSignedData [0] ContentInfo,
644 -- Type is SignedData.
645 -- Content is KDCDHKeyInfo
647 encKeyPack [1] ContentInfo,
648 -- Type is SignedData.
649 -- Content is ReplyKeyPack
655 KDCDHKeyInfo ::= SEQUENCE {
656 subjectPublicKey [0] BIT STRING,
657 -- Equals public exponent
659 -- INTEGER encoded as payload
662 -- Binds reply to request.
663 -- Exception: A value of zero
664 -- indicates that the KDC is
665 -- using cached values.
666 dhKeyExpiration [2] KerberosTime OPTIONAL,
667 -- Expiration time for KDC's
673 The fields of the ContentInfo for dhSignedData are to be filled in
677 1. The eContent field contains data of type KDCDHKeyInfo.
680 2. The eContentType field contains the OID value for
681 pkdhkeydata: { iso (1) org (3) dod (6) internet (1)
682 security (5) kerberosv5 (2) pkinit (3) pkdhkeydata (2) }
685 3. The signerInfos field contains a single signerInfo, which is
686 the signature of the KDCDHKeyInfo.
689 4. The certificates field contains a signature verification
690 certificate chain that the client will use to verify the
691 KDC's signature over the KDCDHKeyInfo. This field may only
692 be left empty if the client did include a kdcCert field in
693 the PA-PK-AS-REQ, indicating that it has the KDC's certificate.
696 5. If the client and KDC agree to use cached parameters, the
697 KDC MUST return a zero in the nonce field and include the
698 expiration time of the cached values in the dhKeyExpiration
699 field. If this time is exceeded, the client MUST NOT use
700 the reply. If the time is absent, the client MUST NOT use
701 the reply and MAY resubmit a request with a non-zero nonce,
702 thus indicating non-acceptance of the cached parameters.
705 The key is derived as follows: Both the KDC and the client calculate
706 the value g^(ab) mod p, where a and b are the client's and KDC's
707 private exponents, respectively. They both take the first k bits of
708 this secret value as a key generation seed, where the parameter k
709 (the size of the seed) is dependent on the selected key type, as
710 specified in [6]. The seed is then converted into a protocol key by
711 applying to it a random-to-key function, which is also dependent on
715 1. For example, if the encryption type is DES with MD4, k = 64
716 bits and the random-to-key function consists of replacing
717 some of the bits with parity bits, according to FIPS PUB 74
721 2. If the encryption type is three-key 3DES with HMAC-SHA1,
722 k = 168 bits and the random-to-key function is
723 DES3random-to-key as defined in [6]. This function inserts
724 parity bits to create a 192-bit 3DES protocol key that is
725 compliant with FIPS PUB 74 [9]. This key is used to
726 generate additional keys Ke and Ki, for encryption and
727 integrity protection, respectively, using the key usage
728 value of 3, as per [6] for the handling of the encrypted
732 If the KDC and client are not using Diffie-Hellman, the KDC encrypts
733 the reply with an encryption key, packed in the encKeyPack, which
734 contains data of type ReplyKeyPack:
737 ReplyKeyPack ::= SEQUENCE {
738 replyKey [0] EncryptionKey,
739 -- Defined in RFC 1510bis.
740 -- Used to encrypt main reply.
741 -- MUST be at least as strong
742 -- as session key. (Using the
743 -- same enctype and a strong
744 -- prng should suffice, if no
745 -- stronger encryption system
748 -- Binds reply to request.
749 -- MUST be 0 < nonce < 2^32.
755 -- from RFC 1510bis [1]
757 FROM KerberosV5Spec2 { iso(1) identified-organization(3)
758 dod(6) internet(1) security(5) kerberosV5(2) modules(4)
762 The fields of the ContentInfo for encKeyPack MUST be filled in as
766 1. The content is of type SignedData. The eContent for
767 the SignedData is of type ReplyKeyPack.
770 2. The eContentType for the SignedData contains the OID value for
771 pkrkeydata: { iso (1) org (3) dod (6) internet (1)
772 security (5) kerberosv5 (2) pkinit (3) pkrkeydata (3) }
775 3. The signerInfos field contains a single signerInfo, which is
776 the signature of the ReplyKeyPack.
779 4. The certificates field contains a signature verification
780 certificate chain that the client will use to verify the
781 KDC's signature over the ReplyKeyPack. This field may only
782 be left empty if the client did include a kdcCert field in
783 the PA-PK-AS-REQ, indicating that it has the KDC's certificate.
786 5. The encryptedContentType for the EnvelopedData contains the OID
787 value for id-signedData: { iso (1) member-body (2) us (840)
788 rsadsi (113549) pkcs (1) pkcs7 (7) signedData (2) }
791 6. The recipientInfos field is a SET which MUST contain exactly
792 one member of type KeyTransRecipientInfo. The encryptedKey
793 for this member contains the temporary key which is
794 encrypted using the client's public key.
797 7. The unprotectedAttrs or originatorInfo fields MAY be present.
801 3.2.4. Validation of KDC Reply
804 Upon receipt of the KDC's reply, the client proceeds as follows. If
805 the PA-PK-AS-REP contains a dhSignedData, the client obtains and
806 verifies the Diffie-Hellman parameters, and obtains the shared key
807 as described above. Otherwise, the message contains an encKeyPack,
808 and the client decrypts and verifies the temporary encryption key.
809 In either case, the client then decrypts the main reply with the
810 resulting key, and then proceeds as described in RFC 1510bis.
814 3.2.5. Support for OCSP
817 OCSP (Online Certificate Status Protocol) [8] allows the use of
818 on-line requests for a client or server to determine the validity of
819 each other's certificates. It is particularly useful for clients
820 authenticating each other across a constrained network. These
821 clients will not have to download the entire CRL to check for the
822 validity of the KDC's certificate.
825 In these cases, the KDC generally has better connectivity to the
826 OCSP server, and it therefore processes the OCSP request and
827 response and sends the results to the client. The mechanism defined
828 in this section allow a client to request an OCSP response from the
829 KDC when using PKINIT. This is similar to the way that OCSP is
833 OCSP support is provided in PKINIT through the use of additional
834 preauthentication data. The following new preauthentication types
838 PA-PK-OCSP-REQ ::= SEQUENCE {
840 responderIDList [0] SEQUENCE of ResponderID OPTIONAL,
841 -- ResponderID is a DER-encoded
842 -- ASN.1 type defined in [8]
843 requestExtensions [1] Extensions OPTIONAL
844 -- Extensions is a DER-encoded
845 -- ASN.1 type defined in [8]
849 PA-PK-OCSP-REP ::= SEQUENCE of OCSPResponse
850 -- OCSPResponse is a DER-encoded
851 -- ASN.1 type defined in [8]
854 A KDC that receives a PA-PK-OCSP-REQ MAY send a PA-PK-OCSP-REP.
855 KDCs MUST NOT send a PA-PK-OCSP-REP if they do not first receive a
856 PA-PK-OCSP-REQ from the client. The KDC MAY either send a cached
857 OCSP response or send an on-line request to the OCSP server.
860 In the case that a responderIDList is not sent or is empty, the OCSP
861 response must be signed by the authority that issued the
862 certificate, unless specified otherwise by a mutually agreed policy
863 between the client and the KDC.
866 When using OCSP, the response is signed by the OCSP server, which is
867 trusted by the client. Depending on local policy, further
868 verification of the validity of the OCSP server may need to be done.
872 4. Security Considerations
875 PKINIT raises certain security considerations beyond those that can
876 be regulated strictly in protocol definitions. We will address them
880 PKINIT extends the cross-realm model to the public-key
881 infrastructure. Users of PKINIT must understand security policies
882 and procedures appropriate to the use of Public Key Infrastructures.
885 Standard Kerberos allows the possibility of interactions between
886 cryptosystems of varying strengths; this document adds interactions
887 with public-key cryptosystems to Kerberos. Some administrative
888 policies may allow the use of relatively weak public keys. Using
889 such keys to wrap data encrypted under stronger conventional
890 cryptosystems may be inappropriate.
893 PKINIT requires keys for symmetric cryptosystems to be generated.
894 Some such systems contain "weak" keys. For recommendations regarding
895 these weak keys, see RFC 1510bis.
898 PKINIT allows the use of a zero nonce in the PKAuthenticator when
899 cached Diffie-Hellman keys are used. In this case, message binding
900 is performed using the nonce in the main request in the same way as
901 it is done for ordinary AS-REQs (without the PKINIT
902 pre-authenticator). The nonce field in the KDC request body is
903 signed through the checksum in the PKAuthenticator, which
904 cryptographically binds the PKINIT pre-authenticator to the main body
905 of the AS Request and also provides message integrity for the full
909 However, when a PKINIT pre-authenticator in the AS-REP has a
910 zero-nonce, and an attacker has somehow recorded this
911 pre-authenticator and discovered the corresponding Diffie-Hellman
912 private key (e.g., with a brute-force attack), the attacker will be
913 able to fabricate his own AS-REP messages that impersonate the KDC
914 with this same pre-authenticator. This compromised pre-authenticator
915 will remain valid as long as its expiration time has not been reached
916 and it is therefore important for clients to check this expiration
917 time and for the expiration time to be reasonably short, which
918 depends on the size of the Diffie-Hellman group.
921 If a client also caches its Diffie-Hellman keys, then the session key
922 could remain the same during multiple AS-REQ/AS-REP exchanges and an
923 attacker which compromised the session key could fabricate his own
924 AS-REP messages with a pre-recorded pre-authenticator until the
925 client starts using a new Diffie-Hellman key pair and while the KDC
926 pre-authenticator has not yet expired. It is therefore not
927 recommended for KDC clients to also cache their Diffie-Hellman keys.
930 Care should be taken in how certificates are chosen for the purposes
931 of authentication using PKINIT. Some local policies may require
932 that key escrow be used for certain certificate types. Deployers of
933 PKINIT should be aware of the implications of using certificates that
934 have escrowed keys for the purposes of authentication.
937 PKINIT does not provide for a "return routability" test to prevent
938 attackers from mounting a denial-of-service attack on the KDC by
939 causing it to perform unnecessary and expensive public-key
940 operations. Strictly speaking, this is also true of standard
941 Kerberos, although the potential cost is not as great, because
942 standard Kerberos does not make use of public-key cryptography.
950 Some of the ideas on which this document is based arose during
951 discussions over several years between members of the SAAG, the IETF
952 CAT working group, and the PSRG, regarding integration of Kerberos
953 and SPX. Some ideas have also been drawn from the DASS system.
954 These changes are by no means endorsed by these groups. This is an
955 attempt to revive some of the goals of those groups, and this
956 document approaches those goals primarily from the Kerberos
957 perspective. Lastly, comments from groups working on similar ideas
958 in DCE have been invaluable.
965 This draft expires September 30, 2004.
972 [1] RFC-Editor: To be replaced by RFC number for
973 draft-ietf-krb-wg-kerberos-clarifications.
976 [2] R. Housley. Cryptographic Message Syntax., April 1999.
977 Request For Comments 2630.
980 [3] W. Polk, R. Housley, and L. Bassham. Algorithms and Identifiers
981 for the Internet X.509 Public Key Infrastructure Certificate and
982 Certificate Revocation List (CRL) Profile, April 2002. Request For
986 [4] R. Housley, W. Polk, W. Ford, D. Solo. Internet X.509 Public
987 Key Infrastructure Certificate and Certificate Revocation List
988 (CRL) Profile, April 2002. Request for Comments 3280.
991 [5] B. Kaliski, J. Staddon. PKCS #1: RSA Cryptography
992 Specifications, October 1998. Request for Comments 2437.
995 [6] RFC-Editor: To be replaced by RFC number for
996 draft-ietf-krb-wg-crypto.
999 [7] S. Blake-Wilson, M. Nystrom, D. Hopwood, J. Mikkelsen, and
1000 T. Wright. Transport Layer Security (TLS) Extensions, June 2003.
1001 Request for Comments 3546.
1004 [8] M. Myers, R. Ankney, A. Malpani, S. Galperin, and C. Adams.
1005 Internet X.509 Public Key Infrastructure: Online Certificate Status
1006 Protocol - OCSP, June 1999. Request for Comments 2560.
1009 [9] NIST, Guidelines for Implementing and Using the NBS Encryption
1010 Standard, April 1981. FIPS PUB 74.
1013 [10] D. Harkins and D. Carrel. The Internet Key Exchange (IKE),
1014 November 1998. Request for Comments 2409.
1023 USC Information Sciences Institute
1024 4676 Admiralty Way Suite 1001
1025 Marina del Rey CA 90292-6695
1026 Phone: +1 310 822 1511
1027 E-mail: {brian,bcn}@isi.edu
1032 Microsoft Corporation
1035 Phone: +1 425 707 3336
1036 E-mail: matthur@microsoft.com, arimed@windows.microsoft.com
1044 E-mail: smedvinsky@motorola.com
1048 Iris Associates, Inc.
1049 5 Technology Park Dr.
1051 E-mail: John_Wray@iris.com
1055 E-mail: jtrostle@world.std.com