view Side-By-Side changes
Expires in 6 monthsJuneDecember 1996 Internet Public Key Infrastructure Part III: Certificate Management Protocols Status of this Memo This document is an Internet-Draft. 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 6 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." To learn the current status of any Internet-Draft, please check the "1id-abstracts.txt" listing contained in the Internet-Drafts Shadow Directories on ftp.is.co.za(Africa), nic.nordu.net (Europe), munnari.oz.au (Pacific Rim), ds.internic.net (US East Coast), or ftp.isi.edu (US West Coast). Abstract This is thethirdfourth draft of the Internet Public Key Infrastructure X.509 Certificate Management Protocols. Thisdocument is basedversion builds onsections 7, 9draft-ietf- pkix-ipki3cmp-01.txt and discussions on the PKIX mailing list (ietf- pkix@tandem.com) and10 of draft-ietf-pkix-ipki-00.txt. Many changes have been made as a result of discussionat theDallasMontreal IETFin December 1995,meeting (June 1996). Summary of changes since theLos Angeles IETF in March 1996,third draft: - New messages defined to ask for general information from a PKI management entity (RA/CA). - New fields added allowing for: proof of possession of a private key; request for publication of a certificate; anddiscussion on the ietf-pkix@tandem.com mail list.request for archival of a private key. - ASN.1 simplifications. - First concrete definition of what is mandatory for conformance. - File- and socket-based protocols defined. 1. Introduction Theintentlayout of thisdocumentdraft isto generate further productiveas follows: - Section 1 contains an overview of PKI management Farrell, Adams [Page 1] INTERNET-DRAFT December 1996 - Section 2 contains discussion of assumptions and restrictions - Section 3 contains data structures used for PKI management messages - Section 4 defines the functions which are tobuild consensus. 1. Executive Summary << Tobesupplied. >> 2.carried out in PKI management including those which must be supported by conforming implementations and those which are optional - Section 5 describes a simple protocol for transporting PKI messages 1.1 PKI Management Overview The PKI must be structured to be consistent with the types of individuals who must administer it. Providing such administratorsFarrell, Adams, Ford [Page 1] INTERNET-DRAFT June 1996with unbounded choicescomplicatesnot only complicates the software required but also increases the chances that a subtle mistake by an administrator or software developer will result in broader compromise. Similarly, restricting administrators with cumbersome mechanisms will cause them not to use the PKI. Management protocols are required to support on-line interactions between Public Key Infrastructure (PKI) components. For example, a management protocol might be used between a CA and a client system with which a key pair is associated, or between two CAs whichcross- certifycross-certify each other. 2.1 PKI Management Model Before specifying particular message formats and procedures we first define the entities involved in PKI management and their interactions (in terms of the PKI management functions required). We then group these functions in order toaccomodateaccommodate different identifiable types of end entities.2.1.1.1.2 Definitions of PKI Entities The entities involved in PKI management include the end entity (i.e. the entity to be named in the subject field of a certificate) and the certification authority (i.e. the entity named in the issuer field of a certificate). A registration authority may also be involved in PKI management.2.1.1.1.1.2.1 Subjects and End Entities The term "subject" is used here to refer to the entity named by the subject field of a certificate; when we wish to distinguish the tools and/or software used by the subject (e.g. a local certificate management module) we will use the term "subject equipment". In general, we prefer the term "end entity" rather than subject in order to avoid confusion with the field name. It is important to note that the end entities here will include not only human users of applications, but also applications themselves (e.g. for IP security). This factor influences the protocols which the PKI management operations use; e.g., applications software is far more likely to know exactly which certificate extensions are required than Farrell, Adams [Page 2] INTERNET-DRAFT December 1996 are human users. PKI management entities are also end entities in the sense that they are sometimes named in the subject field of a certificate or cross-certificate. Where appropriate, the term "end- entity" will be used to refer to end entities who are not PKI management entities. All end entities require secure local access to some information -- at a minimum, their own name and private key, the name of a CA which is directly trusted by this subject and that CA's public key (or adigestfingerprint of the public key where a self-certified version is available elsewhere). Implementations may use secure local storage for more than this minimum (e.g. the end entity's own certificate orFarrell, Adams, Ford [Page 2] INTERNET-DRAFT June 1996application-specific information). The form of storage will also vary -- from files to tamper resistant cryptographic tokens. Such local trusted storage is referred to here as the end entity's Personal Security Environment (PSE).<< TheThough PSEcontent is not defined further here as it isformats are out of scope of this document (they are very dependent on equipment, etcetera. However, ancetera), a generic interchange format fora generic PSE might be usefulPSEs is defined here -we could consider usingaCertRepcertification response messagefor this.>> 2.1.1.2.may be used. 1.2.2 Certification Authority The certification authority (CA) may or may not actually be a real "third party" from the end entity's point of view. Quite often, the CA will actually belong to the same organisation as the end entities it supports. Again, we use the term CA to refer to the entity named in the issuer field of a certificate; when it is necessary to distinguish the software or hardware tools used by the CA we use the term "CA equipment". The CA equipment will often include both an "off-line" component and an "on-line" component, with the CA private key only available to the"off-line""off- line" component. This is, however, a matter forimplementorsimplementers (though it is also relevant as a policy issue).2.1.1.3. Registration Authority In additionWe use the term "root CA" toend entities and CAs,indicate a CA which is directly trusted by an end entity, that is, securely acquiring the value of a root CA public key requires some out-of-band step(s). This term does not indicate that a root CA is at the top of any hierarchy, simply that the CA in question is trusted directly. A subordinate CA is one which is not a root CA for the end entity in question. Often, a subordinate CA will not be a root CA for any entity but this is not mandatory. 1.2.3 Registration Authority In addition to end entities and CAs, many environments call for the existence of a registration authority (RA) separate from the certification authority. The functions which the registration authority may carry out will vary from case to case but may include personal authentication, token distribution, revocation reporting, name assignment, key generation, archival of key pairs, et cetera. Farrell, Adams [Page 3] INTERNET-DRAFT December 1996 This document views the RA as an optional component - when it is not present the CA is assumed to be able to carry out the RA's functions so that the PKI management protocols are the same from the end entity's point of view. Again, we distinguish, where necessary, between the RA and the tools used (the "RA equipment"). Note that an RA is itself an end entity. We further assume that all RAs are in fact certified end entities and thattheRA privatekey iskeys are usable for signing. How a particular CA equipment identifies some end entities as RAs is an implementation issue (so there is no special RA certification operation). We do not mandate that the RA is certified by the CA with which it is interacting at the moment (so one RA may work with more than one CA whilst only being certified once).Farrell, Adams, Ford [Page 3] INTERNET-DRAFT June 1996In some circumstances end entities will communicate directly with a CA even where an RA is present. For example, for initial registration and/or certification the subject may use its RA, but communicate directly with the CA in order to refresh its certificate. 1.3 PKI Management Requirements Thereasons which justifyprotocols given here meet thepresence of an RA can be split into those which are duefollowing requirements on PKI management. 1. PKI management must conform totechnical factorsISO 9594-8 andthose which are organizational in nature. Technical reasons include the following. -If hardware tokens are in use, then not all end entities will havetheequipment neededassociated amendments (certificate extensions) 2. PKI management must conform toinitialize these; the RA equipment can includethenecessary functionality (this may also be a matterother parts ofpolicy). -Some end entities may not have the capability to publish certificates; again, the RA may be suitably placed for this. -The RA willthis series. 3. It must beablepossible toissue signed revocation requests on behalfregularly update any key pair without affecting any other key pair. 4. The use ofend entities associated with it, whereas the end entity may notconfidentiality in PKI management protocols must beable to do this (if the key pair is completely lost). Some of the organisational reasons which argue for the presence of an RA are the following. -It may be more cost effective to concentrate functionality in the RA equipment, than to supply functionality to all end entities (especially if special token initialization equipment is to be used). -Establishing RAs within an organization can reduce the number of CAs required, which is sometimes desirable. -RAs may be better placed to identify people with their "electronic" names, especially if the CA is physically remote from the end entity. -For many applications there will already be in place some administrative structure so that candidates for the role of RA are easy to find (which may not be true of the CA). 2.1.2. PKI Management Requirements The protocols given here meet the following requirements on PKI management. 2.1.2.1. PKI management must conform to ISO 9594-8 and the associated draft amendment (DAM) 2.1.2.2. PKI management must conform to the other parts of this series. Farrell, Adams, Ford [Page 4] INTERNET-DRAFT June 1996 2.1.2.3. It must be possible to regularly update any key pair without affecting any other key pair 2.1.2.4. The use of confidentiality in PKI management protocols must be keptkept to a minimum in order to ease regulatoryproblems 2.1.2.5.problems. 5. PKI management protocols must allow the use of differentindustry-standardindustry- standard cryptographic algorithms, (specifically including, RSA, DSA, MD5, SHA-1) -- this means that any given CA, RA, or end entity may, in principal, use whichever algorithms suit it for its own key pair(s).2.1.2.6.6. PKI management protocols must not preclude the generation of key pairs by the end entity concerned, by an RA, or by a CA -- key generation may also occur elsewhere, but for the purposes of PKI management we can regard key generation as occurring wherever the key is first present at an end entity, RA or CA.2.1.2.7.7. PKI management protocols must support the publication of certificates by the end entity concerned, by an RA or by a CA. Different implementations and different environments may choose any of the above Farrell, Adams [Page 4] INTERNET-DRAFT December 1996 approaches.2.1.2.8.8. PKI management protocols must support the production of CRLs by allowing certified end entities to make requests for the revocation of certificates - this must be done in such a way that thedenial-of-servicedenial-of- service attacks which are possible are not made simpler.2.1.2.9.9. PKI management protocols must be usable over a variety of "transport" mechanisms, specificallyincluding,including mail, http, TCP/IP and ftp.2.1.2.10.10. Final authority for certification creation rests with the CA; no RA or end entity equipment should assume that any certificate issued by a CA will contain what was requested -- a CA may alter certificate field values or may add, delete or alter extensions according to its operating policy; the only exception to this is the public key, which the CA may not modify (assuming that the CA was presented with the public key value). In other words, all PKI entities (end entities, RAs and CAs) must be capable of handling responses to requests for certificates in which the actual certificate issued is different from that requested -- for example, a CA may shorten the validity period requested.2.1.2.11.11. A graceful, scheduled change-over from one non-compromised CA key pair to the next must be supported (CA key update).2.1.2.12. A subjectAn end-entity whose PSE contains the new CA public key (following a CA key update) must also be able to verify certificates verifiable using the old public key.Farrell, Adams, Ford [Page 5] INTERNET-DRAFT June 1996 2.1.2.13.End entities who directly trust the old CA key pair must also be able to verify certificates signed using the new CA privatekey (following a CA key update). This is requiredkey. (Required for situations where the old CA public key is "hardwired" into the end entity's cryptographicequipment (e.g., smartcard memory). 2.1.2.14.equipment). 12. The Functions of an RA may, in some implementations or environments, be carried out by the CA itself. The protocolsshouldmust be designed so that end entities will use the same protocol regardless of whether the communication is with an RA or CA.2.1.3. PKI Management Operations The following diagram shows the relationship between the entities defined above in1.4 13. Where an end entity requests a certificate containing a given public key value, the end entity must show the ability to use the corresponding private key value. This is accomplished in various ways, depending on the type of certification request. See the section "Proof of Possession of Private Key" for details. 1.5 PKI Management Operations The following diagram shows the relationship between the entities defined above in terms of the PKI management operations. Thenumbersletters in the diagram indicate "protocols" in the sense that a defined set of PKI management messages can be sent along each of thenumberedlettered lines. cert. publish +------------+ +---+ +------------ | End Entity | Operations | C | |7g +------------+ | e | <--------+ | ^ initial | r |1a | |2b registration/ Farrell, Adams [Page 5] INTERNET-DRAFT December 1996 | t | PKI "users" | | certification | | | | key pair recovery | / | | | key pair update | | | | certificate update | C | V | revocation request | R | -------+-+-----+-+------+-+----- | L | PKI management | ^ | ^ | | entities1a | |2 1b a | |2b | | V | | | | R |7g +------+4d | | | e | <------------ | RA | <-----+ | | | p | cert. | | ----+ | | | | o | publish +------+3c | | | | | s | | | | | | i | V | V | | t |8h +------------+9i | o | <------------------------| CA |-------> | r | +------------+ "out-of-band" | y | cert. publish | ^ publication | | CRL publish | | +---+ | | cross-certification e | |6f cross-certificate | | update | | V | +------+ | CA-2 | +------+ Figure 1 - PKI EntitiesFarrell, Adams, Ford [Page 6] INTERNET-DRAFT June 1996At a high level the set offunctionsoperations for which management messages are definediscan be grouped as follows.-CA1 CA establishment: When establishing a new CA, certain steps are required (e.g., production of initialCRLs). -exportCRLs, export of CA publickey for "out-of-band" mechanisms: CAs must provide their public keys to end-entities. In order to facilitate interoperability between differentkey). 2 End entity initialisation: this includes importing a CA public key andend-entity implementationsrequesting information about the options supported by adata structure for this purpose is required. -initialPKI management entity. 3 Certification: various operations result in the creation of new certificates: 3.1 initial registration/certification: This is the process whereby a subject first makes itself known to a CA or RA, prior to the CA issuing a certificate or certificates for that user. The end result of this process (when it is successful) is that a CA issues a certificate for an end entity's public key, and returns that certificate to the subject and/or posts that certificate in a public repository. This process may, and typically will, involve multiple "steps", possibly including an initialization of the end entity's equipment. For example, the subject 3.2 Farrell, Adams [Page 6] INTERNET-DRAFT December 1996 1.1 equipment must be securely initialized with the public key of a CA, to be used in validating certificate paths. Furthermore, a subject typically needs to be initialized with its own key pair(s).-key1.2 key pair update: Every key pair needs to be updated regularly (i.e., replaced with a new key pair), and a new certificate needs to be issued.-certificate1.3 certificate update: As certificates expire they may be "refreshed" if nothing relevant in the environment has changed.-certificate1.4 CA key pair update: As with end entities, CA key pairs need to be updated regularly; however, different mechanisms are required. 1.5 cross-certification: Two CAs exchange the information necessary to establish cross-certificates between those CAs. 1.6 cross-certificate update: Similar to a normal certificate update but involving a cross-certificate. 2 Certificate/CRL discovery operations: some PKI management operations result in the publication of certificates or CRLs 2.1 certificate publication: Having gone to the trouble of producing a certificate some means for publishing it is needed.Note that the above three functions will often be combined. -key2.2 CRL publication: As for certificates. 3 Recovery operations: some PKI management operations are used when an end entity has "lost" it's PSE 3.1 key pair recovery: As an option, user client key materials (e.g., a user's private key used for decryption purposes) may be backed up by a CA, an RA or a key backup system associated with a CA or RA. If a subject needs to recover these backed up key materials (e.g., as a result of a forgotten password or a lost key chain file), a protocol exchange may be needed to support such recovery.-revocation request: An authorized person advises a CA of an abnormal situation requiring4 Revocation operations: some PKI operations result in the creation of new CRL entries and/or new CRLs 4.1 revocation request: An authorized person advises a CA of an abnormal situation requiring certificate revocation.Farrell, Adams, Ford [Page 7] INTERNET-DRAFT June 1996 -CA key pair update: As with end entities, CA key pairs need to be updated regularly; however, different mechanisms are required. -cross-certification: Two CAs exchange5 PSE operations: whilst theinformation necessary to establish cross-certificates between those CAs. -cross-certificate update: Similar todefinition of PSE operations (e.g. moving anormal certificate update but involvingPSE, changing across-certificate. -CRL publication: As for certificates.PIN, etc.) are beyond the scope of this specification, we do define a PKIMessage which can form the basis of such operations. Note that on-line protocols are not the only way of implementing the abovefunctions.operations. For allfunctionsoperations there are off-line methods of achieving the same result, and this specification does not mandate use of on-line protocols. For example, when hardware tokens are used, many of thefunctionsoperations may be achieved as part of the physical token delivery. Later sections define a set of standard protocols supporting the above operations. The protocols for conveying these exchanges in different environments(on-line,(file based, on-line, E-mail, and WWW)aremay also be specified.<> 3. Data Structures This section contains descriptions of the data structures requiredFarrell, Adams [Page 7] INTERNET-DRAFT December 1996 2. Assumptions and restrictions 2.1 End entity initialisation The first step for and end entity in dealing with PKI managementmessages. Section 4 describes constraints on their valuesentities is to request information about the PKI functions supported and optionally to securely acquire a copy of thesequencerelevant root CA public key(s). 2.2 Initial registration/certification There are many schemes which can be used to achieve initial registration and certification ofeventsend entities. No one method is suitable foreach ofall situations due to thevarious PKI management operations. Section 5 describes how theserange of policies which a CA maybe encapsulated in various transport mechanisms. 3.1 Overall PKI Message PKIMessage ::= SEQUENCE { header PKIHeader, body PKIBody, protection PKIProtection } 3.1.1. PKI Message Header All PKI messages require some header information for addressingimplement andtransaction identification. Somethe variation in the types ofthis information will also be present in a transport-specific envelope;end entity which can occur. We can however,ifclassify thePKI message is signed theninitial registration / certification schemes which are supported by thisinformationspecification. Note that the word "initial", above, isalso protected (i.e.crucial - wemake no assumption about secure transport). Farrell, Adams, Ford [Page 8] INTERNET-DRAFT June 1996 The following data structure is used to contain this information: PKIHeader ::= SEQUENCE { pvno INTEGER { ietf-version1 (0) }, messageType MessageType, transactionID [1] OCTET STRING OPTIONAL, -- identifiesare dealing with thetransaction, i.e. this will besituation where thesameend entity in-- corresponding request, response and confirmation messages messageID [2] OCTET STRING OPTIONAL, -- identifies this message uniquely (if needed) senderNonce [3] OCTET STRING OPTIONAL, recipNonce [4] OCTET STRING OPTIONAL, -- nonces used to provide replay protection, senderNonce -- is inserted byquestion has had no previous contact with thecreator ofPKI. Where the end entity already possesses certified keys then some simplifications are possible. Having classified the schemes which are supported by thismessage; recipNonce --specification we can then specify some as mandatory and some as optional. The goal is that the mandatory schemes cover anonce previously insertedsufficient number of the cases which will arise in real use, whilst the optional schemes are available for special cases which arise less frequently. In this way we achieve arelated message by --balance between flexibility and ease of implementation. We will now describe theintended recipientclassification ofthis message messageTime UTCTime OPTIONAL, -- timeinitial registration / certification schemes. 2.2.1 Criteria used 2.2.1.1 Initiation ofproductionregistration / certification In terms ofthis message sender GeneralName, -- identifiesthesender for addressing purposes recipient GeneralName, -- identifiesPKI messages which are produced we can regard theintended recipient for addressing purposes protectionAlg AlgorithmIdentifier OPTIONAL, -- to includeinitiation of thealg. in e.g. signature calculation freeText CHOICE { IA5String, BNPString } OPTIONAL, -- this may be used to indicate context-specific -- instructions (this field is intended for human -- consumption) } MessageType ::= INTEGER { InitReq (0), -- message asking for initialization InitRep (1), -- response to above CertReq (2), -- message asking for a cert. CertRep (3), -- response to above KeyUpdReq (4), -- msg asking for new cert for pub key KeyUpdRep (5), -- response to above KeyRecReq (6), -- msg. asking for key recovery KeyRecRep (7), -- response to above RevReq (8), -- message asking for revocation RevRep (9), -- response to above CrossCertReq (10), --initial registration / certification exchanges as occurring wherever the first PKI messageasking for cross-certification CrossCertRep (11), -- responserelating toabove CAKeyUpdAnn (12), -- announcement of CA key pair update CertAnn (13), -- announcement of a certificate Farrell, Adams, Ford [Page 9] INTERNET-DRAFT June 1996 RevAnn (14), -- announcement of revocation of a cert CRLAnn (15), -- announcement of CRL PKIConfirm (16) -- used for confirmation in 3-way protocols } The transactionID field withinthemessage headerend entity isrequired soproduced. Note that therecipientreal world initiation ofa response message can correlate this withtherequest issued. Inregistration / certification procedure may occur elsewhere (e.g. a personnel department may telephone an RA operator). The possible locations are: at thecase ofend entity, an RAthereor a CA. 2.2.1.2 End entity message origin authentication The on-line messages produced by the end entity which requires a certificate may bemany requests "outstanding" at a given moment.authenticated or not. Thevaluerequirement here is to authenticate the origin ofthis field should be uniqueany messages from thesender's perspective in orderend entity tobe useful. <> 3.1.2.the PKIMessage Body PKIBody ::= CHOICE { -- message-specific body elements [0] InitReqContent, [1] InitRepContent, [2] CertReqContent, [3] CertRepContent, [4] KeyUpdReqContent, [5] KeyUpdRepContent, [6] KeyRecReqContent, [7] KeyRecRepContent, [8] RevReqContent, [9] RevRepContent, [10] CrossCertReqContent, [11] CrossCertRepContent, [12] CAKeyUpdAnnContent, [13] CertAnnContent, [14] RevAnnContent, [15] CRLAnnContent, [16] PKIConfirmContent, } 3.1.3. PKI Message Protection Some PKI messages will be protected for integrity.(CA/RA). Inthat case the following structure is used: PKIProtection ::= SEQUENCE { alg AlgorithmIdentifier OPTIONAL, -- when boththisfield andspecification, such authentication is achieved by theprotectionAlg field ofPKI (CA/RA) issuing the-- PKIHeader are present, they mustend entity with a secret value (initial authentication key) and reference value (used to identify the transaction) via some out-of-band means. The initial authentication key can then be used to protect relevant PKI messages. We can thus classify thesame protectionBits BIT STRING }initial registration/certification scheme Farrell,Adams, FordAdams [Page10]8] INTERNET-DRAFTJuneDecember 1996The inputaccording to whether or not thecalculation of the protectionBits ison-line end-entity -> PKI messages are authenticated or not. Note 1: We do not discuss theDER encodingauthentication of thefollowing data structure: ProtectedPart ::= SEQUENCE { PKIHeader, PKIBody} Note thatPKI -> end entity messages here as this isequivalent toalways required. In any case, it can be achieved simply once theASN.1 notation: PKIProtection ::= SIGNATURE SEQUENCE { PKIHeader, PKIBody} The protocols required for PKI management use this structure differently, there are four possibilities: - no protection: e.g. to pass an "out-of-band" CAroot-CA public key- symmetric protection: used in somehas been installed at the end entity's equipment or based on the initial authentication key. Note 2: An initial registrationschemes - single signature protection: e.g., when an RA signs a request - double signature protection: e.g., when both/ certification procedure can be secure where the messages from the end entityand RA signare authenticated via some out- of-band means (e.g. arequest 3.1.3.1. Unprotected PKI messages <> 3.1.3.2. Symmetric protectionsubsequent visit). 2.2.1.3 Location ofPKI messages <> 3.1.3.3. Single signatures on PKI messages <> 3.1.3.4. Double signatures on PKI messages <> Some PKI messages may be signed twice.key generation In thiscase the PKIProtection structurespecification, key generation isalso usedregarded asfollows: pkix-double-sig-alg-id ::= AlgorithmIdentifier -- value TBS -- just an OID; no parameters Farrell, Adams, Ford [Page 11] INTERNET-DRAFT June 1996 The protectionBits field will contain the DER encoding of the following data structure: TwoSigProtection ::= SEQUENCE { firstAlgId [0] AlgorithmIdentifier OPTIONAL, firstSig BIT STRING, secondSigner GeneralName, secondAlgId [1] AlgorithmIdentifier OPTIONAL, secondSig BIT STRING} Where secondSig contains the signature ofoccurring wherever either theDER encodingpublic or private component ofthe following: secondSigInput ::= SEQUENCE { PKIHeader, PKIBody, PKIProtection, -- version from 1st signer GeneralName, AlgorithmIdentifier OPTIONAL } 3.2 Common Data Structures Before specifying the specific types which may be placed inaPKIBody we define some useful data structures which are usedkey pair first occurs inmore than one case. 3.2.1. Requested Certificate Contents Variousa PKImanagement messages requiremessage. Note that this does not preclude a centralised key generation service - theoriginator ofactual key pair may have been generated elsewhere and transported to themessage indicate someend entity, RA or CA. There are thus three possibilities for the location of key generation: thefields which are required to be present inend-entity, an RA or acertificate. The CertTemplate structure allowsCA. 2.2.1.4 Confirmation of successful certification Following the creation of an initial certificate for an endentity or RA to specify as much as theyentity, additional assurance canaboutbe gained by having thecertificate they require. ReqCertContent is basicallyend entity explicitly confirm successful receipt of thesame as a Certificate but with all fields optional. Note that even ifmessage containing (or indicating theoriginator completely specifiescreation of) thecontents of a certificate they require, a CA is free to modify fields withincertificate. Naturally, this confirmation message must be protected (based on thecertificate actually issued. CertTemplate ::= SEQUENCE { version [0] Version OPTIONAL, -- used to ask for a particular syntax version serial [1] INTEGER OPTIONAL, -- used to askinitial authentication key or other means). This gives two further possibilities: confirmed or not. 2.2.2 Mandatory schemes The criteria above allow for aparticular seriallarge numbersigningAlg [2] AlgorithmIdentifier OPTIONAL, -- used to askof initial registration / certification schemes. This specification mandates that conforming RA/CA equipment must support both of theCA to use this alg. for -- signingschemes listed below. Conforming end entity equipment must support one of thecert subject [3] Name OPTIONAL, validity [4] OptionalValidity OPTIONAL, Farrell, Adams, Ford [Page 12] INTERNET-DRAFT June 1996 issuer [5] Name OPTIONAL, publicKey [6] SubjectPublicKeyInfo OPTIONAL, issuerUID [7] UniqueIdentifier OPTIONAL, subjectUID [8] UniqueIdentifier OPTIONAL, extensions [9] Extensions OPTIONAL, } --schemes listed below. 2.2.2.1 Centralised scheme In terms of theextensions whichclassification above, this scheme is where: - initiation occurs at therequester would like incertifying CA; - no on-line message authentication is required; - key generation occurs at thecert. OptionalValidity ::= SEQUENCE { notBefore [0] UTCTime OPTIONAL, notAfter [1] UTCTime OPTIONAL } CertTemplates ::= SEQUENCE OF CertTemplate 3.2.2. Encrypted Private Key Where private keys are sent in PKI messagescertifying CA; - no confirmation message is required. In terms of message flow, this scheme means that thefollowing data structureonly message required isused. EncryptedPrivKey ::= SEQUENCE { privKey BitsAndAlgs, --sent from theprivate key encrypted encSymmKey BitsAndAlgs OPTIONAL -- a symmetric key usedCA toencrypttheprivate key } BitsAndAlgs ::= SEQUENCE { encKey BIT STRING, encAlg [0] AlgorithmIdentifier OPTIONAL, -- algorithm used to encryptend entity. The message must contain thekey keyAlg [1] AlgorithmIdentifier OPTIONAL -- algorithmentire PSE forwhichthekey is intended toend entity. Some out-of-band means must beused } EncryptedPrivKeys ::= SEQUENCE of EncryptedPrivKey Use of this data structure requires thatprovided to allow thecreator and intended recipient are respectively ableend entity toencrypt and decrypt. Typically,authenticate the message received. 2.2.2.2 Basic authenticated scheme In terms of the classification above, thiswill mean thatscheme is where: - initiation occurs at the end entityhas been issued with- message authentication is required - key generation occurs at the end entity - asecretconfirmation message is required Farrell, Adams [Page 9] INTERNET-DRAFT December 1996 In terms of message flow, the scheme is as follows: End entity CA ========== ============= out-of-band distribution of initial authentication keysharedand reference value Key generation Creation of certification request Protect request with IAK -->>--certification request-->> verify request process request create response --<<--certification response--<<-- handle response create confirmation -->>--confirmation message-->>-- verify confirmation (Where verification of the confirmation message fails, the CA must revoke the newly issued certificate if necessary.) 2.3 Proof of Possession of Private Key In order to prevent certain attacks, thegeneratorPKI management operations specified here require end-entities to prove that they have possession of (i.e., are able to use) the private keypair. Ifcorresponding to therecipient ofpublic key for which a certificate is requested. This is accomplished in a different ways, depending on thePKIMessage already possessestype of key for which a certificate is requested. If aprivatekeyusablecan be used fordecryption,multiple purposes (e.g. an RSA key) then any of theencSymmKey fieldmethods maycontain a session key encrypted usingbe used. This specification explicitly allows for cases where an end entity supplies therecipient's public key. 3.2.3. Status codesrelevant proof to an RA andFailure Information for PKI messages All response messages will include some status information. The following values are defined. PKIStatus ::= INTEGER { granted (0), -- you got exactly what you asked for grantedWithMods (1), -- you got something like what you asked for;the-- requester is responsible for ascertaining the differences Farrell, Adams, Ford [Page 13] INTERNET-DRAFT June 1996 rejection (2), -- you don't get it, more information elsewhere inRA subsequently attests to the-- message waiting (3), --CA that therequest body partrequired proof hasnot yetbeenprocessed, -- expectreceived (and validated!). For example, an end entity wishing tohear more later revocationWarning (4) -- this message contains a warning thathave arevocation is -- imminent revocationNotification (5) -- notificationsigning key certified could send the appropriate signature to the RA which then simply notifies the relevant CA thata revocationthe end entity hasoccurred } Responderssupplied the required proof. Of course, such a situation mayusebe disallowed by some policies. 2.3.1 Signature Keys For signature keys, thefollowing syntaxend-entity can sign a value toprovide more information about failure cases. PKIFailureInfo ::= BIT STRING { -- since weprove possession of the private key. 2.3.2 Encryption Keys For encryption keys, the end-entity canfailbe required to decrypt a value inmore than -- one way! badAlg (0), badMessageCheck (1) -- <> } StatusInfo ::= SEQUENCE { status PKIStatus, failInfo PKIFailureInfo OPTIONAL } 3.2.4. Certificate Identification Inorder toidentify particular certificatesprove possession of thefollowing data structureprivate key. This can be achieved either directly or indirectly. The direct method isused. CertId ::= SEQUENCE { issuer GeneralName, serialNumber INTEGER } Furthermore,to issue alist of certificates is identified as follows. Certs ::= SEQUENCE OF Certificate 3.2.5. Publication Information <> In orderrandom challenge toallow requesterswhich an immediate response is required. The indirect method is toindicate where and/or how certificates should be published, or to allow responders to indicate where and/or how certificates have been published, the following syntaxissue a certificate which isused. PublicationInfo ::= SEQUENCE OF SEQUENCE { pubMethod OBJECT IDENTIFIER, pubDetails OCTET STRING OPTIONAL}encrypted for the Farrell,Adams, FordAdams [Page14]10] INTERNET-DRAFTJuneDecember 19963.2.6. "Out-of-band"end entity (and have the end entity demonstrate its ability to decrypt this certificate in the confirmation message). This allows a CApublicto issue a certificate in a form which can only be used by the intended end entity. This specification uses the indirect method because this requires no extra messages to be sent (i.e., the proof can be demonstrated using the {request, response, confirmation} triple of messages). 2.3.3 Key Agreement Keys For keyEachagreement keys, the end entity and the PKI management entity (i.e. CA or RA) mustbe able to publish its current publicestablish a shared secret keyvia some "out- of-band" means. While such mechanisms are beyondin order to prove that thescopeend entity has possession of the private key. Note that thisdocument, we define data structuresneed not impose any restrictions on the keys which cansupport such mechanisms. There are generally two methods available; either thebe certified by a given CAdirectly publishes-- in particular, for Diffie-Hellman keys the end entity may freely choose itspublic key and associated attributes, or this information is available viaalgorithm parameters -- provided that theDirectoryCA can generate a short-term (orequivalent) andone-time) key pair with the appropriate parameters when necessary. 2.4 Root CApublishes a hash of this valuekey update This discussion only applies toallow verificationCAs which are a root CA for some end entity. The basis of the procedure described here is that the CA protects itsintegrity before use. OOBCert ::= Certificate OOBCertHash ::= SEQUENCE { hashAlg AlgorithmIdentifier OPTIONAL, certId CertId OPTIONAL, hashVal BIT STRING} -- hashVal is calculated over DER encoding of an entire OOBCert 3.3 Operation-Specific Data Structures 3.3.1. Initialization Request An Initialization request message (InitReq) contains an InitReqContent data structure which specifies the requested certificate(s). Typically, SubjectPublicKeyInfo, KeyId,new public key using its previous private key andValidityvice versa. Thus when a CA updates its key pair it must generate two new cACertificate attribute values if certificates arethe template fields which may be supplied for each certificate requested. InitReqContent ::= SEQUENCE { referenceNum INTEGER, protocolEncKey [0] SubjectPublicKeyInfo OPTIONAL, certTemplates CertTemplates } 3.3.2. Initialization Response An Initialization response message (InitRep) containsmade available using anInitRepContent data structure which has for each certificate requested a StatusInfo field, a subject certificate, and possiblyX.500 directory. When aprivateCA changes its key(encrypted with a session key, whichpair those entities who have acquired the old CA public key via "out-of-band" means are most affected. It isitself encryptedthese end entities who will need access to the new CA public key protected with theprotocolEncKey). InitRepContent also contains aold CAsignature certificate. InitRepContent ::= SEQUENCE { caSigCert Certificate, response SEQUENCE OF CertResponse } Farrell, Adams, Ford [Page 15] INTERNET-DRAFT June 1996 3.3.3. Registration/Certification Request A Registration/Certification request message (CertReq) containsprivate key. However, they will only require this for aCertReqContent data structure which specifieslimited period (until they have acquired therequested certificate. CertReqContent ::= CertTemplates 3.3.4. Registration/Certification Response A registration response message (CertRep) contains a CertRepContent data structure which has anew CA publickey, a status value and optionally failure information, a subject certificate, and an encrypted private key. CertRepContent ::= SEQUENCE { caPub [1] OOBCert OPTIONAL, response SEQUENCE OF CertResponse } CertResponse ::= SEQUENCE { status StatusInfo, certifiedKeyPair CertifiedKeyPair OPTIONAL, } CertifiedKeyPair ::= SEQUENCE { certificate [1] Certificate OPTIONAL, privateKey [2] EncryptedPrivKey OPTIONAL } Only one ofkey via thefailInfo (in StatusInfo)"out-of-band" mechanism). This will typically be easily achieved when these end entity's certificates expire. The data structure used to protect the new and old CA public keys is a standard certificatefields(which may also contain extensions). There are no new data structures required. Notes: 1.This scheme does not make use of any of the X.509 v3 extensions as it should bepresent in CertRepResponse (depending on the status). For some status values (e.g., waiting) neitherable to work even for version 1 certificates. The presence of theoptional fields willKeyIdentifier extension would make for efficiency improvements. 2.While the scheme could bepresent. 3.3.5. Key update request content Forgeneralized to cover cases where the CA updates its keyupdate requestspair more than once during thefollowing syntax is used. Typically, SubjectPublicKeyInfo, KeyId, and Validity arevalidity period of one of its end entity's certificates, this generalization seems of dubious value. This means that thetemplate fields which may be supplied for each key to be updated. As well, an encryption certificate, orvalidity period of asignature certificate, or both, would typicallyCA key pair must bespecified in latestCerts. KeyUpdReqContent ::= SEQUENCE { endEntityName GeneralName, latestCerts SEQUENCE OF CertId, protocolEncKey [1] SubjectPublicKeyInfo OPTIONAL, certTemplates [2] CertTemplates OPTIONAL }Farrell,Adams, FordAdams [Page16]11] INTERNET-DRAFTJuneDecember 19963.3.6. Key Update response content For key update responses the syntax used is identical togreater than theinitialization response. KeyUpdRepContent ::= InitRepContent 3.3.7. Key Recovery Request content Forvalidity period of any certificate issued by that CA using that keyrecovery requests the syntax used is identicalpair. 3.This scheme forces end entities to acquire theinitialization request InitReqContent. Typically, SubjectPublicKeyInfo and KeyId are the template fields which may be used to supply a signaturenew CA public keyfor which a certificate is required. KeyRecReqContent ::= InitReqContent 3.3.8. Key recovery response content For key recovery responseson thefollowing syntax is used. For some status values (e.g., waiting) noneexpiry of theoptional fields will be present. KeyRecRepContent ::= SEQUENCE { status StatusInfo, caCerts Certs OPTIONAL, newSigCert Certificate OPTIONAL, keyPairHist SEQUENCE OF CertifiedKeyPair OPTIONAL, } 3.3.9. Revocation Request Content When requesting revocation of alast certificate(or several certificates) the following data structure is used. The name of the requestor is present in the PKIHeader structure. RevReqContent ::= SEQUENCE OF RevDetails RevDetails ::= SEQUENCE { certDetails CertTemplate, -- allows requestor to specify as much astheycan about -- the cert. for which revocation is requested -- (e.g. for cases inowned whichserialNumber is not available) revocationReason ReasonFlags, -- fromwas signed with theDAM, so thatold CAknows which Dist. point to use badSinceDate UTCTime OPTIONAL, -- indicates best knowledge of sender crlEntryDetails Extensions} -- requested crlEntryExtensions 3.3.10. Revocation Response Content The response toprivate key (via theabove message. If produced,"out-of-band" means). Certificate and/or key update operations occurring at other times do not necessarily require thisis sent to the requestor of(depending on therevocation. (A separate revocation announcement message may be sent toend entity's equipment). 2.4.1 CA Operator actions To change thesubjectkey of thecertificate for which revocation was requested.) Farrell, Adams, Ford [Page 17] INTERNET-DRAFT June 1996 RevRepContent ::= SEQUENCE { status StatusInfo, revCerts [0] SEQUENCE OF CertId OPTIONAL, -- identifies the certs for which revocation was requested crls [1] SEQUENCE OF CertificateList OPTIONAL -- the resulting CRLs (there may be more than one) } 3.3.11. Cross certification request content Cross certification requests use the same syntax as for normal certification requests. CrossCertReqContent ::= CertReqContent 3.3.12. Cross certification response content Cross certification responses useCA, thesame syntax as for normal certification responses. CrossCertRepContent ::= CertRepContent 3.3.13.CAKey Update Announcement content Whenoperator does the following: 1.Generate aCA updates its ownnew keypairpair. 2.Create a certificate containing thefollowing data structure may be used to announce this event. CAKeyUpdAnnContent ::= SEQUENCE { oldWithNew Certificate, --oldpubCA public key signed with the newpriv newWithOld Certificate, --private key (the "old with new" certificate). 3.Create a certificate containing the newpubCA public key signed with the oldpriv newWithNew Certificate --private key (the "new with old" certificate). 4.Create a certificate containing the newpubCA public key signed with the newpriv } 3.3.14. Certificate Announcement This data structure may be used to announceprivate key (the "new with new" certificate). 5.Publish these new certificates via theexistence of certificates. Notedirectory and/or other means. (A CAKeyUpdAnn message.) 6.Export the new CA public key so thatthis structure (andend entities may acquire it using theCertAnn message itself) is intended to be used for those cases (if any) where there"out-of-band" mechanism. The old CA private key is then nopre-existing method for publication of certificates; it is not intended to be used where,longer required. The old CA public key will however remain in use forexample, X.500 issome time. The time when themethod for publication of certificates. CertAnnContent ::= Certificate Farrell, Adams, Ford [Page 18] INTERNET-DRAFT June 1996 3.3.15. Revocation Announcement When aold CAhas revoked, orpublic key isabout to revoke, a particular certificate it may issue an announcementno longer required (other than for non-repudiation) will be when all end entities of this(possibly upcoming) event. RevAnnContent ::= SEQUENCE { status PKIStatus, certId CertId, revocationTime UTCTime, badSinceDate UTCTime, crlEntryDetails [0] Extensions OPTIONAL, -- crlEntryExtensions (e.g. reason) crlDetails [1] Extensions OPTIONAL, -- crlExtensions (e.g. crl number) } ACAmay use such an announcement to warn (or notify) a subject that its certificate is about to be (or has been) revoked. This would typically be used where the request for revocation did not come fromhave acquired thesubject concerned. 3.3.16. CRL Announcement When anew CAissuespublic key via "out-of-band" means. The "old with new" certificate should have anew CRL (or set of CRLs) the following data structure may be used to announce this event. CRLAnnContent ::= SEQUENCE OF CertificateList 3.3.17. PKI Confirmation content This data structure is used in three-way protocols asvalidity period starting at thefinal PKIMessage. Its content isgeneration time of thesame in all cases - actually there is no content sinceold key pair and ending at thePKIHeader carries alltime at which therequired information. PKIConfirmContent ::= NULL Farrell, Adams, Ford [Page 19] INTERNET-DRAFT June 1996 4. PKI Management OperationsCA will next update its key pair. The "new with old" certificatemanagement protocol exchanges defined in this section support management communications between client systems, each of which supports one or more users, and CAs. In addition, one management protocol exchange is defined for use between two CAs, for the purpose of establishing cross-certificates. Each exchange is defined in terms ofshould have asequence of messages between the two systems concerned. This section definesvalidity period starting at thecontentsgeneration time of themessages exchanged. The protocols for conveying these exchanges in different environments (on-line, E-mail,new key pair andWWW) are specified in Section 5. The protocol exchanges defined inending at the time by which all end entities of thisdocument are as follows. 1. Registration/Certification One-Step Registration/Certification User Initialization/Certification 2. End-Entity Key Pair Update Update for Client-Generated Key Pair Update for Centrally-Generated Key Pair Centrally-Initiated Key Pair Update 3. Encryption Key Pair Recovery 4. Revocation Request 5. Cross-Certification 6.CAKey Pair Update 7. Certificate Publication 8. Revocation Publication 9. CRL Publication 10. Certificate Update 11. Cross-Certificate Update The following notes apply towill securely possess theprotocol exchange descriptions: -In exchanges betweennew CA public key. The "new with new" certificate should have aclient systemvalidity period starting at the generation time of the new key pair and ending at the time at which the CA will next update its key pair. 2.4.2 Verifying Certificates. Normally when verifying aCA,signature theprotocol exchange is initiated byverifier simply(!) verifies theclient system. The one exception to this iscertificate containing theCentrally-Initiated Key Pair Update exchange. -To provide an upgrade path,public key of the signer. However, once aprotocol version indicatorCA isalways included in the first messageallowed to update its key there are a range ofan exchange. -A message type indicator is includednew possibilities. These are shown in theprotected part of all messages. -All messages include an optional transaction identifier which is used to assist correlation of requesttable below. Farrell, Adams [Page 12] INTERNET-DRAFT December 1996 Repository contains NEW Repository contains only OLD andresponse messages for one transaction.OLD public keys public key (due to e.g. delay in publication) PSE PSE Contains PSE Contains PSE Contains Contains OLD public NEW public OLD public NEW public key key key key Signer's Case 1: Case 3: Case 5: Case 7: certifi- Thisidentifierisgenerated by the initiator ofIn this case Although theexchange and will typically includeIn this case cate is theinitiator's name plus a transaction sequence number. -The initial message fromtheclient toverifier CA operator the CAmay optionally containprotected standard must access has not operator has using NEW case where theclient system time. This is used to facilitateupdated thecorrection of client time problems by central administrators. -Responses from CA to client includenot updated public theCA system time. The client can use this time to check that its own system time is within a reasonable range. -Random numbers are useddirectory insome ofdirectory theprotocols to prevent replay oftheexchanges. Farrell, Adams, Ford [Page 20] INTERNET-DRAFT June 1996 -Responsesdirectory key verifier order to get verifier canbe aborted at any time. An enumerated error code is sent from the aborting endand so the canbe decoded into a user readable error string attheother end. Error codes are not specified in this versionvalue ofthis document. -Items in square brackets [] are optional. -In every instance in which averify the verification directly the NEW certificate will FAIL verify the public key directly - certificate this istransferred, it is transferred inthus without the same as using the case 1. directory Signer's Case 2: Case 4: Case 6: Case 8: certifi- In this In this case The verifier Although the cate is case theform of X.509 subjectPublicKeyInfo, including algorithm identifier and (optional) parameters. -When a new key pair is generated by a client, a key identifier may optionally be sent tothe verifier thinks this CAalong withoperator protected verifier can directly is the has not using OLD must verify the situation of updated the public access the certificate case 2 and directory the keyfor inclusiondirectory without will access verifier can in order using thecertificate. However,theCA may override this value with a key identifier of its own. Ifverify theclient is concerned aboutto get thekey identifierdirectory directory, certificate valueused, it should checkof however thenew certificate. -Where this description refers to an encryption key pair, this could be a key pair for RSA key transport or could be key pair for key establishment using, for example, a Diffie-Hellman based algorithm. 4.1 Registration/Certification There are various approaches to this operation. 4.1.1. One-Step Registration/Certification For simple end entitiesdirectly - the OLD verification thisoperation involves an out-of-band (or indeed implicit) request to an RA or CA. If no RAisinvolved thenthus public key will FAIL theCAsame as case 4. 2.4.2.1 Verification inquestion simply prepares a PSE for the end entity. When an RA is involvedcases 1, 4, 5 and 8. In these cases theRA createsverifier has acertification request (CertReq) message forlocal copy of theend entity in question and sends thisCA public key which can be used to verify theappropriate CA. When an RAcertificate directly. This isinvolvedthesteps required aresame asfollows. 1.The RA gathers the information required forthecertification request. 2.The RA creates the certification request message (CertReq); at this point the RAsituation where no key change has ever occurred. Note that case 8 mayprovide the end entity with its PSE if the PSE doesn't need to containarise between theend entity's own certificate(s). 3.The CertReq message is transported totime when theCA. 4.TheCAprocesses the CertReq; this results in the creation of a certification response (CertRep) message. 5.The CertRep message is transported tooperator has generated theRA. 6.The RA processesnew key pair and theCertRep. Depending on its content some looping may be required; that is,time when theRA may have to await further responses or generate a new CertReq for this end entity <>. OnceCA operator stores therequired certificates have been acquiredupdated attributes in theRAdirectory. Case 5 canprepareonly arise if theend entity's PSE (assuming thatCA operator has issued both thePSE containssigner's and verifier's certificates during this "gap" (the CA operator should avoid this as it leads to theend entity's certificates). 7.The end entity receivesfailure cases described below). 2.4.2.2 Verification in case 2. In case 2 thePSE and if necessary verifies thatverifier must get access to theCAold public keycontained therein is correct.of the CA. The verifier does the following: Farrell,Adams, FordAdams [Page21]13] INTERNET-DRAFTJuneDecember 1996We impose1.Lookup thefollowing constraints onCACertificate attribute in thecertification request message. 1.The RA must providedirectory and pick theprotectionAlg field ofappropriate value (based on validity periods) 2.Verify that this is correct using thePKIHeader and must protectnew CA key (which theCertReq message. The name inverifier has locally). 3.If correct then check thesender field ofsigner's certificate using thePKIHeader must be usableold CA key. Case 2 will arise whenverifyingtheprotection. 2.The messageType field ofCA operator has issued thePKIMessage must containsigner's certificate, then changed key and then issued theCertReq value. 3.The CertReqContent suppliedverifier's certificate, so it is quite a typical case. 2.4.2.3 Verification in case 3. In case 3 the verifier mustcontain values forget access to thefollowing fields (i.e. these are mandated for this operation): - version - subject - validity. 4.Ifnew public key of theRACA. The verifier doesnot providethesubjectPublicKeyInfo field this indicates thatfollowing: 1.Lookup theRA is requesting a centrally-generated key pairCACertificate attribute in the directory and pick the appropriate value (based on validity periods). 2.Verify that this is correct using the old CAreturn the end entity's privatekeyencrypted (using an EncPrivKey structure) for(which theend-entity or forverifier has stored locally). 3.If correct then check theRA according to policy (andsigner's certificate using thetype of PSE in use). Ifnew CA key. Case 3 will arise when theRA does provideCA operator has issued thesubjectPublicKeyInfo fieldverifier's certificate, then changed key and then issued the signer's certificate, so it is also quite a typical case. 2.4.2.4 Failure of verification in case 6. In thisdoes not mean thatcase theRA need have generatedCA has issued theend entity'sverifier's PSE containing the new keypair, (which is an option) but simplywithout updating the directory attributes. This means that theRAverifier has no means to get a"good" copytrustworthy version of theend entity's public key. All conformingCA's old key and so verification fails. Note that the failure is the CAimplementations must be able to process any certification request received. Some CA implementations may however, only ever be able to reject requests which contain specific options (e.g., some CA implementations may not allow RAs to request a particular serial number for a certificate). 4.1.2. Initialization 4.1.2.1. End-Entity-Generated Encryption Key Pair 4.1.2.1.1. Overviewoperator's fault. 2.4.2.5 Failure ofExchange This protocol exchange is used to support client initialization, includingverification in case 7. In this case the CA has issued the signer's certificateissuance, for one user,protected withprovision for simultaneously establishing and certifying separate key pairs for digital signature and encryption (or encryption key exchange) purposes. Boththe new keypairs are generated bywithout updating theclient anddirectory attributes. This means that the verifier has noprivate key is exposedmeans to get a trustworthy version of theCA. GenerationCA's new key andcertification ofso verification fails. Note that theencryptionfailure is again the CA operator's fault. 2.4.3 Revocation - Change of CA keypairAs we saw above the verification of a certificate becomes more complex once the CA isoptional. Priorallowed toconducting this exchange,change its key. This is also true for revocation checks as theuser mustCA may haveregistered withsigned theCA,CRL usingeitheraface-to-face registration exchange or some other means. Following registration,newer private key than theCA creates a secret data item, called an authorization code, and transfers this data item by out-of-band means toone that is within theuser.user's PSE. Theauthorization code is used to establish authentication and integrity protectionanalysis of theuser initialization/certification on-line exchange. Thisalternatives isdone by generating a symmetric key based onas for certificate verification. 3. Data Structures This section contains descriptions of theauthorization code and using this symmetric keydata structures required forgenerating Message Authentication Codes (MACs) on all exchanges between client and CA.PKI management messages. Section 4 describes constraints on their values Farrell,Adams, FordAdams [Page22]14] INTERNET-DRAFTJuneDecember 1996In the first two messages exchanged, the client sends its user signature public key (and, optionally, a client-generated encryption public key) to the CAand theCA returns the currently valid CA certificate(s). This exchangesequence ofpublic keys allows the client and CA to authenticateevents for eachother. 4.1.2.1.2. Detailed Description The user receives a reference number and a secret machine-generated authorization code fromof theCA administrator. Both piecesvarious PKI management operations. Section 5 describes how these may be encapsulated in various transport mechanisms. 3.1 Overall PKI Message All ofinformation are transferred totheusermessages used ina secure manner which preserves their integrity and confidentiality.PKI management use the following structure: PKIMessage ::= SEQUENCE { header PKIHeader, body PKIBody, protection [0] PKIProtection OPTIONAL, extraCerts [1] SEQUENCE OF Certificate OPTIONAL } Thereference numberPKIHeader contains information which isusedcommon touniquely identify the client at the CA andmany PKI messages. The PKIBody contains message-specific information. The PKIProtection contains bits which protect theauthorization code is usedPKI message. The extra certificates field can contain certificates which may be useful tosecuretheexchange in terms of integrity. The reference number isrecipient. For example, this can be usedinstead ofby aDNCA or RA touniquely identifypresent an end entity with certificates which it needs to verify it's own new certificate (if theclient becauseCA that issued the end entity's certificate is not aDN may be lengthy and difficultroot CA for the end entity). Note also that this field does not necessarily contain ausercertification path - the recipient may have tomanually type without error. Aftersort, select from, or otherwise process thereference numberextra certificates in order to use them. 3.1.1 PKI Message Header All PKI messages require some header information for addressing andauthorization code have been entered by the user, the client generates: - a client random number, - (if a new user signature key pair is required) a new user signature key pair, - (if a new client-generated encryption key pair is required)transaction identification. Some of this information will also be present in anew encryption key pair. The client securely stores locally any new signature private key and/or client-generated encryption private key. The client then sendstransport-specific envelope; however, if the PKI messageInitReq to the CA. The entire structureis protectedfrom modification with a MAC based on the authorization code. Upon receipt of the InitReq message, if the CA recognizes the reference number and if the protocol version is valid, it saves the client random number, generates its own random number (CA random number), and validates the MAC. Then for the user encryption public key, it creates: - a new certificate for the user's digital signature public key, - (if a new client-generated encryption key pairthen this information isrequired) a new certificate for the user's encryption public key.also protected (i.e. we make no assumption about secure transport). TheCA respondsfollowing data structure is used to contain this information: PKIHeader ::= SEQUENCE { pvno INTEGER { ietf-version1 (0) }, sender GeneralName, -- identifies theclient withsender recipient GeneralName, -- identifies the intended recipient messageTime [0] GeneralizedTime OPTIONAL, -- time of production of this messageInitRep. The entire structure is protected from modification with a MAC based on(used when sender -- believes that theauthorization code. Upon receipt oftransport will be "suitable"; i.e., -- that theInitRep message, the client checks that its own systemtimeis sufficiently closewill still be meaningful upon receipt) protectionAlg [1] AlgorithmIdentifier OPTIONAL, -- algorithm used for calculation of protection bits senderKID [2] KeyIdentifier OPTIONAL, recipKID [3] KeyIdentifier OPTIONAL, Farrell, Adams [Page 15] INTERNET-DRAFT December 1996 -- to identify specific keys used for protection transactionID [4] OCTET STRING OPTIONAL, -- identifies theCA system time, checks the client random number, and validates the MAC. The client then securely storestransaction, i.e. this will be thenew certificatessame in -- corresponding request, response andacknowledgesconfirmation messages senderNonce [5] OCTET STRING OPTIONAL, recipNonce [6] OCTET STRING OPTIONAL, -- nonces used to provide replay protection, senderNonce -- is inserted by thetransactioncreator of this message; recipNonce -- is a nonce previously inserted in a related message bysending back-- the intended recipient of this messagePKIConfirm.freeText [7] PKIFreeText OPTIONAL -- this may be used to indicate context-specific -- instructions (this field is intended for human -- consumption) } PKIFreeText ::= CHOICE { iA5String [0] IA5String, bMPString [1] BMPString } Thefields inpvno field is fixed for thismessage are protected from modification with a MAC based onversion of IPKI. The sender field contains theauthorization code. Farrell, Adams, Ford [Page 23] INTERNET-DRAFT June 1996 Upon receiptname of thePKIConfirm message,sender of theCA checksPKIMessage. This name (in conjunction with senderKID, if supplied) should be usable to verify therandom numbers and validatesprotection on theMAC.message. Ifno errors occur, the CA archivesnothing about thenew user public-key certificate(s). 4.1.2.2. Centrally-Generated Encryption Key Pair 4.1.2.2.1. Overview of Exchange This protocol exchangesender isusedknown tosupport client initialization, including certificate issuance, for one user, with provision for simultaneously establishing and certifying separate key pairs for digital signature and encryption (or encryption key exchange) purposes. The digital signature key pair is generated bytheclient. Optionally, a new encryption key pair is generated by (and, optionally, backed up by) a central facility associated withsending entity (e.g., in theCA. Prior to conducting this exchange,InitReqContent message, where theuserend entity may not know its own DN, e-mail name, IP address, etc.), then the "sender" field musthave registered withcontain a "NULL" value; that is, theCA, using eitherSEQUENCE OF relative distinguished names is of zero length. In such aface-to-face registration exchange or some other means. Following registration,case theCA createssenderKID field must hold an identifier (i.e., a reference number) which indicates to the receiver the appropriate shared secretdata item, called an authorization code, and transfers this data item by out-of-band meansinformation to use to verify theuser.message. Theauthorization code is used to establish authentication and integrity protectionrecipient field contains the name of theuser initialization/certification on-line exchange.recipient of the PKIMessage. Thisis done by generating a symmetric key based onname (in conjunction with recipKID, if supplied) should be usable to verify theauthorization code and using this symmetric key for generating Message Authentication Codes (MACs)protection onall exchanges between client and CA. Inthefirst two messages exchanged,message. The protectionAlg field specifies theclient sends its user signature public keyalgorithm used to protect theCA and the CA returns the currently valid CA certificate(s). This exchange of public keys allows the client and CA to authenticate each other.message. Ifa centrally-generated encryption key pairno protection bits are supplied (PKIProtection istooptional) then this field must be omitted; if protection bits are supplied then this field must beestablished,supplied. senderKID and recipKID are usable to indicate which keys have been used to protect theprivate keymessage (recipKID will normally only be required where protection of thenewly generated key pair is sent from the CA to the client.message uses DH keys). Theclient first generates a protocol encryption key pair and sendstransactionID field within thepublic protocol encryption key tomessage header is required so that theCA. The CA createsrecipient of arandom symmetric key called the session key and encrypts the user encryption private key with it and then encrypts the session keyresponse message can correlate this with a previously issued request. For example, in thepublic protocol encryption key it received from the client. The CA sends the encrypted user encryption private key and encrypted session key back to the client. The client uses its private protocol decryption key to decrypt the session key and then uses the session key to decrypt the encryption private key. The protocol encryption key pair and session key are discarded after the exchange.case of an RA there may be many requests "outstanding" at a given moment. Farrell,Adams, FordAdams [Page24]16] INTERNET-DRAFTJuneDecember 19964.1.2.2.2. Detailed DescriptionTheuser receives a reference numbersenderNonce anda secret machine-generated authorization code from the CA administrator. Both pieces of information are transferred torecipNonce fields protect theuser in a secure manner which preserves their integrity and confidentiality.PKIMessage against replay attacks. Thereference number is used to uniquely identifymessageTime field contains theclienttime at which theCA andsender created theauthorization code is usedmessage. This may be useful tosecure the exchange integrity-wise. The reference number is used instead of a DNallow end entities touniquely identifycorrect their local time to be consistent with theclient becausetime on aDNcentral system. The freeText field may belengthy and difficult forused to send auserhuman-readable message tomanually type without error. After the reference number and authorization code have been entered by the user,theclient generates: - a client random number, - (if a new user signature key pair is required) a new user signature key pair, - (if a new centrally-generated encryption key pairrecipient. 3.1.2 PKI Message Body PKIBody ::= CHOICE { -- message-specific body elements ir [0] InitReqContent, ip [1] InitRepContent, cr [2] CertReqContent, cp [3] CertRepContent, kur [4] KeyUpdReqContent, kup [5] KeyUpdRepContent, krr [6] KeyRecReqContent, krp [7] KeyRecRepContent, rr [8] RevReqContent, rp [9] RevRepContent, ccr [10] CrossCertReqContent, ccp [11] CrossCertRepContent, ckuann [12] CAKeyUpdAnnContent, cann [13] CertAnnContent, rann [14] RevAnnContent, crlann [15] CRLAnnContent, conf [16] PKIConfirmContent, nested [17] NestedMessageContent, infor [18] PKIInfoReqContent, infop [19] PKIInfoRepContent, error [20] ErrorMsgContent } The specific types are described in section 3.3 below. 3.1.3 PKI Message Protection Some PKI messages will be protected for integrity. (Note that if an asymmetric algorithm isrequired)used to protect aprotocol encryption key pair. The client securely stores locally any new signature private key and/or client-generated encryption private key. The client then sends themessageInitReq toand theCA. The entire structure is protected from modification with a MAC based onrelevant public component has been certified already, then theauthorization code. Upon receiptorigin of message can also be authenticated. On theInitReq message, if the CA recognizes the reference number andother hand, if theprotocol versionpublic component isvalid, it saves the client random number, generates its own random number (CA random number), and validates the MAC. Ituncertified thencreates: - a new certificate fortheuser's digital signature public key, - (if a new centrally-generated encryption key pairmessage origin cannot be automatically authenticated, but may be authenticated via out-of-band means.) When protection isrequired) a session key, a new user encryption key pair, and a new certificate forapplied theuser encryption public key.following structure is used: PKIProtection ::= BIT STRING TheCA respondsinput to theclient withcalculation of themessage InitRep. If a new centrally-generated encryption key pairprotectionBits isbeing generated,theuser encryption private key is encrypted usingDER encoding of thesession key andfollowing data structure: ProtectedPart ::= SEQUENCE { Farrell, Adams [Page 17] INTERNET-DRAFT December 1996 header PKIHeader, body PKIBody } Depending on thesession key is encrypted withcircumstances theprotocol encryption public key. The entire structure is protectedPKIProtection bits may contain a MAC or signature. Only the following cases can occur: - shared secret information In this case the sender and recipient share secret information (established via out-of-band means or frommodification witha previous PKI management operation). The protection bits will typically contain a MACbased onvalue and theauthorization code. Upon receipt ofprotectionAlg will be theInitRep structure,following: PasswordBasedMac ::= OBJECT IDENTIFIER PBMParameter ::= SEQUENCE { salt OCTET STRING, owf AlgorithmIdentifier, -- AlgId for a One-Way Function (SHA-1 recommended) iterationCount INTEGER, -- number of times theclient checks that its own system timeOWF issufficiently close toapplied mac AlgorithmIdentifier -- theCA system time, checksMAC AlgId (e.g., DES-MAC or Triple-DES-MAC [PKCS #11]) } In theclient random number, and validatesabove protectionAlg theMAC. If a new centrally- generated encryption key pairsalt value isincluded, the client decryptsappended to theencryption private key.shared secret input. TheclientOWF is thensecurely storesapplied iterationCount times, where thenew certificates and encryption private key (if present) and acknowledgessalted secret is thetransaction by sending backinput to themessage PKIConfirm. The fields in this message are protected from modification with a MAC based onfirst iteration and, for each successive iteration, theauthorization code. Farrell, Adams, Ford [Page 25] INTERNET-DRAFT June 1996 Upon receipt ofinput is set to be thePKIConfirm message,output of theCA checksprevious iteration. The output of therandom numbers and validatesfinal iteration (called "BASEKEY" for ease of reference, with a size of "H") is what is used to form theMAC.symmetric key. Ifno errors occur,theCA archives the new user public-key certificate(s) and (if there isMAC algorithm requires anew centrally-generated encryptionK-bit keypairandkey recoveryK <= H, then the most significant K bits of BASEKEY are used. If K > H, then all of BASEKEY isto be supported)used for theencryption private key. 4.2 End Entity Key Pair Update 4.2.1. End-Entity-Generated Key Pair(s) 4.2.1.1. Overviewmost significant H bits ofExchange This exchangethe key, OWF("1" || BASEKEY) is usedto updatefor thesignature key pair and/or client- generated encryption key pairnext most significant H bits ofa user, (e.g., as a resultthe key, OWF("2" || BASEKEY) is used for the next most significant H bits ofroutine cryptoperiod expiry). A user mustthe key, and so on, until all K bits havea valid signaturebeen derived. [Here "N" is the ASCII byte encoding the number N and "||" represents concatenation.] - DH keypairpairs Where the sender and receiver possess Diffie-Hellman certificates with compatible DH parameters, then in order todo this exchange. It is up toprotect theclient to determine whenmessage the end entity must generate anew signaturesymmetric keypair should be generated; this has to be done prior to the expiration ofbased on itssignature public-key certificate. Aprivate DH keypair update request from a client is digitally signed usingvalue and theoriginal user signature private key, this signature being verifiable using an existing signature certificate. IfDH public key of the recipient of the PKI message. The protection bits will typically contain a MAC value keyed with this derived symmetric keypair update isand the protectionAlg will be the following:. Farrell, Adams [Page 18] INTERNET-DRAFT December 1996 DHBasedMac ::= OBJECT IDENTIFIER DHBMParameter ::= SEQUENCE { owf AlgorithmIdentifier, -- AlgId for anew user digital signature key, thenOne-Way Function (SHA-1 recommended) mac AlgorithmIdentifier -- theclient signsMAC AlgId (e.g., DES-MAC or Triple-DES-MAC [PKCS #11]) } In therequest message once more (includingabove protectionAlg OWF is applied to thefirst signature), this time usingresult of thenew signature private key. The reasonDiffie- Hellman computation. The OWF output (called "BASEKEY" forthis second signatureease of reference, with a size of "H") is what is used toprove to the CA thatform theclient possesses bothsymmetric key. If thenewMAC algorithm requires a K-bit key andold private keys. The requestK <= H, then the most significant K bits of BASEKEY are used. If K > H, then all of BASEKEY isverified atused for theCA by usingmost significant H bits of thematching user signature public key. A protocol signature key pairkey, OWF("1" || BASEKEY) is usedto authenticate messages fromfor theCA tonext most significant H bits of theclient. CA responses are signed withkey, OWF("2" || BASEKEY) is used for theprotocol signature private key. A CA responsenext most significant H bits of the key, and so on, until all K bits have been derived. [Here "N" isvalidated attheclient by usingASCII byte encoding the number N and "||" represents concatenation.] - signature Where the sender possesses aprotocolsignaturepublic-key certificate which is included inkey pair it may simply sign theCA response.PKI message. Theprotocolprotection bits will contain a signaturepublic-key certificate can be validated by using the CA certificate stored atvalue and theclient. A new user initialization (as in Section 4.1) or key pair recovery (as in Section 4.5) mustprotectionAlg will bedone if the useran AlgorithmIdentifier for a digital signaturekey pair becomes invalid. Farrell, Adams, Ford [Page 26] INTERNET-DRAFT June 1996(e.g., md5WithRSAEncryption or dsaWithSha-1). - multiple protection Insome client system implementations, local key materials are stored incases where anencrypted key data disk file. A user may have several copies of this key data file on different computers. It is possible thatend entity sends akey update could occur and the user could forgetprotected PKI message tocopyan RA, theupdated key data fileRA may forward that message toall the computers they use. To help keep the client using the latest keys, the client sends the CA the serial number of the latest user signature public-key certificate it has ina CA, attaching it's own protection. This is accomplished by nesting thekey update request. Serial numbers areentire message sentso that the CA can check ifby theclient has the latest key pair. If the client does not have the latest signature private key and the signature public-key certificate serial numberend entity within a new PKI message. The structure used isequal to that ofas follows. NestedMessageContent ::= ANY -- This will be aprevious certificate,PKIMessage 3.2 Common Data Structures Before specifying theCA sends back an error codespecific types whichindicates that the client has an old version of the key data file. After this, the client can either find the latest keymay be placed in a PKIBody we define some useful datafile or, ifstructures which are used in more than one case. 3.2.1 Requested Certificate Contents Various PKI management messages require thatfails, initiate a key recovery exchange. 4.2.1.2. Detailed Description The client initiatesthekey update exchange by creating a new signature and/or encryption key pair and generating a random number (client random number). The client then sendsoriginator of the messageKeyUpdReq toindicate some of theCA . Thefieldsin this messagewhich areprotected from modification and authenticated byrequired to be present in adigital signature usingcertificate. The CertTemplate structure allows an end entity or RA to specify as much as they wish about thepre- existing user signature private key. Ifcertificate it requires. ReqCertContent is basically theupdate includessame as anew signature key pair,Certificate but with all fields optional. Note that even if theresult is additionally signed usingoriginator completely specifies thenew user signature private key. Upon receiptcontents ofthe KeyUpdReq message, thea Farrell, Adams [Page 19] INTERNET-DRAFT December 1996 certificate it requires, a CAchecks the protocol version, checks the serial number, savesis free to modify fields within theclient random number, generates its own randomcertificate actually issued. CertTemplate ::= SEQUENCE { version [0] Version OPTIONAL, -- used to ask for a particular syntax version serial [1] INTEGER OPTIONAL, -- used to ask for a particular serial number(CA random number) and verifies the signature usingsigningAlg [2] AlgorithmIdentifier OPTIONAL, -- used to ask theprevious user verification key which is archived atCA to use this alg. for signing theCA. If a user digital signature key pair is being updated,cert subject [3] Name OPTIONAL, validity [4] OptionalValidity OPTIONAL, issuer [5] Name OPTIONAL, publicKey [6] SubjectPublicKeyInfo OPTIONAL, issuerUID [7] UniqueIdentifier OPTIONAL, subjectUID [8] UniqueIdentifier OPTIONAL, extensions [9] Extensions OPTIONAL -- theCA also checksextensions which thesecond signature. It then generates new user signature and/or encryption public-key certificate(s). The CA responds withrequester would like in themessage KeyUpdRep. The fieldscert. } OptionalValidity ::= SEQUENCE { notBefore [0] UTCTime OPTIONAL, notAfter [1] UTCTime OPTIONAL } 3.2.2 Encrypted Values Where encrypted values (restricted, in thismessage are protected from modification and authenticated by a digital signature using the CA protocol signaturespecification, to be either privatekey. Upon receipt ofkeys or certificates) are sent in PKI messages theKeyUpdReq message,following data structure is used. EncryptedValue ::= SEQUENCE { encValue BIT STRING, -- theclient verifiesencrypted value itself intendedAlg [0] AlgorithmIdentifier OPTIONAL, -- thedigital signature usingintended algorithm for which theprotocol verification key contained invalue will be used symmAlg [1] AlgorithmIdentifier OPTIONAL, -- theprotocol signature public-key certificate, checks that its own system time is closesymmetric algorithm used to encrypt theCA system time, and checksvalue encSymmKey [2] BIT STRING OPTIONAL, -- thereceived client random number. The client then securely stores locally the new user public-key certificate(s). It responds with the message PKIConfirm. The fields in this message are protected from modification and authenticated by a digital signature using the pre- existing user signature private key. Upon receipt of the PKIConfirm message, the CA checks that the client and CA random numbers are the same as the ones initially generated, and verifies the received signature using the previous user signature public(encrypted) symmetric keywhich is archived at the CA. The CA then archives the new user public-key certificate(s) and updates its data storesused toreflect the new status ofencrypt theuser. Farrell, Adams, Ford [Page 27] INTERNET-DRAFT June 1996 4.2.2. Centrally-Generated Encryption Key Pair 4.2.2.1. Overview of Exchange This exchange isvalue keyAlg [3] AlgorithmIdentifier OPTIONAL -- algorithm used toupdateencrypt theencryptionsymmetric keypair} Use ofa user, under the assumptionthis data structure requires thatencryption key pairsthe creator and intended recipient aregenerated (and, optionally, backed up) centrally. A user must have a valid signature key pair in orderrespectively able todoencrypt and decrypt. Typically, thisexchange. It is up towill mean that theclientsender and recipient have, or are able todetermine whengenerate, anew encryption key pair should be generated; this must be done some time beforeshared secret key. If theexpiration date in its encryption public-key certificate. 4.2.2.2. Detailed Description The client initiatesrecipient of theexchange by generating a random number (client random number) andPKIMessage already possesses aprotocol encryptionprivate keypair. The clientusable for decryption, thensendstheCA the message KeyUpdReq. The fields in this message are protected from modification and authenticated byencSymmKey field may contain adigital signaturesession Farrell, Adams [Page 20] INTERNET-DRAFT December 1996 key encrypted using thelatest user signature private key. Upon receipt of the KeyUpdReq message, the CA checks the protocol version, checks the serial numbers, saves the client random number, generates its own random number (CA random number), generates a session key, and verifies the received signature using the latest user signaturerecipient's publickey which is archived at the CA. It then generates a new end-user encryption key pairkey. 3.2.3 Status codes andencryption public- key certificateFailure Information forthe user. In the case where the encryption public- key certificate serial number is the second latest, the CA does not generate any keys and uses the latest encryption public-key certificate and encryption private key that it has.PKI messages All response messages will include some status information. TheCA responds with the message KeyUpdRep. In this message,following values are defined. PKIStatus ::= INTEGER { granted (0), -- you got exactly what you asked for grantedWithMods (1), -- you got something like what you asked for; thenew or latest encryption private key-- requester isencrypted withresponsible for ascertaining thesession key anddifferences rejection (2), -- you don't get it, more information elsewhere in thesession key is encrypted withmessage waiting (3), -- theprotocol encryption key. The fields inrequest body part has not yet been processed, -- expect to hear more later revocationWarning (4), -- this messageare protected from modification and authenticated bycontains adigital signature using the protocol signature private key. Upon receipt of the KeyUpdRep message,warning that a revocation is -- imminent revocationNotification (5), -- notification that a revocation has occurred keyUpdateWarning (6) -- update already done for theclient verifiesoldCertId specified in -- FullCertTemplate } Responders may use thedigital signature using the protocol signature public-key certificate, makes sure its own system time is closefollowing syntax to provide more information about failure cases. PKIFailureInfo ::= BIT STRING { -- since we can fail in more than one way! badAlg (0), badMessageCheck (1) -- more TBS } PKIStatusInfo ::= SEQUENCE { status PKIStatus, failInfo PKIFailureInfo OPTIONAL } 3.2.4 Certificate Identification In order to identify particular certificates the following data structure is used. CertId ::= SEQUENCE { issuer GeneralName, serialNumber INTEGER } 3.2.5 "Out-of-band" root CAsystem time, and checkspublic key Each root CA must be able to publish its current public key via some Farrell, Adams [Page 21] INTERNET-DRAFT December 1996 "out- of-band" means. While such mechanisms are beyond thereceived client random number. The client then decryptsscope of this document, we define data structures which can support such mechanisms. There are generally two methods available; either thenew or latest encryption privateCA directly publishes its public key andsecurely stores locally the newassociated attributes, orlatest user encryption public-key certificatethis information is available via the Directory (or equivalent) andencryption private key. It responds withthemessage PKIConfirm.CA publishes a hash of this value to allow verification of its integrity before use. OOBCert ::= Certificate The fieldsinwithin thismessagecertificate areprotected from modification and authenticated by a digital signature usingrestricted as follows: - The certificate should be self-signed, i.e. thelatest usersignatureprivate key. Upon receipt of the PKIConfirm message, the CA checks thatshould be verifiable using theclient and CA random numbers are correctsubjectPublicKey field. - The subject andverifies the signature usingissuer fields should be identical. - If thelatest user signature public key whichsubject field isarchived at the CA. If no errors occur, the CA archivesNULL then both subjectAltNames and issuerAltNames extensions must be present and have exactly thenew user encryption public-keysame value. - The values of all other extensions should be suitable for a self- certificate (e.g. key identifiers for subject andencryption private key, and updates its data stores to reflectissuer should be thenew statussame). OOBCertHash ::= SEQUENCE { hashAlg [0] AlgorithmIdentifier OPTIONAL, certId [1] CertId OPTIONAL, hashVal BIT STRING -- hashVal is calculated over DER encoding of theuser. Farrell, Adams, Ford [Page 28] INTERNET-DRAFT June 1996 4.2.3. Centrally-Initiated Key Pair Update 4.2.3.1. Overview-- subjectPublicKey field ofExchange This exchange is used to updatetheencryption key paircorresponding cert. } The intention ofan user, undertheassumptionhash value here is thatencryption key pairs are generated (and, optionally, backed up) centrally. This exchange differs fromanyone who has securely gotten thepreceding exchange (Key Pair Updatehash value (via the out-of-band means) can verify a self- signed certificate forCentrally-Generated Encryption Key Pair) inthatthe exchangeCA. The hash value isinitiated by the CA rather thanonly calculated over theclient. 4.2.3.2. Detailed Description << To be supplied >> 4.3 Encryption Key Pair Recovery 4.3.1 Overview of Exchange This protocol exchange is used to support recoverysubjectPublicKey field in order to allow theeventCA to change its self- signed certificate (e.g. perhaps to modify some policy constraints). 3.2.6 Archival Options Requesters may indicate that they wish the PKI to archive aclient no longer has a valid signatureprivate key value using the following structure: PKIArchiveOptions ::= CHOICE { encryptedPrivKey [0] EncryptedValue, -- the actual value of the private key keyGenParameters [1] KeyGenParameters, -- parameters which allow the private keypair (duetoexpiration or revocation), or client systembe re-generated archiveRemGenPrivKey [2] BOOLEAN -- set to TRUE if sender wishes receiver to archive the private -- keymaterials have been lost (e.g., as a resultof aforgotten user password). This exchange assumes a system inkey pair which the receiver generates in response to -- this request; set to FALSE if no archival is desired. } KeyGenParameters ::= OCTET STRING Farrell, Adams [Page 22] INTERNET-DRAFT December 1996 -- actual syntax is <<TBS>> -- anencryptionalternative to sending the keypair has been centrally generated and backed up (by a central system associated with a CA). This exchangeisvery similarto send theexchange for User Initialization/Certification with Centrally-Generated Encryption Key Pair. The client and CA start without a wayinformation -- about how totrust one another; that is, they have no reliable sharedre-generate the keypairs. 4.3.2 Detailed Description The user must(e.g. for many RSA -- implementations one could send the firstreceive, by out-of-band means, a referencerandom numberand a secret machine-generated authorization code fromtested -- for primality) <<Microsoft's PFX stuff could be re-used here?>> 3.2.7 Publication Information Requesters may indicate that they wish theCA administrator. The on-line exchange then consists ofPKI to publish asequence of KeyRecReq, KeyRecRep and PKIConfirm, which arecertificate using thesame asstructure below. If theexchange in 4.1.2 except for two differences. First,dontPublish option is chosen, theCA doesrequester indicates that the PKI should notgenerate (or archive) a new encryption key pair and encryption public- key certificate forpublish theuser. Second,certificate (this may indicate that theuser's entire encryption key history (list of encryption public-key certificates and matching encryption private keys) are sent backrequester intends to publish theclient with KeyRecRep. Farrell, Adams, Ford [Page 29] INTERNET-DRAFT June 1996 4.4 Revocation Request 4.4.1 Overview of Exchange This protocol exchange is used to support a revocation request from a user or other authorized party. 4.4.2 Detailed Description << To be supplied >> 4.5 Cross-Certification The initiating CAcertificate him/herself). If the dontCare method is chosen, theCA which will becomerequester indicates that thesubject ofPKI may publish thecross-certificate,certificate using whatever means it chooses. The pubLocation field, if supplied, indicates where theresponding CA will become the issuer ofrequester would like thecross-certificate. The initiating CA mustcertificate to be"up and running" before initiatingfound (note that thecross-certification operation. As with registration/certification there areCHOICE within GeneralName includes afew possibilities here. 4.5.1. One-way request-response scheme: The cross-certification schemeURL and an IP address, for example). PKIPublicationInfo ::= SEQUENCE { action INTEGER { dontPublish (0), pleasePublish (1) }, pubInfos SEQUENCE OF SinglePubInfo OPTIONAL -- pubInfos should not be present if action isessentially"dontPublish" -- (if action is "pleasePublish" and pubInfos is omitted, -- "dontCare" is assumed) } SinglePubInfo ::= SEQUENCE { pubMethod INTEGER { dontCare (0), x500 (1), web (2) }, pubLocation GeneralName OPTIONAL } 3.2.8 "Full" Request Template The following structure groups together the fields which may be sent as part of aone way operation, that is, when successful,certification request: FullCertTemplates ::= SEQUENCE OF FullCertTemplate FullCertTemplate ::= SEQUENCE { certReqId INTEGER, -- to match thisoperation resultsrequest with corresponding response -- (note: must be unique over all FullCertReqs inthe creationthis message) Farrell, Adams [Page 23] INTERNET-DRAFT December 1996 certTemplate CertTemplate, popoSigningKey [0] POPOSigningKey OPTIONAL, archiveOptions [1] PKIArchiveOptions OPTIONAL, publicationInfo [2] PKIPublicationInfo OPTIONAL, oldCertId [3] CertId OPTIONAL -- id. of cert. which is being updated by this onenew cross-certificate.} If therequirementcertification request isthat cross- certificates be created in "both directions" then each CA in turn must initiatefor across-certification operation (or use another scheme). The followings steps occur: 1.The initiating CA gathers the information requiredsigning key pair (i.e., a request for a verification certificate), then thecross certification request 2.The initiating CA createsproof of possession of thecross-certification request message (CrossCertReq); 3.The CrossCertReq messageprivate signing key istransported todemonstrated through use of theresponding CA 4.The responding CA processesPOPOSigningKey structure. POPOSigningKey ::= SEQUENCE { alg AlgorithmIdentifier, signature BIT STRING -- theCrossCertReq; this results insignature (using "alg") on thecreation of a cross-certification response (CrossCertRep) message. 5.The CrossCertRep message is transported toDER-encoded -- POPOSigningKeyInput structure given below } POPOSigningKeyInput ::= SEQUENCE { authInfo CHOICE { sender [0] GeneralName, -- from PKIHeader (used only if an authenticated identity -- has been established for theinitiating CA 6.The initiating CA processessender (e.g., a DN from a -- previously-issued and currently-valid certificate) publicKeyMAC [1] BIT STRING -- used if no authenticated GeneralName currently exists for -- theCrossCertRep; dependingsender; publicKeyMAC contains a password-based MAC -- (using the protectionAlg AlgId from PKIHeader) onits content some loopingthe -- DER-encoded value of publicKey } publicKey SubjectPublicKeyInfo -- from CertTemplate } On the other hand, if the certification request is for an encryption key pair (i.e., a request for an encryption certificate), then the proof of possession of the private decryption key may berequired, that is,demonstrated by the inclusion of the private key (encrypted) in the FullCertTemplate (in the PKIArchivalOptions structure). Alternatively (i.e., if the private key is not included), theinitiatingCA mayhave to await further responses or generatereturn not the certificate, but an encrypted certificate (i.e., the certificate encrypted under anew CrossCertReqrandomly- generated symmetric key, and the symmetric key encrypted under the public key forthiswhich the certification request is being made). The end entity<> Notes: 1.The CrossCertReq should contain a "complete" certification request, that is, all fields (including e.g. a BasicConstraints extension) should be specifiedproves knowledge of the private decryption key to the CA by MACing theinitiating CA. 2.The CrossCertRepPKIConfirm messageshould containusing a key derived from this symmetric key. [Note that if several FullCertTemplates are included in theOOBcert ofPKIMessage, then therespondingCA-uses a different symmetric key for each FullCertTemplate and theinitiating CA should then verify this viaMAC uses a key derived from the"out-of-band" mechanism.concatenation of all these keys.] The MACing procedure uses the PasswordBasedMac AlgId defined in Section 3.1. Farrell,Adams, FordAdams [Page30]24] INTERNET-DRAFTJuneDecember 19964.5.2. Two-way request-response scheme: 4.5.2.1. Overview of Exchange This cross certification exchange allows two CAs to simultaneously certify each other. This means that each CA will create a certificate that3.3 Operation-Specific Data Structures 3.3.1 Initialization Request An Initialization request message (InitReq) contains an InitReqContent data structure which specifies theCA verification key of the other CA. Cross certification is initiated at one CA known as the responder. The CA administrator for the responder identifies the CA it wants to cross certifyrequested certificate(s). Typically, SubjectPublicKeyInfo, KeyId, and Validity are theresponder CA equipment generatestemplate fields which may be supplied for each certificate requested. InitReqContent ::= SEQUENCE { protocolEncKey [0] SubjectPublicKeyInfo OPTIONAL, fullCertTemplates FullCertTemplates } 3.3.2 Initialization Response An Initialization response message (InitRep) contains anauthorization code. The responder CA administrator passes this authorization code by out-of-band means to the requester CA administrator. The requester CA administrator enters the authorization code at the requester CA in order to initiate the on- line exchange. The authorization code is usedInitRepContent data structure which has forauthenticationeach certificate requested a PKIStatusInfo field, a subject certificate, andintegrity purposes. This is done by generatingpossibly asymmetricprivate keybased on(normally encrypted with a session key, which is itself encrypted with theauthorization code and usingprotocolEncKey). InitRepContent ::= CertRepContent 3.3.3 Registration/Certification Request A Registration/Certification request message (CertReq) contains a CertReqContent data structure which specifies thesymmetric key for generating Message Authentication Codes (MACs) on all messages exchanged. Serial numbersrequested certificate. CertReqContent ::= FullCertTemplates 3.3.4 Registration/Certification Response A registration response message (CertRep) contains a CertRepContent data structure which has a CA public key, a status value andprotocol version are used inoptionally failure information, a subject certificate, and an encrypted private key. CertRepContent ::= SEQUENCE { caPub [1] Certificate OPTIONAL, response SEQUENCE OF CertResponse } CertResponse ::= SEQUENCE { certReqId INTEGER, -- to match this response with corresponding request status PKIStatusInfo, certifiedKeyPair CertifiedKeyPair OPTIONAL } CertifiedKeyPair ::= SEQUENCE { certificate [0] Certificate OPTIONAL, Farrell, Adams [Page 25] INTERNET-DRAFT December 1996 encryptedCert [1] EncryptedValue OPTIONAL, privateKey [2] EncryptedValue OPTIONAL, publicationInfo [3] PKIPublicationInfo OPTIONAL } Only one of thesame manner asfailInfo (in PKIStatusInfo) and certificate fields should be present in CertRepResponse (depending on theabove CA-client exchanges. 4.5.2.2. Detailed Description The requester CA initiatesstatus). For some status values (e.g., waiting) neither of theexchange by generating a random number (requester random number).optional fields will be present. Therequester CA then sendsCertifiedKeyPair structure must contain either a Certificate or an EncryptedCert, and an optional EncryptedPrivateKey (i.e. not both a Certificate and EncryptedCert). Given an EncryptedCert and theresponder CArelevant decryption key themessage CrossReq.certificate may be obtained. Thefields inpurpose of thismessage are protected from modification withis to allow aMAC based onCA to return theauthorization code. Upon receiptvalue of a certificate, but with theCrossReq message,constraint that only theresponderintended recipient can obtain the actual certificate. The benefit of this approach is that a CAchecksmay reply with a certificate even in theprotocol version, savesabsence of a proof that the requesterrandom number, generates its own random number (responder random number) and validatesis theMAC. It then generates and archives a new requester certificateend entity whichcontainscan use therequester CA publicrelevant private keyand(note that the proof issigned withnot obtained until the PKIConfirm message is received by the CA). Thus theresponderCAsignature private key. The responder CA responds with the message CrossRep. The fieldswill not have to revoke that certificate inthis message are protected from modification with a MAC based on the authorization code. Upon receipt of the CrossRep message,therequester CA checksevent thatits own system time is close to the responder CA system time, checkssomething goes wrong. 3.3.5 Key update request content For key update requests thereceived random numbersfollowing syntax is used. Typically, SubjectPublicKeyInfo, KeyId, andvalidatesValidity are theMAC. It then generates and archives a new responder certificatetemplate fields whichcontains the responder CA publicmay be supplied for each keyand is signed by the requester CA signature private key. The requester CA responds with the message PKIConfirm. The fields in this message are protected from modification with a MAC based on the authorization code. Upon receipt of the PKIConfirm message, the responder CA checksto be updated. KeyUpdReqContent ::= SEQUENCE { protocolEncKey [0] SubjectPublicKeyInfo OPTIONAL, fullCertTemplates [1] FullCertTemplates OPTIONAL } 3.3.6 Key Update response content For key update responses therandom numbers, archivessyntax used is identical to theresponder certificate, and validatesinitialization response. KeyUpdRepContent ::= InitRepContent 3.3.7 Key Recovery Request content For key recovery requests theMAC. It writes bothsyntax used is identical to the initialization request InitReqContent. Typically, SubjectPublicKeyInfo andresponder certificatesKeyId are the template fields which may be used to supply a signature public key for which a certificate is required. KeyRecReqContent ::= InitReqContent 3.3.8 Key recovery response content For key recovery responses the following syntax is used. For some Farrell,Adams, FordAdams [Page31]26] INTERNET-DRAFTJuneDecember 1996Directory. It then responds with its own PKIConfirm message. Thestatus values (e.g., waiting) none of the optional fieldsin this message are protected from modification withwill be present. KeyRecRepContent ::= SEQUENCE { status PKIStatusInfo, newSigCert [0] Certificate OPTIONAL, caCerts [1] SEQUENCE OF Certificate OPTIONAL, keyPairHist [2] SEQUENCE OF CertifiedKeyPair OPTIONAL } 3.3.9 Revocation Request Content When requesting revocation of aMAC based oncertificate (or several certificates) theauthorization code. Upon receiptfollowing data structure is used. The name of thePKIConfirm message, the requester CA checks the random numbers and validates the MAC. TherequesterCA writes bothis present in the PKIHeader structure. RevReqContent ::= SEQUENCE OF RevDetails RevDetails ::= SEQUENCE { certDetails CertTemplate, -- allows requesterand responder certificatesto specify as much as they can about -- theDirectory. 4.6 CA Key Pair Update The basis of the procedure described herecert. for which revocation isthatrequested -- (e.g. for cases in which serialNumber is not available) revocationReason ReasonFlags, -- from the DAM, so that CAprotects its new public key using its previous private key and vice versa. Thus when a CA updates its key pair it must generate two new cACertificate attribute values if certificates are made available using an X.500 directory. When a CA changes its key pair those entities who have acquiredknows which Dist. point to use badSinceDate GeneralizedTime OPTIONAL, -- indicates best knowledge of sender crlEntryDetails Extensions -- requested crlEntryExtensions } 3.3.10 Revocation Response Content The response to theold CA public key via "out-of-band" means are most affected. Itabove message. If produced, this isthese end entities who will need accesssent to thenew CA public key protected withrequester of theold CA private key. However, they will only require this for a limited period (until they have acquired the new CA public key via the "out-of-band" mechanism). This will typicallyrevocation. (A separate revocation announcement message may beeasily achieved when these end entity's certificates expire. The data structure usedsent toprotectthenew and old CA public keys is a standardsubject of the certificate(whichfor which revocation was requested.) RevRepContent ::= SEQUENCE { status PKIStatusInfo, revCerts [0] SEQUENCE OF CertId OPTIONAL, -- identifies the certs for which revocation was requested crls [1] SEQUENCE OF CertificateList OPTIONAL -- the resulting CRLs (there mayalso contain extensions). There are no new data structures required. Notes: 1.This scheme does not makebe more than one) } 3.3.11 Cross certification request content Cross certification requests useof any oftheX.509 v3 extensionssame syntax asitfor normal certification requests with the restriction that the key should have been generated by the requesting CA and should not beablesent towork even for version 1 certificates. The presence oftheKeyIdentifier extension would makeresponding CA. CrossCertReqContent ::= CertReqContent Farrell, Adams [Page 27] INTERNET-DRAFT December 1996 3.3.12 Cross certification response content Cross certification responses use the same syntax as forefficiency improvements. 2.Whilenormal certification responses with thescheme couldrestriction that no encrypted private key can begeneralized to cover cases where thesent. CrossCertRepContent ::= CertRepContent 3.3.13 CA Key Update Announcement content When a CA updates its own key pairmore than once duringthevalidity period of one of its end entity's certificates,following data structure may be used to announce thisgeneralization seems of dubious value. This means that the validity period of a CA key pair must be greater than the validity period of any certificate issued by that CA using that key pair. 3.This scheme forces end entities to acquire the new CA public key on the expiry of the last certificate they owned which was signed with the old CA private key (via the "out-of-band" means). Certificate and/or key update operations occurring at other times do not necessarily require this (depending on the end entity's equipment). Farrell, Adams, Ford [Page 32] INTERNET-DRAFT June 1996 4.6.1. CA Operator actions To change the key of the CA, the CA operator does the following: 1.Generate a new key pair. 2.Create a certificate containing theevent. CAKeyUpdAnnContent ::= SEQUENCE { oldWithNew Certificate, -- oldCA public keypub signed withthenewprivate key (the "old with new" certificate). 3.Create a certificate containing thepriv newWithOld Certificate, -- newCA public keypub signed withtheoldprivate key (the "new with old" certificate). 4.Create a certificate containing thepriv newWithNew Certificate -- newCA public keypub signed withthe new private key (the "new with new" certificate). 5.Publish thesenewcertificates via the directory and/or other means. (A CAKeyUpdAnn message.) 6.Exportpriv } 3.3.14 Certificate Announcement This data structure may be used to announce thenew CA public key soexistence of certificates. Note thatend entities may acquire it usingthis structure (and the"out-of-band" mechanism. The old CA private keyCertAnn message itself) is intended to be used for those cases (if any) where there isthennolonger required. The old CA public key will however remain in usepre-existing method forsome time. The time whenpublication of certificates; it is not intended to be used where, for example, X.500 is theoldmethod for publication of certificates. CertAnnContent ::= Certificate 3.3.15 Revocation Announcement When a CApublic keyhas revoked, or isno longer required (other than for non-repudiation) will be when all end entitiesabout to revoke, a particular certificate it may issue an announcement of this (possibly upcoming) event. RevAnnContent ::= SEQUENCE { status PKIStatus, certId CertId, willBeRevokedAt GeneralizedTime, badSinceDate GeneralizedTime, crlDetails Extensions OPTIONAL -- extra CRL details(e.g., crl number, reason, location, etc.) } A CAhave acquired the new CA public key via "out-of-band" means. The "old with new" certificate should havemay use such an announcement to warn (or notify) avalidity period starting atsubject that its certificate is about to be (or has been) revoked. This would typically be used where thegeneration time ofrequest for revocation did not come from theold key pair and ending atsubject concerned. The willBeRevokedAt field contains the time at whichthe CA will next update its key pair. The "new with old" certificate should haveavalidity period starting at the generation time of thenewkey pair and ending at the time by which all end entities of this CAentry willsecurely possessbe added to thenew CA public key. The "new with new" certificate should haverelevant CRLs. 3.3.16 CRL Announcement 3.3.17 Farrell, Adams [Page 28] INTERNET-DRAFT December 1996 When avalidity period starting at the generation time of the new key pair and ending at the time at which theCAwill next update its key pair. <> 4.6.2. Verifying Certificates. <> Normally when verifyingissues asignaturenew CRL (or set of CRLs) theverifier simply(!) verifies the certificate containing the public key offollowing data structure may be used to announce this event. CRLAnnContent ::= SEQUENCE OF CertificateList 3.3.18 PKI Confirmation content This data structure is used in three-way protocols as thesigner. However, once a CAfinal PKIMessage. Its content isallowed to update its keythe same in all cases - actually there is no content since the PKIHeader carries all the required information. PKIConfirmContent ::= NULL 3.3.19 PKI Information Request content PKIInfoReqContent ::= BIT STRING { caProtEncCert (0), signKeyPairTypes (1), enckeyPairTypes (2), preferredSymmAlg (3), caKeyUpdateInfo (4), currentCRL (5) } 3.3.20 PKI Information Response content PKIInfoRepContent ::= SEQUENCE { caProtEncCert [0] Certificate OPTIONAL, signKeyPairTypes [1] SEQUENCE OF AlgorithmIdentifier OPTIONAL, encKeypairTypes [2] SEQUENCE OF AlgorithmIdentifier OPTIONAL, preferredSymmAlg [3] AlgorithmIdentifier OPTIONAL, caKeyUpdateInfo [4] CAKeyUpdAnnContent OPTIONAL, currentCRL [5] CertificateList OPTIONAL } 3.3.21 Error Message content ErrorMsgContent ::= SEQUENCE { pKIStatusInfo PKIStatusInfo, errorCode INTEGER OPTIONAL, -- implementation-specific error codes errorDetails CHOICE { IA5String, BMPString } OPTIONAL -- implementation-specific error details } 4. PKI Management functions The PKI management functions outlined in section 1 above area range of new possibilities. Thesedescribed in this section. This section is split into two, the first part dealing with functions which areshown"mandatory" in thetable below. Farrell, Adams, Ford [Page 33] INTERNET-DRAFT June 1996 Directory contains NEW Directory contains only OLDsense that all end-entity andOLD public keys public key (dueCA/RA implementations must be able toe.g. delayprovide functionality described via one of the transport mechanisms defined inpublication) PSE PSE Contains PSE Contains PSE Contains Contains OLD public NEW public OLD public NEW public key key key key Signer's Case 1: Case 3: Case 5: Case 7: certificasection 5. This part isIn this case Although the In this case te is theeffectively theverifier CA operatorprofile of theCA protected standardPKI management functionality which mustaccess has not operator has using NEW case where the updated thebe supported. Farrell, Adams [Page 29] INTERNET-DRAFT December 1996 The second part defines "additional" functions. Note that notupdated public the directoryall PKI management functions result indirectorythe creation of a PKI message. 4.1 Mandatory Functions 4.1.1 Root CA initialisation A newly created root CA must produce a "self-certificate" which is a Certificate structure with thedirectoryprofile defined for the "newWithNew" certificate issued following a root CA keyverifierupdate. In order toget verifier can and so the can the value of verify the verification directlymake theNEWCA's self certificatewill FAIL verifyuseful to end entities which do not acquire this information via "out-of-band" means, the CA must also produce a fingerprint for its publickey directly - certificatkey. End entities which acquire thisis thus e withoutvalue securely via some "out-of-band" means can then verify thesame as usingCA's self-certificate and hence thecase 1. directory Signer's Case 2: Case 4: Case 6: Case 8: certifica In this In this caseother attributes contained therein. Theverifier Althoughdata structure used to carry thetefingerprint iscasethethe verifier thinks thisOOBCertHash. The root CAoperator protected verifier can directly is the has not using OLDmustverify the situation of updated the public access the certificate case 2 and directory thealso produce an initial revocation list. 4.1.2 Root CA keydirectory without will access verifier can in order using the the verify the to getupdate 4.1.3 Subordinate CA initialisation From thedirectory directory, certificate valueperspective ofhowever the directly -PKI management protocols theOLD verification thisinitialisation of a subordinate CA isthus public key will FAILthe same ascase 4. 4.6.2.1. Verification in cases 1, 4, 5 and 8. In these casestheverifier has a local copyinitialisation of an end-entity. The only difference is that the subordinate CApublic keymust also produce an initial revocation list. 4.1.4 CRL production Before issuing any certificates a newly established CA (which issues CRLs) must produce "empty" versions of each CRL whichcanis to be periodically produced. 4.1.5 PKI information request The above operations produce various data structures which are used in PKI management protocols. When a PKI entity wishes toverify the certificate directly. This is the same asacquire information about thesituation where no key change has ever occurred. Note that case 8current status of a CA it mayarise betweensend that CA a PKIInfoReq PKIMessage. The response will be a PKIInfoRep message. The CA should respond to thetime whenrequest with a response providing all of theCA operator has generatedinformation requested by thenew key pairrequester. If some of the information cannot be provided then an error message should be returned. The PKIInfoReq and PKIInfoRep messages are protected using a MAC based on shared secret information (i.e., PasswordBasedMAC) or any other authenticated means (if thetime whenend entity has an existing certificate). 4.1.6 Cross certification The initiating CA is the CAoperator storeswhich will become theupdated attributes insubject of thedirectory. Case 5 can only arise ifcross- certificate, the responding CAoperator has issued bothwill become thesigner's and verifier's certificates during this "gap" (the CA operator should avoid this as it leads toissuer of thefailure cases described below).cross- Farrell,Adams, FordAdams [Page34]30] INTERNET-DRAFTJuneDecember 19964.6.2.2. Verification in case 2. In case 2 the verifier must get access to the old public key of the CA.certificate. Theverifier does the following: 1.Lookupinitiating CA must be "up and running" before initiating theCACertificate attribute in the directory and pick the appropriate value (based on validity periods) 2.Verifycross- certification operation. As with registration/certification there are a few possibilities here. 4.1.6.1 One-way request-response scheme: The cross-certification scheme is essentially a one way operation; that is, when successful, thisis correct usingoperation results in the creation of one newCA key (whichcross-certificate. If theverifier has locally). 3.If correctrequirement is that cross- certificates be created in "both directions" thencheck the signer's certificate using the old CA key. Case 2 will arise when theeach CAoperator has issued the signer's certificate, then changed key and then issued the verifier's certificate, so it is quite a typical case. 4.6.2.3. Verificationincase 3. In case 3 the verifierturn mustget access toinitiate a cross- certification operation (or use another scheme). This scheme is suitable where thenew public keytwo CAs in question can already verify each other's signatures (they have some common points of trust) or where there is an out-of-band verification of theCA. The verifier doesorigin of thefollowing: 1.Lookupcertification request. The followings steps occur: 1.The initiating CA gathers theCACertificate attribute ininformation required for thedirectory and pickcross certification request; 2.The initiating CA creates theappropriate value (based on validity periods). 2.Verify that thiscross-certification request message (CrossCertReq); 3.The CrossCertReq message iscorrect usingtransported to theoldresponding CA; 4.The responding CAkey (whichprocesses theverifier has stored locally). 3.If correct then checkCrossCertReq -- this results in thesigner's certificate usingcreation of a cross-certification response (CrossCertRep) message; 5.The CrossCertRep message is transported to thenewinitiating CA; 6.The initiating CAkey. Case 3 will arise when the CA operator has issuedprocesses theverifier's certificate, then changed key and then issuedCrossCertRep (depending on its content some looping may be required; that is, thesigner's certificate, so it is also quiteinitiating CA may have to await further responses or generate atypical case. 4.6.2.4. Failure of verification in case 6. In this casenew CrossCertReq for the responding CA); 7.The initiating CAhas issued the verifier's PSE containing the new key without updatingcreates a PKIConfirm message and transports it to thedirectory attributes. This meansresponding CA. Notes: 1.The CrossCertReq should contain a "complete" certification request, thatthe verifier has no means to getis, all fields (including e.g. atrustworthy version ofBasicConstraints extension) should be specified by theCA's old key and so verification fails. Note thatinitiating CA. 2.The CrossCertRep message should contain thefailure isverification certificate of the responding CAoperator's fault. 4.6.2.5. Failure of verification in case 7. In this case- the initiating CAhas issuedshould then verify this via thesigner's certificate protected"out-of-band" mechanism. 4.1.7 End entity initialisation As withthe new key without updating the directory attributes. This means that the verifier has no means to get a trustworthy versionCAs, end entity's must be initialised. Initialisation ofthe CA's new key and soend entities requires two steps: - acquisition of PKI information - out-of-band verificationfails. Note that the failure is again the CA operator's fault.of root-CA public key 4.1.7.1 Acquisition of PKI information The information required is: Farrell,Adams, FordAdams [Page35]31] INTERNET-DRAFTJuneDecember 19964.6.3. Revocation-Change of CA key As we saw abovetheverification of a certificate becomes more complex oncecurrent root-CA public key - (if the certifying CA isallowed to change its key. This is also true for revocation checks as the CA may have signed the CRL usingnot anewer private key thanroot-CA) theone that is withincertification path from theuser's PSE. The analysis ofroot CA to thealternatives is as for certificate verification. 4.6.4. Example ofcertifying CAkey update The following example should maketogether with appropriate revocation lists - thescheme clearer: 1.Aalgorithms and algorithm parameters which the certifying CAis established on 1-Jan-1997, its key pair will be usedsupports forthree years (until 31-Dec-1999, party-time). 2.Alice getseach relevant usage Additional information could be required (e.g. supported extensions or CA policy information) in order to produce anew certificate validcertification request which will be successful. However, forone year starting 21- Dec-1999 and acquiressimplicity we do not mandate that theCA public keyend entity acquires this information via theappropriate out of band means. 3.Alice'sPKI messages. The end result is simply that some certification requests may fail (e.g., if thelast certificate created by the CA beforeend entity wants to generate its own encryption key but the CAkey update anddoesn't allow that). The required information is acquired as follows: - theone which will expire latest. 4.Theend entity sends a pKIInfoReq to the certifying CAgenerates its new key pair on 31-Dec-1999 and producesrequesting (with thetwo certificates. The "old-with-new" certificate containsxxxxxx bits set) the information it requires; - the certifying CA responds with avalidity period from 1-Jan-1997 to 31-Dec-2000. The "new-with-old" certificatepKIInfoRep message which contains the requested information. 4.1.8 Certificate Update When avalidity period from 1-Jan-2000certificate is due to31-Dec- 2000. The CA operator deletesexpire theold private key. 5.Bob gets certified (again for a year) on 10-Jan-2000. Bob also acquiresrelevant end entity may request that thenewCApublic key viaupdate theappropriate "out-of- band" means. 6.On 11-Jan-2000 Alice sendscertificate - that is, that the CA issue asigned message to Bob. Bob's verification is as describednew certificate which differs from the previous one only incase 2 above. 7.Bob replies with a signed message, Alice's verification procedureterms of PKI attributes (serialNumber, validity, some extensions) and isas given in case 3 above. 8.On 20-Dec-2000 Alice getsotherwise identical. Two options must be catered for here, where the end entity initiates this operation, and where the CA initiates the operation and then creates a message informing the end entity of the existence of the new certificate. 4.2 Additional Functions 4.2.1 Cross certification 4.2.1.1 Two-way request-response scheme: 4.2.1.1.1 Overview of Exchange This cross certification exchange allows two CAs to simultaneously certify each other. This means that each CA will create a certificateand acquiresthat contains thenewCApublicverification keyviaof the"out-of-band" means. 9.At midnight on 31-Dec-2000other CA. Cross certification is initiated at one CA known as the responder. The CAoperator can deleteadministrator for the"new-with-old" certificate fromresponder identifies thedirectory (or wherever else).CA it wants to cross certify and the responder CA equipment generates an authorization code. The responder CA administrator passes this authorization code by out-of- band means to the requester CA administrator. The requester CA administrator enters the authorization code at the requester CA in order to initiate the on-line exchange. Farrell,Adams, FordAdams [Page36]32] INTERNET-DRAFTJuneDecember 1996These eventsThe authorization code is used for authentication and integrity purposes. This is done by generating a symmetric key based on the authorization code and using the symmetric key for generating Message Authentication Codes (MACs) on all messages exchanged. Serial numbers and protocol version areshownused in thetime-line diagram below. 1996 1997 1998 1999 2000 2001 year ----------+---------------------------+-+-+----+-+----->> | | | | | | | | | | | | | | | | | +-- "new-with-old" | | | | | deleted | | | | | | | | | +-- Alice updated | | | | | | | +-- Bob certified | | | | | +-- CA key update | | | +-- Alice certified +--same manner as in the above CA-client exchanges. 4.2.1.1.2 Detailed Description The requester CAestablished "old-with-new" validity: |---------------------------------------------->>>>>> "new-with-old" validity: |-------| "new-with-new" validity: |--------------->>>>>> 4.7 Certificate Publication <> 4.8 Revocation Publication <> This isinitiates theannouncement of a specific revocation (which occurred as a result ofexchange by generating asuccessful revocation request/response exchange), as opposed torandom number (requester random number). The requester CA then sends thepublication of an actual CRL. 4.9 CRL Publication <> 4.10 Certificate Update <> 4.11 Cross-Certificate Update <> Farrell, Adams, Ford [Page 37] INTERNET-DRAFT June 1996 5. Transports 5.1 On-line Management Protocol << To be supplied. This subsection will specify a means for conveying ASN.1-encoded messages forresponder CA theprotocol exchanges describedmessage CrossReq. The fields inSection 4 over a TCP connection. >> 5.2 Management Protocol via E-mail << To be supplied. This subsection will specifythis message are protected from modification with ameans for conveying ASN.1-encoded messages forMAC based on theprotocol exchanges described in Section 4 via Internet mail. >> 5.3 Management Protocol via HTTP << To be supplied. This subsection will specify a means for conveying ASN.1-encoded messages forauthorization code. Upon receipt of theprotocol exchanges described in Section 4 over WWW browser-server links, employing HTTP or related WWW protocols. >> 6. Samples The following samples will be further elaborated in later drafts (which will include encodings forCrossReq message, themessages, etc.) For now we just present them as walkthroughs. The overall scenario is as follows: Aresponder CAis establishedchecks the protocol version, saves the requester random number, generates its own random number (responder random number) andan RA is certified. The RA gets a "simple" end entity certified (which is actually a http daemon)validates the MAC. It then generates anddoes a few operations involving this end entity. A "sophisticated" end entity gets itself certified byarchives asecond CA. The first CA asks to be cross-certified bynew requester certificate which contains thesecond CA. The secondrequester CAupdates itspublic keypair. We will useand is signed with thefollowing names: firstresponder CAcn=theCA;o=small;c=ie RA cn=theRA;o=sse;c=ie "simple" end entity cn=httpd;o=sse;c=ie secondsignature private key. The responder CAcn=caTWO;o=bnr;c=ca "sophisticated" end entity cn=sophisticated;o=bnr;c=ca We will just useresponds with the message CrossRep. The fields in this message are protected from modification with a MAC based on thecommonName componentsauthorization code. Upon receipt of theabove names inCrossRep message, thetext below. Farrell, Adams, Ford [Page 38] INTERNET-DRAFT June 1996 6.1 Firstrequester CAestablished theCA has the following characteristics: - it uses RSA and MD5 forchecks that its ownkey pair - it has the following contact points available: theCA@small.ie for mail http://www.small.ie/theCA for http ftp://ftp.small.ie/pub/theCA for ftp cacontact.theCA.small.ie for TCP/IP cn=theCA;o=small;c=ie for X.500 - its key pair will be valid for two years - it is established on Jan. 1st 1997 The following (protocol visible) events occur: - theCA generates its initial key pair and publishes this in various ways - theCA publishes its initial CRLsystem time isvarious ways 6.2 RA Certification theRA hasclose to thefollowing characteristics: - it uses RSAresponder CA system time, checks the received random numbers andMD5 for its own key pair - it has an email address of: theRA@sse.ie The following events occur - theRAvalidates the MAC. It then generatesits key pairandsubmits request to theCA - theCA rejects this initial request (public key generated is too short) - theRA submitsarchives a newrequest - theCA accepts request and issues response includingresponder certificate(but with reduced validity period since theCAwhich contains the responder CA public key and isnow in a bad mood:-) - theRA publishes its certificate 6.3 "simple" End entity simple hassigned by thefollowing characteristics: - it only needs a key pair for signing (i.e. no encryption) - it is an http daemon Farrell, Adams, Ford [Page 39] INTERNET-DRAFT June 1996requester CA signature private key. Thefollowing events occur: - theRA generates key pair; sends request to theCA on behalf of httpd - theRA forwards certification information to httpd - theRA publishes certificaterequester CA responds with the message PKIConfirm. The fields in this message are protected from modification with a MAC based onbehalfthe authorization code. Upon receipt ofhttpd - httpd (i.e., its administrator) imports certification information - theRA issues certificate update request to theCA - theCA sends response to theRA including new certificate - theRA publishes new certificate - theRA generates new key pair for httpdthe PKIConfirm message, the responder CA checks the random numbers, archives the responder certificate, andissues request for key update to theCA - theCA acceptsvalidates the MAC. It writes both the request andissues responseresponder certificates totheRA including cert. - theRA publishes certificatethe Directory. It then responds with its own PKIConfirm message. The fields in this message are protected from modification with a MAC based onbehalfthe authorization code. Upon receipt ofhttpd - theRA forwards certification information to httpd - theRA asks for httpd's certificate to be revoked - theCA revokes httpd's certificate and publishesthenew CRL 6.4 The "sophisticated" end entity sophisticated hasPKIConfirm message, thefollowing characteristics: - it deals directly with caTWO - it uses DSA with SHA-1 The following events occur: - end entity receives init. data (containingrequester CAname and public key) - end entity generates key pairchecks the random numbers andsubmits request to CA -validates the MAC. The requester CAaccepts requestwrites both the requester andissues responseresponder certificates toendthe Directory. 4.2.2 End entity(not including certificate)initialisation As with CAs, end entities must be initialised. Initialisation of end entities requires two steps: - acquisition of PKI information - out-of-band verification of root-CA public key 4.2.2.1 Acquisition of PKI information See previous section. Farrell, Adams [Page 33] INTERNET-DRAFT December 1996 4.2.2.2 Import of CApublishes certificate on behalfkey fingerprint An end entity must possess the public key of it's root CA. One method to achieve this is to provide the end entity-with the CA's public key fingerprint via some secure "out-of-band" means. The end entityimports CA response 6.5 Cross-certification In order tocan then securely use the CA's self-certificate. The data structure used is the OOBcertHash 5. Transports The transport protocols specified below allowsophisticatedend entities, RAs and CAs touse httpd theCA mustpass PKI messages between them. There should becertified by caTWO. The following events occur: - theCA issues a requestno requirement forcross-certificationspecific security mechanisms tocaTWO - caTWO acceptsbe applied at thisrequestlevel as the PKI messages should be suitably protected. Caution should be taken that no "password" encrypted value is sent across a network using these protocols. If values are to be encrypted based on passwords then they should be transported using off-line means (e.g. files). 5.1 File based protocol A file containing a PKI message should contain only the DER encoding of one PKI message, i.e. there should be no extraneous header or trailer information in the file. Such files can be used to transport PKI messages using e.g. FTP. 5.2 Socket based Management Protocol The following simple socket based protocol is to be used for transport of PKI messages. This protocol is suitable for cases where an end entity (or an RA) initiates a transaction andissuescan poll to pick up the results. If across-certificate (but with more restrictions than theCA had asked for) - theCA publishestransaction is initiated by a PKI entity (RA or CA) then an end entity must either supply a listener process or be supplied with a polling reference (see below) in order to allow it to pick up the PKI message from the PKI management component. The protocol basically assumes a listener process (on an RA or CA) which can accept PKI messages on a well defined port (port number TBS). Typically an initiator binds to this port and submits the initial PKI message for a given transaction ID. The responder replies with a PKI message and/or with a reference number to be used later when polling for the actual PKI message response. If a number of PKI response messages are to be produced for a given request (say if some part of the request is handled more quickly than another) then a new polling reference is also returned. When the final PKI response message has been picked up by the initiator then no new polling reference is supplied. The initiator of a transaction sends a "socket PKI message" to the recipient. The recipient responds with a similar message. Farrell, Adams [Page 34] INTERNET-DRAFT December 1996 A "socket PKI message" consists of: length (32-bits), flag (8-bits), value (defined below) The length field contains the number of octets of the remainder of the message (i.e. number of octets of "value" plus one). Message name flag value comment msgReq `00'H DER-encoded PKI message PKI message from initiator pollRep `01'H polling reference (32-bits) poll response where no PKI message response ready; use polling reference value for later polling pollReq `02'H polling reference (32 bits) request for a PKI message response to initial message negPollRep `03'H `00'H no further polling responses (i.e., transaction complete) partialMsgRep `04'H next polling reference partial response to initial (32-bits), message plus new polling DER encoded PKI message reference to use to get next part of response finalMsgRep `05'H DER encoded PKI message final (and possibly sole) response to initial message errorMsgRep `06'H human readable error produced when an error is message detected (e.g., a polling reference is received which doesn't exist or is finished with) Where a PKIConfirm message is to be transported (always from the initiator to the responder) then a msgReq message is sent and a negPollRep is returned. The sequence of messages which can occur is then: a) end entity sends msgReq and receives one of pollRep, negPollRep, partialMsgRep or finalMsgRep in response. b) end entity sends pollReq message and receives one of negPollRep, partialMsgRep, finalMsgRep or ErrorMsgRep in response. 5.3 Management Protocol via E-mail << To be supplied. This subsection will specify a means for conveying ASN.1-encoded messages for the protocol exchanges described in Section 4 via Internet mail. >> Farrell, Adams [Page 35] INTERNET-DRAFT December 1996 5.4 Management Protocol via HTTP << To be supplied. This subsection will specify a means for conveying ASN.1-encoded messages for the protocol exchanges described in Section 4 over WWW browser-server links, employing HTTP or related WWW protocols. >> 6. SAMPLES <<TBS>> SECURITY CONSIDERATIONS This entire memo is about security mechanisms. One cryptographic consideration is worth explicitly spelling out. In the protocols specified above, when an end entity is required to prove possession of a decryption key, it is effectively challenged to decrypt something (its own certificate). This scheme (and many others!) could be vulnerable to an attack if the possessor of the decryption key in question could be fooled into decrypting an arbitrary challenge and returning the cleartext to an attacker. Although in this specification a number of other failures in security are required in order for this attack to succeed, it is conceivable that some future services (e.g., notary, trusted time) could potentially be vulnerable to such attacks. For this reason we re-iterate the general rule that implementations should be very careful about decrypting arbitrary "ciphertext" and revealing recovered "plaintext" since such a practice can lead to serious security vulnerabilities. Authors' Addresses Stephen Farrell Software and Systems Engineering Ltd. Fitzwilliam Court Leeson Close Dublin 2 IRELAND stephen.farrell@sse.ie Carlisle Adams Nortel Secure Networks PO Box 3511, Station C Ottawa, Ontario Canada K1Y 4H7 cadams@entrust.com APPENDIX A: Reasons for the presence of RAs The reasons which justify the presence of an RA can be split into those which are due to technical factors and those which are organizational in nature. Technical reasons include the following. -If hardware tokens are in use, then not all end entities will have the equipment needed to initialize these; the RA equipment can include the necessary functionality (this may also be a matter of policy). -Some end entities may not have the capability to publish certificates; again, the RA may be suitably placed for this. -The RA will be able to issue signed revocation requests on behalf of end entities associated with it, whereas the end entity may not be able to do this (if the key pair is completely lost). Farrell, Adams [Page 36] INTERNET-DRAFT December 1996 Some of the organisational reasons which argue for the presence of an RA are the following. -It may be more cost effective to concentrate functionality in the RA equipment than to supply functionality to all end entities (especially if special token initialization equipment is to be used). -Establishing RAs within an organization can reduce the number of CAs required, which is sometimes desirable. -RAs may be better placed to identify people with their "electronic" names, especially if the CA is physically remote from the end entity. -For many applications there will already be in place some administrative structure so that candidates for the role of RA are easy to find (which may not be true of the CA). Appendix B. PKI management message profiles. This appendix contains detailed profiles for those PKIMessages which must be supported by conforming implementations. Profiles for the PKIMessages used in the following PKI management operations are provided: - root CA key update - information request/reponse - cross-certification (1-way) - initial registration and certification - centralised scheme - basic authenticated scheme <<Later revisions will extend the above to include profiles for the operations listed below>> - certificate update - end entity initiated - PKI initiated - key update - revocation request - certificate publcation - CRL publication 1. General Rules for interpretation of these profiles. 1. Where fields are not mentioned in individual profiles then they should be absent (if OPTIONAL or DEFAULT) from the relevant message. For example, pvno is never mentioned since it is always fixed for this version of the specification. 2. Where structures occur in more than one message, they are separately profiled as appropriate. 3. The algorithmIdentifiers from PKIMessage structures are profiled separately. 4. A "special" X.500 DN is called the "NULL-DN"; this means a DN containing a zero- 5. Farrell, Adams [Page 37] INTERNET-DRAFT December 1996 1. length SEQUENCE OF rdns (it's DER encoding is then `3000'H). 2. Where a GeneralName is required for a field but no suitable value is available (e.g. an end-entity produces a request before knowing its name) then the GeneralName is to be an X.500 NULL-DN (i.e. the Name field of the CHOICE is to contain a NULL-DN). This special value can be called a "NULL-GeneralName". 3. Where a profile omits to specify the value for a GeneralName then the NULL-GeneralName value is to be present in the relevant PKIMessage field. This occurs with the sender field of the PKIHeader for some messages. 4. Where any ambiguity arises due to naming of fields, the profile names these using a "dot" notation (e.g., "certTemplate.subject" means the subject field within a field called certTemplate). 5. Where a "SEQUENCE OF types" is part of a message, a zero-based array notation is used to describe fields within the SEQUENCE OF (e.g., FullCertTemplates[0].certTemplate.subject refers to a subfield of the first FullCertTemplate contained in a request message). 6. All PKI message exchanges (other than the centralised initial registration/certification scheme) require a PKIConfirm message to be sent by the initiating entity. This message is not included in many of the profiles given below since its body is NULL and its header contents are clear from the context. Any authenticated means can be used for the protectionAlg (e.g., password-based MAC, if shared secret information is known, or signature). <<profiles TBS>> Appendix C: "Compilable" ASN.1 Module PKIMessage ::= SEQUENCE { header PKIHeader, body PKIBody, protection [0] PKIProtection OPTIONAL, extraCerts [1] SEQUENCE OF Certificate OPTIONAL Farrell, Adams [Page 38] INTERNET-DRAFT December 1996 } PKIHeader ::= SEQUENCE { pvno INTEGER { ietf-version1 (0) }, sender GeneralName, -- identifies the sender recipient GeneralName, -- identifies the intended recipient messageTime [0] GeneralizedTime OPTIONAL, -- time of production of this message (used when sender -- believes that the transport will be "suitable"; i.e., -- that the time will still be meaningful upon receipt) protectionAlg [1] AlgorithmIdentifier OPTIONAL, -- algorithm used for calculation of protection bits senderKID [2] KeyIdentifier OPTIONAL, recipKID [3] KeyIdentifier OPTIONAL, -- to identify specific keys used for protection transactionID [4] OCTET STRING OPTIONAL, -- identifies the transaction, i.e. this will be the same in -- corresponding request, response and confirmation messages senderNonce [5] OCTET STRING OPTIONAL, recipNonce [6] OCTET STRING OPTIONAL, -- nonces used to provide replay protection, senderNonce -- is inserted by the creator of this message; recipNonce -- is a nonce previously inserted in a related message by -- the intended recipient of this message freeText [7] PKIFreeText OPTIONAL -- this may be used to indicate context-specific -- instructions (this field is intended for human -- consumption) } PKIFreeText ::= CHOICE { iA5String [0] IA5String, bMPString [1] BMPString } PKIBody ::= CHOICE { -- message-specific body elements ir [0] InitReqContent, ip [1] InitRepContent, cr [2] CertReqContent, cp [3] CertRepContent, kur [4] KeyUpdReqContent, kup [5] KeyUpdRepContent, krr [6] KeyRecReqContent, krp [7] KeyRecRepContent, rr [8] RevReqContent, rp [9] RevRepContent, ccr [10] CrossCertReqContent, ccp [11] CrossCertRepContent, ckuann [12] CAKeyUpdAnnContent, cann [13] CertAnnContent, Farrell, Adams [Page 39] INTERNET-DRAFT December 1996 rann [14] RevAnnContent, crlann [15] CRLAnnContent, conf [16] PKIConfirmContent, nested [17] NestedMessageContent, infor [18] PKIInfoReqContent, infop [19] PKIInfoRepContent, error [20] ErrorMsgContent } PKIProtection ::= BIT STRING ProtectedPart ::= SEQUENCE { header PKIHeader, body PKIBody } PasswordBasedMac ::= OBJECT IDENTIFIER PBMParameter ::= SEQUENCE { salt OCTET STRING, owf AlgorithmIdentifier, -- AlgId for a One-Way Function (SHA-1 recommended) iterationCount INTEGER, -- number of times the OWF is applied mac AlgorithmIdentifier -- the MAC AlgId (e.g., DES-MAC or Triple-DES-MAC [PKCS #11]) } DHBasedMac ::= OBJECT IDENTIFIER DHBMParameter ::= SEQUENCE { owf AlgorithmIdentifier, -- AlgId for a One-Way Function (SHA-1 recommended) mac AlgorithmIdentifier -- the MAC AlgId (e.g., DES-MAC or Triple-DES-MAC [PKCS #11]) } NestedMessageContent ::= ANY -- This will be a PKIMessage CertTemplate ::= SEQUENCE { version [0] Version OPTIONAL, -- used to ask for a particular syntax version serial [1] INTEGER OPTIONAL, -- used to ask for a particular serial number signingAlg [2] AlgorithmIdentifier OPTIONAL, -- used to ask the CA to use this alg. for signing the cert subject [3] Name OPTIONAL, validity [4] OptionalValidity OPTIONAL, issuer [5] Name OPTIONAL, publicKey [6] SubjectPublicKeyInfo OPTIONAL, issuerUID [7] UniqueIdentifier OPTIONAL, Farrell, Adams [Page 40] INTERNET-DRAFT December 1996 subjectUID [8] UniqueIdentifier OPTIONAL, extensions [9] Extensions OPTIONAL -- the extensions which the requester would like in the cert. } OptionalValidity ::= SEQUENCE { notBefore [0] UTCTime OPTIONAL, notAfter [1] UTCTime OPTIONAL } EncryptedValue ::= SEQUENCE { encValue BIT STRING, -- the encrypted value itself intendedAlg [0] AlgorithmIdentifier OPTIONAL, -- the intended algorithm for which the value will be used symmAlg [1] AlgorithmIdentifier OPTIONAL, -- the symmetric algorithm used to encrypt the value encSymmKey [2] BIT STRING OPTIONAL, -- the (encrypted) symmetric key used to encrypt the value keyAlg [3] AlgorithmIdentifier OPTIONAL -- algorithm used to encrypt the symmetric key } PKIStatus ::= INTEGER { granted (0), -- you got exactly what you asked for grantedWithMods (1), -- you got something like what you asked for; the -- requester is responsible for ascertaining the differences rejection (2), -- you don't get it, more information elsewhere in the message waiting (3), -- the request body part has not yet been processed, -- expect to hear more later revocationWarning (4), -- this message contains a warning that a revocation is -- imminent revocationNotification (5), -- notification that a revocation has occurred keyUpdateWarning (6) -- update already done for the oldCertId specified in -- FullCertTemplate } PKIFailureInfo ::= BIT STRING { -- since we can fail in more than one way! badAlg (0), badMessageCheck (1) -- more TBS } PKIStatusInfo ::= SEQUENCE { Farrell, Adams [Page 41] INTERNET-DRAFT December 1996 status PKIStatus, failInfo PKIFailureInfo OPTIONAL } CertId ::= SEQUENCE { issuer GeneralName, serialNumber INTEGER } OOBCert ::= Certificate OOBCertHash ::= SEQUENCE { hashAlg [0] AlgorithmIdentifier OPTIONAL, certId [1] CertId OPTIONAL, hashVal BIT STRING -- hashVal is calculated over DER encoding of the -- subjectPublicKey field of the corresponding cert. } PKIArchiveOptions ::= CHOICE { encryptedPrivKey [0] EncryptedValue, -- the actual value of the private key keyGenParameters [1] KeyGenParameters, -- parameters which allow the private key to be re-generated archiveRemGenPrivKey [2] BOOLEAN -- set to TRUE if sender wishes receiver to archive the private -- key of a key pair which the receiver generates in response to -- this request; set to FALSE if no archival is desired. } KeyGenParameters ::= OCTET STRING -- actual syntax is <<TBS>> -- an alternative to sending the key is to send the information -- about how to re-generate the key (e.g. for many RSA -- implementations one could send the first random number tested -- for primality) PKIPublicationInfo ::= SEQUENCE { action INTEGER { dontPublish (0), pleasePublish (1) }, pubInfos SEQUENCE OF SinglePubInfo OPTIONAL -- pubInfos should not be present if action is "dontPublish" -- (if action is "pleasePublish" and pubInfos is omitted, -- "dontCare" is assumed) } SinglePubInfo ::= SEQUENCE { pubMethod INTEGER { dontCare (0), x500 (1), Farrell, Adams [Page 42] INTERNET-DRAFT December 1996 web (2) }, pubLocation GeneralName OPTIONAL } FullCertTemplates ::= SEQUENCE OF FullCertTemplate FullCertTemplate ::= SEQUENCE { certReqId INTEGER, -- to match this request with corresponding response -- (note: must be unique over all FullCertReqs in this message) certTemplate CertTemplate, popoSigningKey [0] POPOSigningKey OPTIONAL, archiveOptions [1] PKIArchiveOptions OPTIONAL, publicationInfo [2] PKIPublicationInfo OPTIONAL, oldCertId [3] CertId OPTIONAL -- id. of cert. which is being updated by this one } POPOSigningKey ::= SEQUENCE { alg AlgorithmIdentifier, signature BIT STRING -- the signature (using "alg") on the DER-encoded -- POPOSigningKeyInput structure given below } POPOSigningKeyInput ::= SEQUENCE { authInfo CHOICE { sender [0] GeneralName, -- from PKIHeader (used only if an authenticated identity -- has been established for the sender (e.g., a DN from a -- previously-issued and currently-valid certificate) publicKeyMAC [1] BIT STRING -- used if no authenticated GeneralName currently exists for -- the sender; publicKeyMAC contains a password-based MAC -- (using the protectionAlg AlgId from PKIHeader) on the -- DER-encoded value of publicKey }, publicKey SubjectPublicKeyInfo -- from CertTemplate } InitReqContent ::= SEQUENCE { protocolEncKey [0] SubjectPublicKeyInfo OPTIONAL, fullCertTemplates FullCertTemplates } InitRepContent ::= CertRepContent CertReqContent ::= FullCertTemplates CertRepContent ::= SEQUENCE { caPub [1] Certificate OPTIONAL, Farrell, Adams [Page 43] INTERNET-DRAFT December 1996 response SEQUENCE OF CertResponse } CertResponse ::= SEQUENCE { certReqId INTEGER, -- to match this response with corresponding request status PKIStatusInfo, certifiedKeyPair CertifiedKeyPair OPTIONAL } CertifiedKeyPair ::= SEQUENCE { certificate [0] Certificate OPTIONAL, encryptedCert [1] EncryptedValue OPTIONAL, privateKey [2] EncryptedValue OPTIONAL, publicationInfo [3] PKIPublicationInfo OPTIONAL } KeyUpdReqContent ::= SEQUENCE { protocolEncKey [0] SubjectPublicKeyInfo OPTIONAL, fullCertTemplates [1] FullCertTemplates OPTIONAL } KeyUpdRepContent ::= InitRepContent KeyRecReqContent ::= InitReqContent KeyRecRepContent ::= SEQUENCE { status PKIStatusInfo, newSigCert [0] Certificate OPTIONAL, caCerts [1] SEQUENCE OF Certificate OPTIONAL, keyPairHist [2] SEQUENCE OF CertifiedKeyPair OPTIONAL } RevReqContent ::= SEQUENCE OF RevDetails RevDetails ::= SEQUENCE { certDetails CertTemplate, -- allows requester to specify as much as they can about -- the cert. for which revocation is requested -- (e.g. for cases in which serialNumber is not available) revocationReason ReasonFlags, -- from the DAM, so that CA knows which Dist. point to use badSinceDate GeneralizedTime OPTIONAL, -- indicates best knowledge of sender crlEntryDetails Extensions -- requested crlEntryExtensions } RevRepContent ::= SEQUENCE { status PKIStatusInfo, revCerts [0] SEQUENCE OF CertId OPTIONAL, -- identifies thecross-certificate - theCA askscerts for which revocation was requested Farrell, Adams [Page 44] INTERNET-DRAFT December 1996 crls [1] SEQUENCE OF CertificateList OPTIONAL -- thecross-certificate toresulting CRLs (there may beupdated - caTWO issues themore than one) } CrossCertReqContent ::= CertReqContent CrossCertRepContent ::= CertRepContent CAKeyUpdAnnContent ::= SEQUENCE { oldWithNew Certificate, -- old pub signed with newcross-certificate - theCA publishes thepriv newWithOld Certificate, -- newcross-certificate 6.6 CA Key Update Eventually (in late 1998) theCA decides to update its key pair. The following events occur: - theCA generates apub signed with old priv newWithNew Certificate -- newkey pair - theCA publishes itspub signed with newkey (and collateral data structures)priv } CertAnnContent ::= Certificate RevAnnContent ::= SEQUENCE { status PKIStatus, certId CertId, willBeRevokedAt GeneralizedTime, badSinceDate GeneralizedTime, crlDetails Extensions OPTIONAL -- extra CRL details(e.g., crl number, reason, location, etc.) } CRLAnnContent ::= SEQUENCE OF CertificateList PKIConfirmContent ::= NULL PKIInfoReqContent ::= BIT STRING { caProtEncCert (0), signKeyPairTypes (1), enckeyPairTypes (2), preferredSymmAlg (3), caKeyUpdateInfo (4), currentCRL (5) } PKIInfoRepContent ::= SEQUENCE { caProtEncCert [0] Certificate OPTIONAL, signKeyPairTypes [1] SEQUENCE OF AlgorithmIdentifier OPTIONAL, encKeypairTypes [2] SEQUENCE OF AlgorithmIdentifier OPTIONAL, preferredSymmAlg [3] AlgorithmIdentifier OPTIONAL, caKeyUpdateInfo [4] CAKeyUpdAnnContent OPTIONAL, currentCRL [5] CertificateList OPTIONAL } ErrorMsgContent ::= SEQUENCE { pKIStatusInfo PKIStatusInfo, errorCode INTEGER OPTIONAL, -- implementation-specific error codes errorDetails CHOICE { IA5String, BMPString } OPTIONAL Farrell,Adams, FordAdams [Page40]45] INTERNET-DRAFTJuneDecember 19967. Security Considerations This entire memo is about security mechanisms. Authors' Addresses Stephen Farrell Software and Systems Engineering Ltd. Fitzwilliam Court Leeson Close Dublin 2 IRELAND stephen.farrell@sse.ie Carlisle Adams Nortel Secure Networks PO Box 3511, Station C Ottawa, Ontario Canada KY 4H7 cadams@bnr.ca Warwick Ford Nortel Secure Networks PO Box 3511, Station C Ottawa, Ontario Canada KY 4H7 wford@bnr.ca-- implementation-specific error details } ----