view Side-By-Side changes
S/MIME Working GroupJ Ross (Security & Standards)D. Pinkas (Bull) expires in six monthsD Pinkas (Bull)J. Ross (Security & Standards) Target Category: InformationalNN. Pope (Security & Standards)MarchJuly 2000 Electronic Signature Formats for long term electronicsignature <draft-ietf-smime-esformats-00.txt>signatures <draft-ietf-smime-esformats-01.txt> Status of this Memo This document is an Internet-Draft and is NOT offered in accordance with section of RFC 2026, and the author does not provide the IETF with any rights other than to publish as 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 asInternet-Drafts.Internet- Drafts. Internet-Drafts are draft documents valid for a maximum of six Months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." The list of current Internet-Drafts can be accessed at http://www.ietf.org/ietf/1id-abstracts.txt The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html. Abstract The informational RFC defines the format of an electronic signature that can remain valid over long periods. This includes evidence as to its validity even if the signer or verifying party later attempts to deny(repudiates)(i.e. repudiates, see [ISONR]) the validity of the signature. The format can be considered as an extension to RFC 2630 [CMS] and RFC 2634 [ESS], where, when appropriate additional signed and unsigned attributes have been defined. The contents of this Informational RFC is technically equivalent to ETSI ES 201 733V.1.1.1V.1.1.3 Copyright (C). Individual copies of this ETSI deliverable can be downloaded from http://www.etsi.org 1. Introduction This document is intended to cover electronic signatures for various types of transactions, including business transactions (e.g. purchase requisition, contract, and invoice applications) where long term validity of such signatures is important. ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 1] Internet Draft Electronic Signature Formats Electronic signatures can be used for any transaction between an individual and a company, between two companies, between an individual and a governmental body, etc. This document is independent of any environment. It can be applied to any environment e.g. smart cards, GSM SIM cards, special programs for electronic signatures etc.ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 1] Internet Draft Electronic Signature FormatsAn electronic signature produced in accordance with this document provides evidence that can be processed to get confidence that some commitment has been explicitly endorsed under aSignaturesignature policy, at a given time, by a signer under an identifier, e.g. a name or a pseudonym, and optionally a role. The European Directive on a community framework for Electronic Signatures defines an electronic signature as: "data in electronic form which is attached to or logically associated with other electronic data and which serves as a method of authentication". An electronic signature as used in the current document is a form of advanced electronic signature as defined in the Directive. The key words "MUST", "MUST NOT", "REQUIRED", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document (in uppercase, as shown) are to be interpreted as described in [RFC2119]. TABLE OF CONTENTS 1. Introduction 1 2 Overview 4 2.1 AimThe aim4 2.2 Basis ofthis document is to define anPresent Document 4 2.3 Major Parties 5 2.4 ElectronicSignature (ES) that remains valid over long periods. This includes evidence as to its validity even if the signer or verifying party later attempts to deny (repudiates) the validity of the signature. A signer is the entity that creates an electronic signature. This document specifies use of trusted service providers (e.g. TimeStamping Authorities (TSA)), and the data that needs to be archived (e.g. cross certificatesSignatures andrevocation lists) to meet the requirementsValidation Data 6 2.5 Forms oflong term electronic signatures. An electronic signature defined by this document can be used for arbitration in caseValidation Data 7 2.6 Extended Forms ofa dispute between the signer and verifier, which may occur at some later time, even years later. This document uses a signature policy, referenced by the signer, as the basis for establishing the validityValidation Data 9 2.7 Archive Validation Data 11 2.8 Arbitration 12 2.9 Validation Process 12 2.10 Example Validation Sequence 13 2.11 Additional optional features 18 3. Data structure of anelectronic signature. A Trusted Service Provider (TSP) is an entity that helps to build trust relationships by making available or providing some information upon request. A verifier is an entity that verifies an evidence. (ISO/IEC 13888-1 [13]). Within the context of this document this is an entity that validates an electronic signature. A signature policy is a set of rules for the creation and validation of an electronic signature, under which the signature can be determined to be valid 2.2 Basis ofElectronic Signature 19 3.1 General Syntax 19 3.2 Data Content Type 19 3.3 Signed-data Content Type 19 3.4 SignedData Type 19 3.5 EncapsulatedContentInfo Type 20 3.6 SignerInfo Type 20 3.6.1 Message Digest Calculation Process 20 3.6.2 Message Signature Generation Process 20 3.6.3 Message Signature Verification Process 20 3.7 CMS Imported Mandatory PresentDocument This document is based on the use of public key cryptography to produce digital signatures, supported by public key certificates.Attributes 21 3.7.1 Content Type 21 3.7.2 Message Digest 21 3.7.3 Signing Time 21 ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page 2] Internet Draft Electronic Signature FormatsA Public key certificate is a public keys of a user, together with some other information, rendered unforgeable by encipherment with the private key of the Certification Authority (CA) which issued it (ITU-T Recommendation X.509 [1]). This document also uses timestamping services to prove the validity of a signature long after the normal lifetime of critical elements of an electronic signature and to support non-repudiation. It also, as an option, uses additional timestamps to provide very long-term protection against key compromise or weakened algorithms. This document builds on existing standards that are widely adopted. This includes: * RFC 2630 [9] Crytographic Message Syntax (CMS); * ITU-T Recommendation X.509 [1] Authentication framework; * RFC 2459 [7] Internet X.509 Public Key Infrastructure (PKIX)3.8 Alternative Signing Certificateand CRL Profile; * RFC (to be published) PKIX Timestamping protocol. NOTE: See clause 2Attributes 21 3.8.1 ESS Signing Certificate Attribute Definition 21 3.8.2 Other Signing Certificate Attribute Definition 22 3.9 Additional Mandatory Attributes 23 3.9.1 Signature policy Identifier 23 3.10 CMS Imported Optional Attributes 24 3.10.1 Countersignature 25 3.11 ESS Imported Optional Attributes 25 3.11.1 Content Reference Attribute 25 3.11.2 Content Identifier Attribute 25 3.12 Additional Optional Attributes 25 3.12.1 Commitment Type Indication Attribute 25 3.12.2 Signer Location attribute 27 3.12.3 Signer Attributes attribute 28 3.12.4 Content Timestamp attribute 28 3.13 Support fora full set of references. 2.3 Major Parties The following are the major parties involved in a business transaction supported by electronic signatures as defined in this document: * the Signer; * the Verifier; * Trusted Service Providers (TSP); * the Arbitrator. The arbitrator is an entity that may be used to arbitrate a dispute between a signerMultiple Signatures 29 3.13.1 Independent Signatures 29 3.13.2 Embedded Signatures 29 4. Validation Data 29 4.1 Electronic Signature Timestamp 30 4.1.1 Signature Timestamp Attribute Definition 30 4.2 Complete Validation Data 31 4.2.1 Complete Certificate Refs Attribute Definition 32 4.2.2 Complete Revocation Refs Attribute Definition 32 4.3 Extended Validation Data 34 4.3.1 Certificate Values Attribute Definition 34 4.3.2 Revocation Values Attribute Definition 35 4.3.3 ES-C Timestamp Attribute Definition 35 4.3.4 Time-Stamped Certificates andverifier when there is a disagreement on the validityCRLs Attribute Definition 36 4.4 Archive Validation Data 36 4.4.1 Archive Timestamp Attribute Definition 37 5. Security considerations 38 5.1 Protection ofa digital signature. ThePrivate Key 38 5.2 Choice of Algorithms 38 6. Conformance Requirements 38 6.1 Signeris the entity that creates the electronic signature. When the signer digitally signs over data using the prescribed format, this represents a commitment on behalf of the signing entity to the data being signed. The38 6.2 Verifieris the entity that validates the electronic signature, it may be a single entity or multiple entities.39 7. References 40 8. Authors' Addresses 40 9. Full Copyright Statement 41 Annex A (normative): ASN.1 Definitions 43 A.1 Definitions Using X.208 (1988) ASN.1 Syntax 43 A.2 Definitions Using X.680 1997 ASN.1 Syntax 52 Annex B (informative): General Description 61 B.1 TheTrusted Service Providers (TSPs) are one or more entities that helpSignature Policy 61 B.2 Signed Information 62 B.3 Components of an Electronic Signature 62 B.3.1 Reference tobuild trust relationships betweenthesigner and verifier. They supportSignature Policy 62 B.3.2 Commitment Type Indication 63 B.3.3 Certificate Identifier from thesigner and verifier by means of supporting services including: user certificates, cross-certificates, timestamping tokens, CRLs, ARLs, OCSP responses.Signer 64 ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page 3] Internet Draft Electronic Signature FormatsThe following TSPs are used to support the functions defined in this document: * Certification Authorities; * Registration Authorities; * Repository Authorities (e.g. a Directory); * TimeStamping Authorities; * Signature Policy Issuers.B.3.4. Role Attributes 64 B.3.4.1 Claimed Role 65 B.3.4.2 Certified Role 65 B.3.5 Signer Location 66 B.3.6 Signing Time 66 B.4 Components of Validation Data 67 B.4.1 Revocation Status Information 67 B.4.2 CRL Information 67 B.4.3 OCSP Information 68 B.4.4 CertificationAuthorities provide users with public key certificates. Registration Authorities allows the registrationPath 69 B.4.5 Timestamping for Long Life ofentitiesSignature 69 B.4.6 Timestamping beforeaCAgenerates certificates. Repository Authorities publish CRLs issued by CAs, signature policies issued by Signature Policy Issuers and optionally public key certificates. TimeStamping Authorities attest that some data was formed before a given trusted time. Signature Policy Issuers defineKey Compromises 70 B.4.6.1 Timestamping thetechnicalES with Complete validation data 71 B.4.6.2 Timestamping Certificates andprocedural requirementsRevocation Information 72 B.4.7 Timestamping forelectronic signature creation and validation, in orderLong Life of Signature 72 B.4.8 Reference tomeet a particular business need. In some cases the following additional TSPs are needed: * Attribute Authorities.Additional Data 73 B.4.9 Timestamping for Mutual Recognition 73 B.4.10 TSA Key Compromise 74 B.5 Multiple Signatures 74 Annex C (informative): Identifiers and roles 75 C.1 Signer Name Forms 75 C.2 TSP Name Forms 75 C.3 Roles and Signer AttributesAuthorities provide users with attributes linked to public key certificates An Arbitrator75 2 Overview 2.1 Aim The aim of this document is to define anentityElectronic Signature (ES) thatarbitrates disputes between aremains valid over long periods. This includes evidence as to its validity even if the signerand a verifier. A signature policy issuer is an entity that definesor verifying party later attempts to deny (repudiates) thetechnicalvalidity of the signature. This document specifies use of trusted service providers (e.g. TimeStamping Authorities (TSA)), andprocedural requirements for electronic signature creationthe data that needs to be archived (e.g. cross certificates andvalidation, in orderrevocation lists) to meeta particular business need 2.4 Electronic Signatures and Validation Data Validationthe requirements ofanlong term electronic signatures. An electronic signaturein accordance withdefined by this documentrequires: * The electronic signature; this includes: -can be used for arbitration in case of a dispute between the signer and verifier, which may occur at some later time, even years later. This document uses a signaturepolicy; - the signed user data; -policy, referenced by the signer, as the basis for establishing the validity of an electronic signature. 2.2 Basis of Present Document This document is based on the use of public key cryptography to produce digitalsignature; -signatures, supported by public key certificates. A Public key certificate is a public keys of a user, together with some othersigned attributes providedinformation, rendered unforgeable by encipherment with thesigner.private key of the Certification Authority (CA) which issued it (ITU-T Recommendation X.509 [1]). ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page 4] Internet Draft Electronic Signature Formats* Validation data which is the additional data neededThis document also uses timestamping services tovalidate the electronic signature; this includes: - certificates; - revocation status information, - trusted time-stamps from Trusted Service Providers (TSPs). * The signature policy specifiesprove thetechnical requirements on signature creation and validation in order to meet a particular business need. A given legal/contractual context may recognize a particular signature policy as meeting its requirements. For example:validity of aspecificsignaturepolicy may be recognized by court of law as meetinglong after therequirementsnormal lifetime ofthe European Directive forcritical elements of an electroniccommerce. Asignaturepolicy may be written using a formal notation like ASN.1 (see 6.1) or inand to support non-repudiation. It also, as aninformal free text form provided the rules of the policyoption, uses additional timestamps to provide very long-term protection against key compromise or weakened algorithms. This document builds on existing standards that areclearly identified. However, for a given signature policy there shall be one definitive form which has a unique binary encoded value. Signed user data is the user's data that is signed.widely adopted. This includes: * RFC 2459 [RFC2459] Internet X.509 Public Key Infrastructure Certificate and CRL Profile (PKIX); * RFC 2630 [CMS] Crytographic Message Syntax (CMS); * RFC 2634 [ESS] Enhanced Security Services (ESS); * RFC 2439 [OCSP] One-line Certificate Status Protocol (OCSP); * ITU-T Recommendation X.509 [1] Authentication framework; * RFC (to be published) [TSP] PKIX Time Stamping protocol (TSP). NOTE: See clause 8 for a full set of references. 2.3 Major Parties TheDigital Signature is the digital signature applied over thefollowingattributes providedare the major parties involved in a business transaction supported by electronic signatures as defined in this document: * thesigner:Signer; *hash oftheuser data;Verifier; *signature Policy Identifier;the Arbitrator; *other signed attributes The other signed attributes include any additional information which must be signed to conform toTrusted Service Providers (TSP). A Signer is an entity that creates thesignature policy or this document (e.g. signing time). The Validation Data may be collected byelectronic signature. When the signerand/or the verifier and must meetdigitally signs over data using therequirementsprescribed format, this represents a commitment on behalf of thesignature policy. Additional data includes CA certificates as well as revocation status information insigning entity to theform of Certificate Revocation Lists (CRLs) or certificate status information provided by an on-line service. Additional data also includes timestamps and other time relateddataused to provide evidence ofbeing signed. A verifier is an entity that verifies an evidence. (ISO/IEC 13888-1 [13]). Within thetimingcontext ofgiven events. Itthis document this isrequired, as a minimum,an entity thateither thevalidates an electronic signature. An arbitrator, is an entity which arbitrates disputes between a signeror verifier obtainsand atimestamp over the signer's signature. A Certificate Revocation List (CRL)verifier when there issigned list indicatingasetdisagreement on the validity ofcertificates thata digital signature. Trusted Service Providers (TSPs) areno longer considered valid by the certificate issuer [X.509 FPAM]digital signature: data appended to,one ora cryptographic transformation of, a data unitmore entities thatallows a recipient of the data unithelp toprovebuild trust relationships between thesourcesigner andintegrityverifier. Use ofthe data unit and protect against forgery, e.g.some specific TSP services MAY be mandated by signature policy. TSP supporting services may provide therecipient (ISO 7498-2 [12])following information: user certificates, cross-certificates, timestamping tokens, CRLs, ARLs, OCSP responses. ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page 5] Internet Draft Electronic Signature Formats2.5 FormsThe following TSPs are used to support the validation or the verification ofValidation Data Anelectronicsignature may exist in many forms including:signatures : *the Electronic Signature (ES), which includes the digital signature and other basic information provided by the signer;Certification Authorities; *the ES with Timestamp (ES-T), which addsRegistration Authorities; * Repository Authorities (e.g. atimestamp to the Electronic Signature, to take initial steps towards providing long term validity;Directory); *the ESTimeStamping Authorities; * One-line Certificate Status Protocol responders; * Attribute Authorities; * Signature Policy Issuers. Certification Authorities provide users withComplete validation data (ES-C), which adds to the ES-T references to the complete set of data supportingpublic key certificates. Registration Authorities allows thevalidityregistration ofthe electronic signature (i.e. revocation status information). The signer must provide at least the ES form, but inentities before a CA generates certificates. Repository Authorities publish CRLs issued by CAs, cross-certificates (i.e. CA certificates) issued by CAs, signature policies issued by Signature Policy Issuers and optionally public key certificates (i.e. leaf certificates) issued by CAs. TimeStamping Authorities attest that somecases may decide todata was formed before a given trusted time. One-line Certificate Status Protocol responders (OSCP responders) provide information about theES-T formstatus (i.e. revoked, not revoked, unknown) of a particular certificate. A Signature Policy Issuer issues signatures policies that define the technical and procedural requirements for electronic signature creation, validation and verification, inthe extreme case could provide the ES-C form. If the signer does notorder to meet a particular business need. Attributes Authorities provideES-T, the verifier must create the ES-T on first receiptusers with attributes linked to public key certificates 2.4 Electronic Signatures and Validation Data Validation of an electronicsignature.signature in accordance with this document requires: * TheES-T provides independent evidence of the existence ofelectronic signature; this includes: - the signatureat the time it was first verified which should be near the time it was created, and so protects against later repudiation of the existence of the signature. If the signer does not provide ES-Cpolicy; - theverifier must createsigned user data; - theES-C whendigital signature; - other signed attributes provided by thecomplete set of revocation andsigner; . - othervalidationunsigned attributes provided by the signer. * Validation data which isavailable. The ES satisfiesthelegal requirements for electronic signatures as defined inadditional data needed to validate theEuropean Directive onelectronicsignatures, see Annex C for further discussion on relationship ofsignature; thisdocument to the Directive. It provides basic authentication and integrity protection and can be created without accessing on-line (timestamping) services. However, without the addition of a timestamp the electronicincludes: - certificates references; - certificates; ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 6] Internet Draft Electronic Signature Formats - revocation status information references; - revocation status information; - time-stamps from Time Stamping Authorities (TSAs). * The signaturedoes not protect against the threat that the signer later denies having createdpolicy specifies theelectronictechnical requirements on signature(i.e. does not provide non-repudiation of its existence). The ES-T time-stamp should be created close to the time that ES was created to provide maximum protection against repudiation. At this time ll the data needed to complete thecreation and validation in order to meet a particular business need. A given legal/contractual context maynot be available but what information is readily availablerecognize a particular signature policy as meeting its requirements. For example: a specific signature policy may beused to carry out somerecognized by court of law as meeting theinitial checks. For example, only partrequirements of therevocation informationEuropean Directive for electronic commerce. A signature policy may beavailable for verification at that pointwritten using a formal notation like ASN.1 or intime. Generally, the ES-Can informal free text formcannot be created atprovided thesame time asrules of theES, as it is necessary to allow timepolicy are clearly identified. However, forany revocation information to be captured. Also, ifacertificate is found to be temporarily suspended, it willgiven signature policy there shall benecessary to wait until the end ofone definitive form which has a unique binary encoded value. Signed user data is thesuspension period.user's data that is signed. Thesigner should only createDigital Signature is theES-C in situations where it was prepared to wait for a sufficient lengthdigital signature applied over the following attributes provided by the signer: * hash oftime after creatingtheES form before dispatchinguser data (message digest); * signature Policy Identifier; * other signed attributes The other signed attributes include any additional information which must be signed to conform to theES-C. This, however, hassignature policy or this document (e.g. signing time). The Validation Data may be collected by theadvantage thatsigner and/or the verifiercan be presented withand must meet thecomplete setrequirements of the signature policy. Additional datasupportingincludes CA certificates as well as revocation status information in thevalidityform ofthe ES. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 6] Internet Draft Electronic Signature Formats Support for ES-CCertificate Revocation Lists (CRLs) or certificate status information provided by an on-line service. Additional data also includes timestamps and other time related data used to provide evidence of theverifiertiming of given events. It ismandated (see clause 14 for specific conformance requirements). An Electronic Signature (ES),required, as a minimum, that either the signer or verifier obtains a timestamp over the signer's signature. A digital signature (not to be confused with an electronic signature) is data appended to, or a cryptographic transformation of, a data unit that allows a recipient of theadditional validationdataformingunit to prove theES-Tsource andES-C is illustrated in Figure 1: +------------------------------------------------------------ES-C-----+ |+--------------------------------------------ES-T-----+ | ||+------Elect.Signature (ES)----------+ +------------+| +-----------+| |||+---------+ +----------+ +---------+| |Timestamp || |Complete || ||||Signature| | Other | | Digital || |over digital|| |certificate|| ||||Policy ID| | Signed | |Signature|| |signature || |and || |||| | |Attributes| | || +------------+| |revocation || |||+---------+ +----------+ +---------+| | |references || ||+------------------------------------+ | +-----------+| |+-----------------------------------------------------+ | +---------------------------------------------------------------------+ Figure 1: Illustrationintegrity ofan ES, ES-Tthe data unit andES-C 2.6 Extendedprotect against forgery, e.g. by the recipient (ISO 7498-2 [12]) 2.5 Forms of Validation DataThe complete validation data (ES-C) described aboveAn electronic signature maybe extended to form an ES with eXtended validation data (ES-X) to meet following additional requirements. Firstly, when the verifier does not has access to, * the signer's certificate, * all the CA certificates that make up the full certification path, * all the associated revocation status information, as referencedexist in many forms including: * theES-C. thenElectronic Signature (ES), which includes thevalues of these certificatesdigital signature andrevocationother basic informationmay be added to the ES-C. This form of extended validation data is called a X-Long. Secondly, if there is a risk that any CA keys used in the certificate chain may be compromised, then it is necessary to additionally timestamp the validation dataprovided byeither: * timestamping all the validation data as held withtheES(ES-C), this eXtended validation data is called a Type 1 X-Timestamp; or * timestamping individual reference data as used for complete validation. This form of eXtended validation data is called a Type 2 X-Timestamp.signer; ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page 7] Internet Draft Electronic Signature FormatsNOTE:* the ES with Timestamp (ES-T), which adds a timestamp to the Electronic Signature, to take initial steps towards providing long term validity; * the ES with Complete validation data (ES-C), which adds to the ES-T references to the complete set of data supporting the validity of the electronic signature (i.e. revocation status information). Theadvantages/drawbacks for Type 1signer must provide at least the ES form, but in some cases may decide to provide the ES-T form andType 2 X-Timestamp are discussedinthis document (see clause 4.4.6.)the extreme case could provide the ES-C form. Ifalltheabove conditions occur then a combinationsigner does not provide ES-T, the verifier must create the ES-T on first receipt of an electronic signature. The ES-T provides independent evidence of thetwo formats above mayexistence of the signature at the time it was first verified which should beused. This formnear the time it was created, and so protects against later repudiation ofeXtendedthe existence of the signature. If the signer does not provide ES-C the verifier must create the ES-C when the complete set of revocation and other validation data iscalled a X-Long-Timestamped. Supportavailable. The ES satisfies the legal requirements for electronic signatures as defined in theextended formsEuropean Directive on electronic signatures, see Annex C for further discussion on relationship ofvalidation data is optional. An Electronic Signature (ES) , withthis document to theadditional validation data formingDirective. It provides basic authentication and integrity protection and can be created without accessing on-line (timestamping) services. However, without theES-X long is illustrated in Figure 2: +------------------------------------------------------- ES-X Long--+ |+--------------------------------------- EC-C --------+ | ||+---- Elect.Signature (ES)----+ +--------+| +--------+ | |||+-------+-+-------+-+-------+| +---------+|Complete|| |Complete| | ||||Signa- | |Other | |Digital|| |Timestamp||certi- || |certi- | | ||||ture | |Signed | |Signa- || |over ||ficate || |ficate | | ||||Policy | |Attri- | |ture || |digital ||and || |and | | ||||ID | |butes | | || |signature||revoc. || |revoc. | | |||+-------+ +-------+ +-------+| +---------+|refs || |data | | ||+-----------------------------+ +--------+| +--------+ | |+-----------------------------------------------------+ | +-------------------------------------------------------------------+ Figure 2: Illustrationaddition ofana timestamp the electronic signature does not protect against the threat that the signer later denies having created the electronic signature (i.e. does not provide non-repudiation of its existence). The ES-T time-stamp should be created close to the time that ESand ES-X long. An Electronic Signature (ES) , withwas created to provide protection against repudiation. At this time all theadditional validationdataformingneeded to complete theeXtended Validation Data - Type 1validation may not be available but what information isillustratedreadily available may be used to carry out some of the initial checks. For example, only part of the revocation information may be available for verification at that point inFigure 3: +---------------------------------------------------------- ES-X 1 -+ |+---------------------------------------- EC-C --------+ | || +---- Elect.Signature (ES)----+ +--------+| +-------+ | || |+-------+ +-------+ +-------+| +---------+|Complete|| | | | || ||Signa- | |Other | |Digital|| |Timestamp||certifi-|| | Time- | | || ||ture | |Signed | |Signa- || |over ||cate and|| | stamp | | || ||Policy | |Attri- | |ture || |digital ||revoc. || | over | | || ||ID | |butes | | || |signature||refs || | CES | | || |+-------+ +-------+ +-------+| +---------+| || | | | || +-----------------------------+ +--------+| +-------+ | |+------------------------------------------------------+ | +-------------------------------------------------------------------+ Figure 3: Illustrationtime. Generally, the ES-C form cannot be created at the same time as the ES, as it is necessary to allow time for any revocation information to be captured. Also, if a certificate is found to be temporarily suspended, it will be necessary to wait until the end of the suspension period. The signer should only create the ES-C in situations where it was prepared to wait for a sufficient length of time after creating the ES form before dispatching the ES-C. This, however, has the advantage that the verifier can be presented withES-X Type 1the complete set of data supporting the validity of the ES. Support for ES-C by the verifier is mandated (see clause 6 for specific conformance requirements). ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page 8] Internet Draft Electronic Signature Formats An Electronic Signature(ES) ,(ES), with the additional validation data forming theeXtended Validation Data - Type 2ES-T and ES-C is illustrated in Figure4: +-------------------------------------------------------- ES-X 2 ---+ |+--------------------------------------- EC-C --------+ | ||+---- Elect.Signature (ES)----+ +--------+| +--------+ | |||+-------+ +-------+ +-------+| +---------+|Complete|| |Times | | ||||Signa- | |Other1: +------------------------------------------------------------ES-C-----+ |+--------------------------------------------ES-T-----+ ||Digital|| |Timestamp||certs||+------Elect.Signature (ES)----------+ +------------+| +-----------+| |||+---------+ +----------+ +---------+| |Timestamp |||Stamp ||Complete || ||||Signature| |||||tureOther ||Signed||Signa- || |over ||andDigital || |over| |digital|| |certificate|| ||||Policy ID| ||Attri-Signed ||ture|Signature|| |signature |||digital ||revoc.|and |||Complete| | ||||ID | |butes|||| | |Attributes| | |||signature||refs+------------+| |revocation |||certs | | |||+-------+ +-------+ +-------+||||+---------+ +----------+ +---------+||| |and | | ||+-----------------------------+ +--------+| |revoc. | | || | |refs| |references || ||+------------------------------------+ | +-----------+| |+-----------------------------------------------------++--------+|+-------------------------------------------------------------------++---------------------------------------------------------------------+ Figure4:1: Illustration ofES with ES-X Type 2 2.7 Archivean ES, ES-T and ES-C 2.6 Extended Forms of Validation DataBefore the algorithms, keys and other cryptographicThe complete validation dataused at the time(ES-C) described above may be extended to form an ES with eXtended validation data (ES-X) to meet following additional requirements. Firstly, when theES-C was built become weak andverifier does not has access to, * thecryptographic functions become vulnerable, orsigner's certificate, * all the CA certificatessupporting previous timestamps expires,that make up thesigned data,full certification path, * all theES-Cassociated revocation status information, as referenced in the ES-C. then the values of these certificates andany additionalrevocation information(ES-X) shouldmay betimestamped. If possible this should use stronger algorithms (or longer key lengths) than inadded to theoriginal timestamp.ES-C. Thisadditionalform of extended validation dataand timestampis calledArchive Validation Data (ES-A). The Timestamping processa X-Long. Secondly, if there is a risk that any CA keys used in the certificate chain may berepeated every time the protection usedcompromised, then it is necessary to additionally timestampa previous ES-A become weak. An ES-A may thus bear multiple embedded time stamps. Support for ES-A is optional. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 9] Internet Draft Electronic Signature Formats An example of an Electronic Signature (ES), withtheadditionalvalidation dataforby either: * timestamping all theES-C and ES-X formingvalidation data as held with theES-AES(ES-C), this eXtended validation data isillustrated in Figure 5. +-------------------------------- ES-A --------- ----------+ | +-------------------- ES-A -----------------+ | | | +---------called a Type 1 X-Timestamp; or * timestamping individual reference data as used for complete validation. This form of eXtended validation data is called a Type 2 X-Timestamp. NOTE: The advantages/drawbacks for Type 1 and Type 2 X-Timestamp are discussed in this document (see clause B.4.6.) ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 9] Internet Draft Electronic Signature Formats If all the above conditions occur then a combination of the two formats above may be used. This form of eXtended validation data is called a X-Long-Timestamped. Support for the extended forms of validation data is optional. An Electronic Signature (ES) , with the additional validation data forming the ES-X-------------- + | | | | |..............................| +-----+long is illustrated in Figure 2: +------------------------------------------------------- ES-X Long--+ |+--------------------------------------- EC-C --------+ |+-----+||+---- Elect.Signature (ES)----+ +--------+| +--------+ | |||+-------+-+-------+-+-------+| +---------+|Complete|| |Complete| | ||||Signa- ||..............................| |Time|Other | |Digital|| |Timestamp||certi- || |certi- ||Time| ||||ture | |Signed | |Signa- || |over ||ficate || |ficate ||..............................| |Stamp|||Stamp|||||Policy | |Attri- | |ture || |digital ||and || |and | | ||||ID |+-----+|butes |+-----+| || |signature||revoc. || |revoc. | |+----------------------------- +|||+-------+ +-------+ +-------+| +---------+|refs || |data | | ||+-----------------------------+ +--------+| +--------+ |+-------------------------------------------+|+-----------------------------------------------------+ |+----------------------------------------------------------++-------------------------------------------------------------------+ Figure5:2: Illustration of an ES-A 2.8 Arbitration The ES-C may be used for arbitration should there be a dispute between the signerandverifier, provided that: * the arbitrator knows where to retrieve the signer's certificate (if not already present), allES-X long. An Electronic Signature (ES) , with thecross-certificates andadditional validation data forming therequired CRLs and/or OCSPs responses referenced in the ES-C; * none of the issuing key from the certificate chain have ever been compromised; * the cryptography used at the time the ES-C was built has not been broken at the time the arbitration is performed. When the first conditioneXtended Validation Data - Type 1 isnot met, then the plaintiff must provide anillustrated in Figure 3: +---------------------------------------------------------- ES-XLong. When it is known by some external means that the second condition is not met, then the plaintiff must provide an1 -+ |+---------------------------------------- EC-C --------+ | || +---- Elect.Signature (ES)----+ +--------+| +-------+ | || |+-------+ +-------+ +-------+| +---------+|Complete|| | | | || ||Signa- | |Other | |Digital|| |Timestamp||certifi-|| | Time- | | || ||ture | |Signed | |Signa- || |over ||cate and|| | stamp | | || ||Policy | |Attri- | |ture || |digital ||revoc. || | over | | || ||ID | |butes | | || |signature||refs || | CES | | || |+-------+ +-------+ +-------+| +---------+| || | | | || +-----------------------------+ +--------+| +-------+ | |+------------------------------------------------------+ | +-------------------------------------------------------------------+ Figure 3: Illustration of ES with ES-XTimestamped. When the two previous conditions are not met, the plaintiff must provideType 1 ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 10] Internet Draft Electronic Signature Formats An Electronic Signature (ES) , with thetwo above information (i.e. an ES-X Timestamped and Long). Whenadditional validation data forming thelast conditioneXtended Validation Data - Type 2 isnot met, the plaintiff must provide an ES- A. It should be noticed that a verifier may need to get two time stamps at two different instants of time: one soon after the generationillustrated in Figure 4: +-------------------------------------------------------- ES-X 2 ---+ |+--------------------------------------- EC-C --------+ | ||+---- Elect.Signature (ES)----+ +--------+| +--------+ | |||+-------+ +-------+ +-------+| +---------+|Complete|| |Times | | ||||Signa- | |Other | |Digital|| |Timestamp||certs || |Stamp | | ||||ture | |Signed | |Signa- || |over ||and || |over | | ||||Policy | |Attri- | |ture || |digital ||revoc. || |Complete| | ||||ID | |butes | | || |signature||refs || |certs | | |||+-------+ +-------+ +-------+| +---------+| || |and | | ||+-----------------------------+ +--------+| |revoc. | | || | |refs | | |+-----------------------------------------------------+ +--------+ | +-------------------------------------------------------------------+ Figure 4: Illustration oftheESand one soon after some grace period allowing any entity from the certification chain to declare a key compromise. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 10] Internet Draft Electronic Signature Formats 2.9 Validation Process The Validation Process validates an electronic signature in accordancewith ES-X Type 2 2.7 Archive Validation Data Before therequirements of the signature policy. The output status ofalgorithms, keys and other cryptographic data used at thevalidation process can be: * valid; * invalid; ... * incomplete verification. A Valid response indicates thattime thesignature has passed verificationES-C was built become weak andit complies withthesignature validation policy. A signature validation policy is a part ofcryptographic functions become vulnerable, or thesignature policy which specifiescertificates supporting previous timestamps expires, thetechnical requirements onsigned data, thesigner in creating a signatureES-C andverifier when validating a signature An Invalid response indicates that either the signature format is incorrect or that the digital signature value fails verification (e.g. the integrity checks on the digital signature value fails oranyof the certificates on which the digital signature verification depends is known to be invalid or revoked). An Incomplete Validation response indicates that the format and digital signature verifications have not failed but there is insufficientadditional informationto determine if the electronic signature is valid under(ES-X) should be timestamped. If possible this should use stronger algorithms (or longer key lengths) than in thesignature policy.original timestamp. Thiscan include situations whereadditionalinformation, which does not effect the validity of the digital signature value, may be available butdata and timestamp isinvalid. In the case of Incomplete Validation, itcalled Archive Validation Data (ES-A). The Timestamping process may bepossible to request thatrepeated every time theelectronic signature be checked again atprotection used to timestamp alater date when additional validation information mightprevious ES-A becomeavailable. Also, in the case of incomplete validation, additional informationweak. An ES-A maybe made available to the application or user,thusallowing the application or user to decide what to do with partially correct electronic signatures. The validation process may also output validation data : * a signature timestamp; * the complete validation data; * the archive validation data. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 11] Internet Draftbear multiple embedded time stamps. An example of an Electronic SignatureFormats 2.10 Example Validation Sequence As described earlier the signer or verifier may collect all(ES), with the additional validation datathat formsfor theElectronic Signature. Figure 6,ES-C andsubsequent description, describes howES-X forming thevalidation process may build up a complete electronic signature over time. +---------------------------------------- ES-CES-A is illustrated in Figure 5. +-------------------------------- ES-A --------- ----------+|+----------------------------- ES-T -------+ | ||+--- Elect.Signature (ES) ----+ | +--------+ | |||+-------+ +-------+ +-------+|+---------+| |Complete| | ||||Signa- | |Other | |Digital|||Timestamp|| |certifi-| | ||||ture | |Signed | |Signa- |||over || |cate and| | ||||Policy | |Attri- | |ture |||digital || |revoca- | | ||||ID | |butes | | |||signature|| |tion| +-------------------- ES-A -----------------+ ||||+-------+ +-------+ +-------+|+---------+| |referen-||||+------------\----------------+ ^||ces+--------- ES-X -------------- + | ||| \| |+--------+|..............................| +-----+ ||| \ 1 /+-----+ |^||+----------------\----------------/--------+| |..............................| |Time |+------------------\--------------/-------------- /------+ \ /2 ----3-----/ +----------+|/ /|Time |Signed |\ v /||User data|\ +--------------------+ +------------+ +----------+ \--->| Validation Process |---> |- Valid|+---|--^-------|--^--+ 4 |- Invalid|..............................| |Stamp| | |Stamp| | | | ||- Validation| v|v+-----+ | +-----+ |Incomplete| +---------+ +--------+ +------------+ |Signature| |Trusted| |Policy+----------------------------- + ||Service| |Issuer+-------------------------------------------+ ||Provider| +---------+ +--------++----------------------------------------------------------+ Figure6:5: Illustration ofanESwith Complete validation data (ES-C) Soon after receiving the electronic signature (ES) from the signer (1), the digital signature value-A Support for ES-A is optional. ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 11] Internet Draft Electronic Signature Formats 2.8 Arbitration The ES-C may bechecked, the validation process must at least addused for arbitration should there be atime-stamp (2), unlessdispute between the signerhasand verifier, providedone which is trustedthat: * a copy of the signature policy referenced by theverifier. The validation process may also validate the electronic signature, as required under the identified signature policy, using additional data (e.g. certificates, CRL, etc.) provided by trusted service providers. If the validation processsigner isnot complete thenavailable; * theoutput from this stage isarbitrator knows where to retrieve theES-T. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 12] Internet Draft Electronic Signature Formats Whensigner's certificate (if not already present), all theadditional data (e.g. the complete certificatecross-certificates andrevocation information) necessary to validatetheelectronic signature first becomes available, thenrequired CRLs and/or OCSPs responses referenced in thevalidation process:ES-C; *obtains allnone of the issuing key from thenecessary additionalcertificateand revocation status information;chain have ever been compromised; *completes allthevalidation checks oncryptography used at theES, usingtime thecomplete certificate and revocation information (if a timestamp isES-C was built has notalready present, this may be addedbeen broken at thesame stage combining ES-T and ES-C process); * recordstime thecomplete certificate and revocation references (3); * indicatesarbitration is performed. When thevalidity status tosecond condition is not met, then theuser (4). Atplaintiff must provide an ES-X Long. When it is known by some external means that thesame time asthird condition is not met, then thevalidation process createsplaintiff must provide an ES-X Timestamped. When theES-C,two previous conditions are not met, thevalidation process mayplaintiff must provideand/or recordthevalues of certificates and revocation statustwo above informationused in ES-C, called the(i.e. an ES-XLong (5). ThisTimestamped and Long). When the last condition isillustrated in figure 7: +---------------------------------------------------- ES-X ---------+ |+--------------------------------------- ES-C --------+ +--------+ | ||+--- Elect.Signature (ES) ----+ +--------+ | |Complete| | |||+-------+ +-------+ +-------+|+---------+|Complete| | |certifi-| | ||||Signa- | |Other | |Digital|||Timestamp||certifi-| | |cate | | ||||ture | |Signed | |Signa- |||over ||cate and| | |and | | ||||Policy | |Attri- | |ture |||digital ||revoca- | | |revoca- | | ||||ID | |butes | | |||signature||tion | | |tion | | |||+-------+ +---|---+ +-------+|+---------+|referen-| | |Data | | ||+--------------\--------------+ ^ |ces | | +--------+ | || \ | +--------+ | ^ | || \ 1 2/ ^ | | | |+------------------\--------------/-----------|-------+ / | +--------------------\------------/-----------/-------------/-------+ \ / ---3---/ / +----------+ | / / -----------5-----/ | Signed |\ v | | / |User data | \ +--------------------+ +-----------+ +----------+ \--->|not met, the plaintiff must provide an ES-A. It should be noticed that a verifier may need to get two time stamps at two different instants of time: one soon after the generation of the ES and one soon after some grace period allowing any entity from the certification chain to declare a key compromise. 2.9 Validation Process|---> | - Valid | +---|--^-------|--^--+ 4 | - Invalid | | | | | +-----------+ v | v | +---------+ +--------+ |Signature| |Trusted | | Policy | |Service | | Issuer | |Provider| +---------+ +--------+ Figure 7: Illustration ESThe Validation Process validates an electronic signature in accordance witheXtended validation data (Long) ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 13] Internet Draft Electronic Signature Formats Whenthe requirements of the signature policy. The output status of the validation processcreates the ES-Ccan be: * valid; * invalid; * incomplete verification. A Valid response indicates that the signature has passed verification and itmay also create extended forms ofcomplies with the signature validationdata.policy. Afirst alternativesignature validation policy isto timestamp all data forminga part of theType 1 X-Timestamp (6). This is illustratedsignature policy which specifies the technical requirements on the signer infigure 8: +---------------------------------------------------- ES-X -------+ |+--------------------------------------- ES-C --------+ +------+ | ||+--- Elect.Signature (ES) ----+ +--------+ | |Time- | | |||+-------+ +-------+ +-------+|+---------+|Complete| | |stamp | | ||||Signa- | |Other | |Digital|||Timestamp||certifi-| | |over | | ||||ture | |Signed | |Signa- |||over ||cate and| | |CES | | ||||Policy | |Attri- | |ture |||digital ||revoca- | | +------+ | ||||ID | |butes | | |||signature||tion | | ^ | |||+-------+ +--|----+ +-------+|+---------+|referen-| | | | ||+-------------|---------------+ ^ |ces | | | | || | | +--------+ | | | || \ 1 2/ ^ | | | |+----------------\------------------/---------|-------+ | | +------------------\----------------/----------/-------------/----+ \ / ----3--/ / +----------+ | / / --------------6---/ | Signed |\ v | | / |User data | \ +--------------------+ +-----------+ +----------+ \--->| Validation Process |---> | - Valid | +---|--^-------|--^--+ 4 | - Invalid | | | | | +-----------+ v | v | +---------+ +--------+ |Signature| |Trusted | | Policy | |Service | | Issuer | |Provider| +---------+ +--------+ Figure 8: Illustration of ES with eXtended validation data - Type 1 X- Timestampcreating a signature and verifier when validating a signature. ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page14]12] Internet Draft Electronic Signature FormatsAnother alternative is to timestampAn Invalid response indicates that either thecertificatesignature format is incorrect or that the digital signature value fails verification (e.g. the integrity checks on the digital signature value fails or any of the certificates on which the digital signature verification depends is known to be invalid or revoked). An Incomplete Validation response indicates that the format andrevocationdigital signature verifications have not failed but there is insufficient informationreferences usedtovalidatedetermine if the electronic signature(but not the signature) (6'); thisiscalled Type 2 X-Timestamped.valid under the signature policy. This can include situations where additional information, which does not effect the validity of the digital signature value, may be available but isillustratedinvalid. In the case of Incomplete Validation, it may be possible to request that the electronic signature be checked again at a later date when additional validation information might become available. Also, infigure 9: +---------------------------------------------------- ES-X ----------+ |+--------------------------------------- ES-C --------+ +---------+ | ||+--- Elect.Signaturethe case of incomplete validation, additional information may be made available to the application or user, thus allowing the application or user to decide what to do with partially correct electronic signatures. The validation process may also output validation data : * a signature timestamp; * the complete validation data; * the archive validation data. 2.10 Example Validation Sequence As described earlier the signer or verifier may collect all the additional data that forms the Electronic Signature. Figure 6, and subsequent description, describes how the validation process may build up a complete electronic signature over time. Soon after receiving the electronic signature (ES)----+ +--------+from the signer (1), the digital signature value may be checked, the validation process must at least add a time-stamp (2), unless the signer has provided one which is trusted by the verifier. The validation process may also validate the electronic signature, as required under the identified signature policy, using additional data (e.g. certificates, CRL, etc.) provided by trusted service providers. If the validation process is not complete then the output from this stage is the ES-T. When all the additional data (e.g. the complete certificate and revocation information) necessary to validate the electronic signature first becomes available, then the validation process: * obtains all the necessary additional certificate and revocation status information; * completes all the validation checks on the ES, using the complete certificate and revocation information (if a timestamp is not already present, this may be added at the same stage combining ES-T and ES-C process); ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 13] Internet Draft Electronic Signature Formats * records the complete certificate and revocation references (3); * indicates the validity status to the user (4). +---------------------------------------- ES-C ----------+ |+----------------------------- ES-T -------+ ||Timestamp|||+--- Elect.Signature (ES) ----+ | +--------+ | |||+-------+ +-------++-------+|+---------+|Complete| | |over |+-------+|+---------+| |Complete| | ||||Signa- | |Other ||Digital|||Timestamp||certifi-| | |Complete ||Digital|||Timestamp|| |certifi-| | ||||ture | |Signed | |Signa- |||over||cate|| |cate and| ||Certifi- | |||||Policy | |Attri- | |ture |||digital||revoc. | | |cate and|| |revoca- | | ||||ID | |butes | ||||signature||refs | | |revoc.|||signature|| |tion | | |||+-------++---^---+ +-------+|+----^----++---^----+ | |refs+-------+ +-------+|+---------+| |referen-| | ||+------------\----------------+ ^ |||+--------------\--------------+|ces | | || \ |+---------+||+----------------\------------------/----------|------+ ^+--------+ |+----------------1-\----------------/----------/--------------|------+|| \ 1 /-----3--/|+----------+^ |2/ / --------------6'-----/|+----------------\----------------/--------+ |Signed |\ v| +------------------\--------------/-------------- /------+ \ /2 ----3-----/ +----------+ | / / | Signed |\ v / | |User data | \ +--------------------++-----------++------------+ +----------+ \--->| Validation Process |--->| -|- Valid | +---|--^-------|--^--+ 4| -|- Invalid | | | | |+-----------+|- Validation| v | v | | Incomplete| +---------+ +--------+ +------------+ |Signature| |Trusted | | Policy | |Service | | Issuer | |Provider| +---------+ +--------+ Figure9:6: Illustration of an ES witheXtendedComplete validation data- Type 2 X- Timestamp(ES-C) ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page15]14] Internet Draft Electronic Signature FormatsBeforeAt thealgorithms used in any of electronic signatures become or are likely, to be compromised or rendered vulnerable insame time as thefuture, it is necessary to timestampvalidation process creates theentire electronic signature, including allES-C, the validation process may provide and/or record the values ofthe validationcertificates anduser data as an ES with Archive validation data (ES-A) An ES-Arevocation status information used in ES-C, called the ES-X Long (5). This is illustrated in figure10: -------------------------------------------- ES-A --------------------+ ----------------------------------------------------------------+7: +---------------------------------------------------- ES-X ---------+ |+--------------------------------------- ES-C --------+ +--------+ |+------------------------------- EC-C --------++-----+||+--- Elect.Signature (ES) ----+ +--------+ | |Complete| | |||+-------+ +-------+ +-------+|+---------+|Complete| |||Time-||certifi-| | ||||Signa- ||+-- Elect.Signature (ES) -+ +--------+||stamp| +-------+|Other |||+------++-------++-------|+------+|Complete|||over|Digital|||Timestamp||certifi-| |Complete||cate ||||Signa-||Other ||Digital||Time- ||certifi-|||CES||certi- |+----| |||ture ||Signed ||Signa- ||stamp||||ture | |Signed | |Signa- |||over ||cateand||+-----+ |ficate |Arch-| |||Policy||Attri- ||ture ||over ||revoca- ||+------+and| | |and|ive||||ID ||butes || ||digit.||tion |||Time-||revoca-|Time||||Policy |||+------++---|---++-------||signa-||referen-|||stamp-| |tion |stamp| |+------------|------------+|ture ||ces |||over|Attri- ||data |+----||ture |||digital ||revoca- | |+------++--------+|Complete\+-------+ ^|revoca- | | ||||ID |^ ^ ||cert.|butes | | |||signature||tion | |+-------------|----------------|---------|----+|and rev||tion | | |||+-------+ +---|---+ +-------+|+---------+|referen-| |\|Data |/ |refs.| ||+--------------\--------------+ ^ |ces | | +--------+ | || \ |/ +-------++--------+ | ^ | || \ 1 2/ ^ |-----------------\-------------|-------/------------------------+| |+----------+ \|+------------------\--------------/-----------|-------+ / | +--------------------\------------/-----------/-------------/-------+ \ / ---3---/ / +----------+ | / / -----------5-----/ | Signed |\ v |\2 |3 / /--------------7-------/| / |User data | \| | / | +-------\--+ \ | | / | ---------\------------|--------|----|---/-----------------------------+ \ v | | | 1\+--------------------+ +-----------+\------>|+----------+ \--->| Validation Process |---> | - Valid | +---|--^-------|--^--+ 4 | - Invalid | | | | | +-----------+ v | v | +---------+ +--------+ |Signature| |Trusted | | Policy | |Service | | Issuer | |Provider| +---------+ +--------+ Figure10:7: Illustrationof anES withArchiveeXtended validation data(ES-A) 2.11 Additional optional features This document also defines additional optional features to: * indicate a commitment type being made by the signer; * indicate the role under which a signature was created; * support multiple signatures.(Long) ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page16]15] Internet Draft Electronic Signature Formats3. Data structure of an Electronic Signature This clause uses and builds uponWhen theCrypographic Message Syntax (CMS), as defined in RFC 2630, REF [CMS] , and Enhanced Security Services (ESS), as defined in RFC 2634 [10], REF [ESS] . The overall structure of Electronic Signature is as defined in [CMS]. The Electronic Signature (ES) uses attributes defined in [CMS], [ESS] and this document. This document defines in fullvalidation process creates theES attributes whichES-C ituses and are not defined elsewhere. The mandated setmay also create extended forms ofattributes and the digital signature value is defined as the minimum Electronic Signature (ES) required by this document.validation data. Asignature policy MAY mandate other signed attributes are present. 3.1 General Syntax The general syntax of the ESfirst alternative isas defined in [CMS]. 3.2 Data Content Type Theto timestamp all datacontent type offorming theES is as defined in [CMS]. 3.3 Signed-data ContentTypeThe Signed-data content type of the ES is as defined in [CMS]. To make sure that the verifier uses the right signers key, this document mandates that the hash of the signers certificate1 X-Timestamp (6). This isalways includedillustrated inthe Signing Certificate signed attribute. 3.4 SignedData Type The syntax of the SignedData typefigure 8: +---------------------------------------------------- ES-X -------+ |+--------------------------------------- ES-C --------+ +------+ | ||+--- Elect.Signature (ES) ----+ +--------+ | |Time- | | |||+-------+ +-------+ +-------+|+---------+|Complete| | |stamp | | ||||Signa- | |Other | |Digital|||Timestamp||certifi-| | |over | | ||||ture | |Signed | |Signa- |||over ||cate and| | |CES | | ||||Policy | |Attri- | |ture |||digital ||revoca- | | +------+ | ||||ID | |butes | | |||signature||tion | | ^ | |||+-------+ +--|----+ +-------+|+---------+|referen-| | | | ||+-------------|---------------+ ^ |ces | | | | || | | +--------+ | | | || \ 1 2/ ^ | | | |+----------------\------------------/---------|-------+ | | +------------------\----------------/----------/-------------/----+ \ / ----3--/ / +----------+ | / / --------------6---/ | Signed |\ v | | / |User data | \ +--------------------+ +-----------+ +----------+ \--->| Validation Process |---> | - Valid | +---|--^-------|--^--+ 4 | - Invalid | | | | | +-----------+ v | v | +---------+ +--------+ |Signature| |Trusted | | Policy | |Service | | Issuer | |Provider| +---------+ +--------+ Figure 8: Illustration oftheES with eXtended validation data - Type 1 X- Timestamp ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 16] Internet Draft Electronic Signature Formats Another alternative isas defined in [CMS]. The fields of type SignedData have the meanings defined [CMS] except that: * version isto timestamp thesyntax version number. The value of version must be 3. * The identification of signer'scertificate and revocation information references used tocreatevalidate the electronic signature (but not the signature) (6'); this isalways signed. The validation policy may specify requirements for the presence of certain certificates. * The degenerate case where there are no signerscalled Type 2 X-Timestamped. This isnot validillustrated inthis document.figure 9: +---------------------------------------------------- ES-X ----------+ |+--------------------------------------- ES-C --------+ +---------+ | ||+--- Elect.Signature (ES) ----+ +--------+ | |Timestamp| | |||+-------+ +-------+ +-------+|+---------+|Complete| | |over | | ||||Signa- | |Other | |Digital|||Timestamp||certifi-| | |Complete | | ||||ture | |Signed | |Signa- |||over ||cate and| | |Certifi- | | ||||Policy | |Attri- | |ture |||digital ||revoc. | | |cate and | | ||||ID | |butes | | |||signature||refs | | |revoc. | | |||+-------+ +---^---+ +-------+|+----^----++---^----+ | |refs | | ||+--------------\--------------+ | | | +---------+ | |+----------------\------------------/----------|------+ ^ | +----------------1-\----------------/----------/--------------|------+ \ / -----3--/ | +----------+ | 2/ / --------------6'-----/ | Signed |\ v | | / |User data | \ +--------------------+ +-----------+ +----------+ \--->| Validation Process |---> | - Valid | +---|--^-------|--^--+ 4 | - Invalid | | | | | +-----------+ v | v | +---------+ +--------+ |Signature| |Trusted | | Policy | |Service | | Issuer | |Provider| +---------+ +--------+ Figure 9: Illustration of ES with eXtended validation data - Type 2 X- Timestamp ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page 17] Internet Draft Electronic Signature Formats3.5 EncapsulatedContentInfo Type The syntax ofBefore theEncapsulatedContentInfo a typealgorithms used in any ofthe ES is as definedelectronic signatures become or are likely, to be compromised or rendered vulnerable in[CMS]. Forthepurpose of long term validation as defined by this document,future, it isadvisable that eithernecessary to timestamp theeContent is present, orentire electronic signature, including all thedata which is signed is archived in such as way as to preserve the any data encoding. It is important that the OCTET STRING used to generate the signature remains the same every time either the verifier or an arbitrator validates the signature. The degenerate case where there are no signers is not valid in this document. 3.6 SignerInfo Type The syntax of the SignerInfo a typevalues of theES isvalidation and user data asdefined in [CMS]. Per-signer information is represented in the type SignerInfo. In the case of multiple independent signatures, there isaninstance of this field for each signer. The fields of type SignerInfo have the meanings defined in [CMS} except that: signedAttributes must, as a minimum, contain the following attributes: * ContentType as defined in clause 3.7.1. * MessageDigest as defined in clause 3.7.2. * SigningTime as defined in clause 3.7.3. * SigningCertificate as defined in clause 3.8.1. * SignaturePolicyId as defined in clause 3.9.1. 3.6.1 Message Digest Calculation Process The message digest calculation process is as defined in [CMS]. 3.6.2 Message Signature Generation Process The input to the digital signature generation process is as defined in [CMS]. 3.6.3 Message Signature Verification Process The procedures for CMS signed dataES with Archive validationare as defined in [CMS] and enhanceddata (ES-A) An ES-A is illustrated inthis document. The input to the signature verification process includes the signer's public key verified as correct using the ESS Signing Certificate or Other Signing Certificate attribute. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 18] Internet Draft Electronic Signature Formats 3.7 CMS Imported Mandatory Present Attributes The following attributes MUST be present with the signed-data defined by this document. The attributes are defined in [CMS]. 3.7.1 Content Type The syntaxfigure 10: -------------------------------------------- ES-A --------------------+ ----------------------------------------------------------------+ | +------------------------------- EC-C --------++-----+ | | | ||Time-| | | |+-- Elect.Signature (ES) -+ +--------+||stamp| +-------+ | ||+------++-------++-------|+------+|Complete|||over | Complete| | |||Signa-||Other ||Digital||Time- ||certifi-|||CES | |certi- |+----| |||ture ||Signed ||Signa- ||stamp ||cate and||+-----+ |ficate |Arch-| |||Policy||Attri- ||ture ||over ||revoca- ||+------+ |and |ive | |||ID ||butes || ||digit.||tion |||Time- | |revoca-|Time | ||+------++---|---++-------||signa-||referen-|||stamp-| |tion |stamp| |+------------|------------+|ture ||ces |||over | |data |+----| | | +------++--------+|Complete\+-------+ ^ | | | ^ ^ ||cert. | | | | +-------------|----------------|---------|----+|and rev| | | | \ | / |refs. | | | | \ | / +-------+ | | | -----------------\-------------|-------/------------------------+ | | +----------+ \ | / / | | Signed | \2 |3 / /--------------7-------/ | |User data | \ | | / | +-------\--+ \ | | / | ---------\------------|--------|----|---/-----------------------------+ \ v | | | 1\ +--------------------+ +-----------+ \------>| Validation Process |---> | - Valid | +---|--^-------|--^--+ 4 | - Invalid | | | | | +-----------+ v | v | +---------+ +--------+ |Signature| |Trusted | | Policy | |Service | | Issuer | |Provider| +---------+ +--------+ Figure 10: Illustration ofthe content-type attributean ES with Archive validation data (ES-A) 2.11 Additional optional features This document also defines additional optional features to: * indicate a commitment typeofbeing made by theES is as defined in [CMS]. 3.7.2 Message Digest The syntax ofsigner; * indicate themessage-digest attribute typerole under which a signature was created; * support multiple signatures. ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 18] Internet Draft Electronic Signature Formats 3. Data structure of an Electronic Signature This clause uses and builds upon theES isCryptographic Message Syntax (CMS), as defined in[CMS]. 3.7.3 Signing TimeRFC 2630 [CMS], and Enhanced Security Services (ESS), as defined in RFC 2634 [ESS]. Thesyntax of the message-digest attribute typeoverall structure ofthe ESElectronic Signature is as defined in[CMS]and further qualified by[CMS]. The Electronic Signature (ES) uses attributes defined in [CMS], [ESS] and this document.The signing-time attribute type specifies the time at which the signer claims to have performed the signing process.Thispresentdocumentrecommendsdefines in full theuse of GeneralizedTime. 3.8 Alternative Signing Certificate Attributes One,ES attributes which it uses andonly one,are not defined elsewhere. The mandated set ofthe following two alternativeattributesMUST be present withand thesigned-datadigital signature value is defined as the minimum Electronic Signature (ES) required by thisdocument to identify the signing certificate. Bothdocument. A signature policy MAY mandate other signed attributesinclude an identifier and a hashto be present. 3.1 General Syntax The general syntax of thesigning certificate. The first, whichES isadoptedas defined inexisting standards, may be used if with the SHA-1 hashing algorithm.[CMS]. 3.2 Data Content Type Theother hall be used for other hashing algorithms are to be supported.data content type of the ES is as defined in [CMS]. Thesigning certificate attributedata content type isdesignedintended topreventrefer to arbitrary octet strings, such as ASCII text files; thesimple substitution and re-issue attacks, andinterpretation is left toallow for a restricted set of authorization certificates to be used in verifying a signature. 3.8.1 ESS Signing Certificate Attribute Definition The syntax ofthesigning certificate attributeapplication. Such strings need not have any internal structure (although they could have their own ASN.1 definition or other structure). 3.3 Signed-data Content Type The Signed-data content type of the ES is as defined in[ESS], and further qualified and profile in this document.[CMS]. TheESS signing certificate attribute must be a signed attribute. This document mandates the presencesigned-data content type consists ofthis attribute asasigned CMS attribute,content of any type andthe sequence must not be empty.zero or more signature values. Any number of signers in parallel can sign any type of content. Thecertificate used to verifytypical application of the signed-data content type represents one signer's digital signaturemust be identified inon content of thesequence,data content type. To make sure that theSignature Validation Policy may mandate other certificates be present,verifier uses the right certificate, this document mandates thatmay include allthecertificates up tohash of thepointsigners certificate is always included in the Signing Certificate signed attribute. 3.4 SignedData Type The syntax oftrust.the SignedData type of the ES is as defined in [CMS]. Theencodingfields of type SignedData have theESSCertID for this certificate must includemeanings defined [CMS] except that: * version is theissuerSerial field.syntax version number. The value of version must be 3. ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page 19] Internet Draft Electronic Signature Formats * TheissuerAndSerialNumber present in the SignerInfo must be consistent with issuerSerial field. The certificate identified must be used during the signature verification process. If the hashidentification ofthe certificate does not match thesigner's certificate used toverify the signature,create the signaturemust be considered invalid.is always present as a signed attribute. * Thesequence of policy information fielddegenerate case where there are no signers is notusedvalid in this document.NOTE: Where an attribute certificate is used by3.5 EncapsulatedContentInfo Type The syntax of thesigner to associateEncapsulatedContentInfo arole, or other attributestype of thesigner, with the electronic signature thisES isplacedas defined in [CMS]. For theSigner Attribute attributepurpose of long term validation as definedin clause 3.12.3. 3.8.2 Other Signing Certificate Attribute Definition The following attributeby this document, it isidenticaladvisable that either the eContent is present, or the data which is signed is archived in such as way as to preserve theESS SigningCertificate defined above exceptany data encoding. It is important thatthis attribute can be used with hashing algorithms other than SHA-1. This attribute must bethe OCTET STRING usedinto generate the signature remains the samemannerevery time either the verifier or an arbitrator validates the signature. The degenerate case where there are no signers is not valid in this document. 3.6 SignerInfo Type The syntax of the SignerInfo a type of the ES is as definedabove forin [CMS]. Per-signer information is represented in theESS SigningCertificate attribute. The following object identifier identifiestype SignerInfo. In thesigning certificate attribute: id-aa-ets-otherSigCert OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-aa(2) 19 }case of multiple independent signatures, there is an instance of this field for each signer. Thesigning certificate attribute value hasfields of type SignerInfo have theASN.1 syntax OtherSigningCertificate OtherSigningCertificate ::= SEQUENCE { certs SEQUENCE OF OtherCertID, policies SEQUENCE OF PolicyInformation OPTIONAL -- NOT USED IN THIS DOCUMENT } OtherCertID ::= SEQUENCE { otherCertHash OtherHash, issuerSerial IssuerSerial OPTIONAL } OtherHash ::= CHOICE { sha1Hash OtherHashValue, -- This containsmeanings defined in [CMS] except that signedAttributes must, as aSHA-1 hash otherHash OtherHashAlgAndValue} OtherHashValue ::= OCTET STRING OtherHashAlgAndValue ::= SEQUENCE { hashAlgorithm AlgorithmIdentifier, hashValue OtherHashValue }minimum, contain the following attributes: * ContentType as defined in clause 3.7.1. * MessageDigest as defined in clause 3.7.2. * SigningTime as defined in clause 3.7.3. * SigningCertificate as defined in clause 3.8.1. * SignaturePolicyId as defined in clause 3.9.1. 3.6.1 Message Digest Calculation Process The message digest calculation process is as defined in [CMS]. 3.6.2 Message Signature Generation Process The input to the digital signature generation process is as defined in [CMS]. 3.6.3 Message Signature Verification Process The procedures for CMS signed data validation are as defined in [CMS] and enhanced in this document. ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page 20] Internet Draft Electronic Signature Formats3.9 Additional Mandatory Attributes 3.9.1 Signature policy Identifier This document mandates that a referenceThe input to the signaturepolicy, which definesverification process includes therules for creation and validation of an electronic signature, is includedsigner's public key verified asa signedcorrect using either the ESS Signing Certificate attributewith every signature. The signature policy identifier must be a signedor the Other Signing Certificate attribute. 3.7 CMS Imported Mandatory Present Attributes The followingobject identifier identifiesattributes MUST be present with thesignature policy identifier attribute: id-aa-ets-sigPolicyId OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-aa(2) 15 } Signature-policy-identifier attribute values have ASN.1 type SignaturePolicyIdentifier. SignaturePolicyIdentifier ::= SEQUENCE { sigPolicyIdentifier SigPolicyId, sigPolicyHash SigPolicyHash, sigPolicyQualifiers SEQUENCE SIZE (1..MAX) OF SigPolicyQualifierInfo OPTIONAL}signed-data defined by this document. ThesigPolicyIdentifier field contains an object-identifier which uniquely identifies a specific version of the signature policy.attributes are defined in [CMS]. 3.7.1 Content Type The syntax ofthis field is as follows: SigPolicyId ::= OBJECT IDENTIFIER The sigPolicyHash field containstheidentifiercontent-type attribute type of thehash algorithm and the hashES is as defined in [CMS]. 3.7.2 Message Digest The syntax of thevaluemessage-digest attribute type of thesignature policy. If the signature policyES is as definedusing ASN.1 (see 6.1) the hash is calculated on the value withoutin [CMS]. 3.7.3 Signing Time The syntax of theoutermessage-digest attribute typeand length fields andof thehashing algorithm must beES is asspecifieddefined in [CMS] and further qualified by this document. The signing-time attribute type specifies thefield signPolicyHshAlg. Iftime at which thesignature policy is defined using another structure,signer claims to have performed thetypesigning process. This present document recommends the use ofstructureGeneralizedTime. 3.8 Alternative Signing Certificate Attributes One, andthe hashing algorithm must be either specified as partonly one, of thesignature policy, or indicated using a signature policy qualifier. SigPolicyHash ::= ETSIHashAlgAndValue ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 21] Internet Draft Electronic Signature Formats A signature policy identifier mayfollowing two alternative attributes MUST bequalifiedpresent withother information aboutthequalifier. The semanticssigned-data defined by this document to identify the signing certificate. Both attributes include an identifier andsyntaxa hash of thequalifiersigning certificate. The first, which isas associated with the object-identifieradopted in existing standards, may be only used with thesigPolicyQualifierId field.SHA-1 hashing algorithm. Thegeneral syntax of this qualifier is as follows: SigPolicyQualifierInfo ::= SEQUENCE { sigPolicyQualifierId SigPolicyQualifierId, sigQualifier ANY DEFINED BY sigPolicyQualifierId } This document specifies the following qualifiers: * spuri: This contains the web URI or URL referenceother shall be used when other hashing algorithms are tothe signature policy * spUserNotice: This contains a user notice which shouldbedisplayed whenever the signature is validated. -- sigpolicyQualifierIds defined in this document SigPolicyQualifierId ::= OBJECT IDENTIFIER id-spq-ets-uri OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-spq(5) 1 } SPuri ::= IA5String id-spq-ets-unotice OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-spq(5) 2 } SPUserNotice ::= SEQUENCE { noticeRef NoticeReference OPTIONAL, explicitText DisplayText OPTIONAL} NoticeReference ::= SEQUENCE { organization DisplayText, noticeNumbers SEQUENCE OF INTEGER } DisplayText ::= CHOICE { visibleString VisibleString (SIZE (1..200)), bmpString BMPString (SIZE (1..200)), utf8String UTF8String (SIZE (1..200)) } ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 22] Internet Draft Electronic Signature Formats 3.10 CMS Imported Optional Attributessupported. Thefollowing attributes MAY be present withsigning certificate attribute is designed to prevent thesigned-data defined by this document. The attributes are defined in ref [CMS] and are imported into this specificationsimple substitution andwere appropriate qualifiedre-issue attacks, andprofiling by this document. 3.10.1 Countersignatureto allow for a restricted set of authorization certificates to be used in verifying a signature. 3.8.1 ESS Signing Certificate Attribute Definition The syntax of thecountersignaturesigning certificate attribute type of the ES is as defined in[CMS]. The countersignature attribute must be an unsigned attribute 3.11 ESS Imported Optional Attributes The following attributes MAY be present with the signed-data defined by this document. The attributes are defined in ref [ESS] and are imported into this specification[ESS], andwere appropriatefurther qualified andprofiling byprofile in this document.3.11.1 Signed Content Reference AttributeThecontent referenceESS signing certificate attributeis a link from one SignedData to another. It maymust beused to linkareply tosigned attribute. This document mandates theoriginal message to which it refers, or to incorporate by reference one SignedData into another. The content referencepresence of this attributeMUST be usedasdefined in [ESS]. The content reference MUST bea signedattribute. The syntax of the content reference attribute type ofCMS attribute, and theES is as defined in [ESS]. 3.11.2 Content Identifier Attributesequence must not be empty. Thecontent identifier attribute provides an identifier forcertificate used to verify thesigned content for use when reference maysignature must belater required to that content, for exampleidentified in thecontent reference attribute insequence, the Signature Validation Policy may mandate othersigned data sent later. The content identifier mustcertificate references to bea signed attribute. The syntax ofpresent, that may include all thecontent identifier attribute type ofcertificates up to theES is as defined in [ESS]. The minimal signedContentIdentifier should contain a concatenationpoint ofuser-specific identification information (such as a user name or public keying material identification information), a GeneralizedTime string, and a random number.ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page23]21] Internet Draft Electronic Signature Formats3.12 Additional Optional Attributes 3.12.1 Commitment Type Indication Attribute There may be situation were a signer wants to explicitly indicate to a verifier that by signing the data, it illustrates a type of commitment on behalftrust. The encoding of thesigner. The commitmentTypeIndication attribute conveys such information.ESSCertID for this certificate must include the issuerSerial field. ThecommitmentTypeIndication attributeissuerAndSerialNumber present in the SignerInfo must bea signed attributeconsistent with issuerSerial field. Thecommitment type may be: * defined as part ofcertificate identified must be used during the signaturepolicy, in which caseverification process. If thecommitment type has precise semantics that is defined as parthash of thesignature policy. * be a registered type, in which casecertificate does not match thecommitment type has precise semantics defined by registration, undercertificate used to verify therules ofsignature, theregistration authority. Such a registration authority maysignature must bea trading association or a legislative authority.considered invalid. Thesignaturesequence of policyspecifiesinformation field is not used in this document. NOTE: Where an attribute certificate is used by the signer to associate aset ofrole, or other attributesthat it "recognizes". This "recognized" set includes all those commitment types defined as partof the signer, with the electronic signaturepolicy as wellthis is placed in the Signer Attribute attribute asany externallydefinedcommitment types that the policy may choose to recognize. Only recognized commitment types are allowedin clause 3.12.3. 3.8.2 Other Signing Certificate Attribute Definition The following attribute is identical to the ESS SigningCertificate defined above except that thisfield.attribute can be used with hashing algorithms other than SHA-1. This attribute must be used in the same manner as defined above for the ESS SigningCertificate attribute. The following object identifier identifies thecommitment type indicationsigning certificate attribute:id-aa-ets-commitmentTypeid-aa-ets-otherSigCert OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)pkcs-9(9)pkcs9(9) smime(16) id-aa(2)16} Commitment-Type-Indication19 } The signing certificate attributevalues havevalue has the ASN.1type CommitmentTypeIndication. CommitmentTypeIndicationsyntax OtherSigningCertificate OtherSigningCertificate ::= SEQUENCE {commitmentTypeId CommitmentTypeIdentifier, commitmentTypeQualifiercerts SEQUENCESIZE (1..MAX)OFCommitmentTypeQualifier OPTIONAL} CommitmentTypeIdentifier ::= OBJECT IDENTIFIER CommitmentTypeQualifierOtherCertID, policies SEQUENCE OF PolicyInformation OPTIONAL -- NOT USED IN THIS DOCUMENT } OtherCertID ::= SEQUENCE {commitmentTypeIdentifier CommitmentTypeIdentifier, qualifier ANY DEFINED BY commitmentTypeIdentifierotherCertHash OtherHash, issuerSerial IssuerSerial OPTIONAL }The use of any qualifiers to the commitment type is outside the scope of this document.OtherHash ::= CHOICE { sha1Hash OtherHashValue, -- This contains a SHA-1 hash otherHash OtherHashAlgAndValue } OtherHashValue ::= OCTET STRING ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page24]22] Internet Draft Electronic Signature Formats OtherHashAlgAndValue ::= SEQUENCE { hashAlgorithm AlgorithmIdentifier, hashValue OtherHashValue } 3.9 Additional Mandatory Attributes 3.9.1 Signature policy Identifier This document mandates that a reference to the signature policy, which defines the rules for creation and validation of an electronic signature, is included as a signed attribute with every signature. The signature policy identifier must be a signed attribute. The followinggeneric commitment types are defined in this document: id-cti-ets-proofOfOriginobject identifier identifies the signature policy identifier attribute: id-aa-ets-sigPolicyId OBJECT IDENTIFIER ::= { iso(1)member- body(2)member-body(2) us(840) rsadsi(113549) pkcs(1)pkcs-9(9)pkcs9(9) smime(16)cti(6) 1} id-cti-ets-proofOfReceipt OBJECT IDENTIFIERid-aa(2) 15 } Signature-policy-identifier attribute values have ASN.1 type SignaturePolicyIdentifier. SignaturePolicyIdentifier ::= SEQUENCE {iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 2} id-cti-ets-proofOfDeliverysigPolicyIdentifier SigPolicyId, sigPolicyHash SigPolicyHash, sigPolicyQualifiers SEQUENCE SIZE (1..MAX) OF SigPolicyQualifierInfo OPTIONAL } The sigPolicyIdentifier field contains an object-identifier which uniquely identifies a specific version of the signature policy. The syntax of this field is as follows: SigPolicyId ::= OBJECT IDENTIFIER::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 3} id-cti-ets-proofOfSender OBJECT IDENTIFIER ::= { iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 4} id-cti-ets-proofOfApproval OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 5} id-cti-ets-proofOfCreation OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 6} These generic commitment types haveThe sigPolicyHash field contains thefollowing meaning: Proofidentifier oforigin indicates thatthesigner recognizes to have created, approvedhash algorithm andsentthemessage. Proofhash ofreceipt indicates that signer recognizes to have receivedthecontentvalue of themessage. Proof of delivery indicates thatsignature policy. If theTSP providing that indication has delivered a message insignature policy is defined using alocal store accessible tocomputer processable notation like ASN.1, then therecipient ofhash is calculated on themessage. Proof of sender indicates thatvalue without theentity providing that indication has sentouter type and length fields and themessage (but not necessarily created it). Proof of approval indicates thathashing algorithm must be as specified in thesigner has approvedfield signPolicyHshAlg. If thecontent ofsignature policy is defined using another structure, themessage. Prooftype ofcreation indicates that the signer has createdstructure and themessage (but not necessarily approved, nor sent it). NOTE: See clause A.3 for a full descriptionhashing algorithm must be either specified as part of thecommitment types defined above.signature policy, or indicated using a signature policy qualifier. SigPolicyHash ::= ETSIHashAlgAndValue ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page25]23] Internet Draft Electronic Signature Formats3.12.2 Signer LocationA signature policy identifier may be qualified with other information about the qualifier. Thesigner-location attribute is an attribute which specifies a mnemonic for an address associated withsemantics and syntax of thesigner at a particular geographical (e.g. city) location. The mnemonicqualifier isregistered inas associated with thecountryobject-identifier inwhichthesigner is located andsigPolicyQualifierId field. The general syntax of this qualifier isused inas follows: SigPolicyQualifierInfo ::= SEQUENCE { sigPolicyQualifierId SigPolicyQualifierId, sigQualifier ANY DEFINED BY sigPolicyQualifierId } This document specifies theprovision offollowing qualifiers: * spuri: This contains thePublic Telegram Service (accordingweb URI or URL reference toITU-T Recommendation F.1 [5?????]). The signer-location attribute must bethe signature policy * spUserNotice: This contains asigned attribute. The following object identifier identifiesuser notice which should be displayed whenever thesigner-location attribute: id-aa-ets-signerLocationsignature is validated. -- sigpolicyQualifierIds defined in this document SigPolicyQualifierId ::= OBJECT IDENTIFIER id-spq-ets-uri OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)pkcs-9(9)pkcs9(9) smime(16)id-aa(2) 17} Signer-location attribute values have ASN.1 type SignerLocation: SignerLocationid-spq(5) 1 } SPuri ::= IA5String id-spq-ets-unotice OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-spq(5) 2 } SPUserNotice ::= SEQUENCE {-- at least one of the following must be present countryName [0] DirectoryString OPTIONAL, -- As used to name a Country in X.500 localityName [1] DirectoryStringnoticeRef NoticeReference OPTIONAL,-- As used to name a locality in X.500 postalAdddress [2] PostalAddressexplicitText DisplayText OPTIONAL }PostalAddressNoticeReference ::= SEQUENCESIZE(1..6){ organization DisplayText, noticeNumbers SEQUENCE OFDirectoryString 3.12.3 SignerINTEGER } DisplayText ::= CHOICE { visibleString VisibleString (SIZE (1..200)), bmpString BMPString (SIZE (1..200)), utf8String UTF8String (SIZE (1..200)) } 3.10 CMS Imported Optional Attributes Thesigner-attributes attribute is an attribute which specifies additionalfollowing attributesof the signer (e.g. role). It mayMAY beeither: * claimed attributes of the signer; * certified attributes of the signer; *present with thesigner-attribute attribute must be a signed attribute attributes. The signer-attributes attribute must be a signed attribute.signed-data defined by this document. Thefollowing object identifier identifies the signer-attribute attribute: id-aa-ets-signerAttr OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 18} signer-attribute attribute values have ASN.1 type SignerAttribute. SignerAttribute ::= SEQUENCE OF CHOICE { claimedAttributes [0] ClaimedAttributes, certifiedAttributes [1] CertifiedAttributes }attributes are defined in ref [CMS] and are imported ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page26]24] Internet Draft Electronic Signature FormatsClaimedAttributes ::= SEQUENCE OF Attribute CertifiedAttributes ::= AttributeCertificate -- Asinto this specification and were appropriate qualified and profiling by this document. 3.10.1 Countersignature The syntax of the countersignature attribute type of the ES is as defined inX.509 : see section 10.3 NOTE:[CMS]. Theclaimed and certifiedcountersignature attribute must be an unsigned attribute. 3.11 ESS Imported Optional Attributes The following attributes MAY be present with the signed-data defined by this document. The attributes are defined in ref [ESS] and are importedfrom ITU-T Recommendations X.501 [16]into this specification andITU-T Recommendation X.509 : Draft Amendment on Certificate Extensions, October 1999. 3.12.3were appropriate qualified and profiling by this document. 3.11.1 ContentTimestampReference Attribute The contenttimestamp attribute is anreference attributewhichis a link from one SignedData to another. It may be used to link a reply to thetimestamp of the signed data content beforeoriginal message to which itis signed.refers, or to incorporate by reference one SignedData into another. The contenttimestampreference attributemustMUST be used as defined in [ESS]. The content reference MUST be a signed attribute. Thefollowing object identifier identifiessyntax of thesigner-attribute attribute: id-aa-ets-contentTimestamp OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 20} Content timestampcontent reference attributevalues have ASN.1typeContentTimestamp: ContentTimestamp::= TimeStampToken The valueofmessageImprint field within TimeStampToken must be a hash of the value of eContent field within encapContentInfo withinthesignedData. For further information and definition of TimeStampToken see ref .. temp note; need to addES is as defined in [ESS]. 3.11.2 Content Identifier Attribute The content identifier attribute provides an identifier for the signed content for use when reference may be later required tothe timestamping RFC. 3.13 Supportthat content, forMultiple Signatures 3.13.1 Independent Signatures Multiple independent signatures (see clause 55) are supported by independent SignerInfo from each signer. Each SignerInfo must include allexample in theattributes required under this document andcontent reference attribute in other signed data sent later. The content identifier must beprocessed independently by the verifier. 3.13.2 Embedded Signatures Multiple embedded signatures (see clause B.6) are supported usinga signed attribute. The syntax of thecounter-signature unsignedcontent identifier attribute(see clause 10.1). Each counter signaturetype of the ES iscarriedas defined inCountersignature held[ESS]. The minimal signedContentIdentifier should contain a concatenation of user-specific identification information (such asan unsigned attributea user name or public keying material identification information), a GeneralizedTime string, and a random number. 3.12 Additional Optional Attributes 3.12.1 Commitment Type Indication Attribute There may be situation were a signer wants tothe SignerInfoexplicitly indicate towhicha verifier that by signing thecounter-signature is applied. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 27] Internet Draft Electronic Signature Formats 4. Validation Data This clause specifies the validation data structures which buildsdata, it illustrates a type of commitment on behalf of theelectronic signature specified in clause 3. This includes:signer. The commitmentTypeIndication attribute conveys such information. ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 25] Internet Draft Electronic Signature Formats The commitmentTypeIndication attribute must be a signed attribute. The commitment type may be: *Timestamp applied todefined as part of theelectronicsignaturevalue. * Complete validation datapolicy, in whichcomprisescase thetimestampcommitment type has precise semantics that is defined as part of the signaturevalue, plus references to all the certificates and revocation information used for full validation of the electronic signature. The following optional eXtended forms of validation data are also defined:policy. *X-timestamp: There are two types of timestamp usedbe a registered type, inextended validation datawhich case the commitment type has precise semantics defined bythis document. - Type 1 -Timestamp which comprises a timestamp overregistration, under theES with Complete validation data (ES-C). - Type 2 X-Timestamp which comprisesrules ofa timestamp over the certification path references andtherevocation information references used to support the ES-C. * X-Long : This comprisesregistration authority. Such aComplete validation data plus the actual values of all the certificates and revocation information used in the ES-C. * X-Long-Timestamp: This comprisesregistration authority may be aType 1trading association orType 2 X-Timestamp plus the actual valuesa legislative authority. The signature policy specifies a set of attributes that it "recognizes". This "recognized" set includes all those commitment types defined as part of thecertificates and revocation information used in the ES-C. This clause also specifies the data structures used in Archive validation data: * Archive validation data comprises a Complete validation data, the certificate and revocation values (as in a X-Long validation data),signature policy as well as anyother existing X-timestamps, plus the Signed User data and an additional archive timestamp over allexternally defined commitment types thatdata. An archive timestampthe policy maybe repeatedly applied after long periodschoose tomaintain validity when electronic signature and timestamping algorithms weaken.recognize. Only recognized commitment types are allowed in this field. Theadditional data required to createfollowing object identifier identifies theformscommitment type indication attribute: id-aa-ets-commitmentType OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 16} Commitment-Type-Indication attribute values have ASN.1 type CommitmentTypeIndication. CommitmentTypeIndication ::= SEQUENCE { commitmentTypeId CommitmentTypeIdentifier, commitmentTypeQualifier SEQUENCE SIZE (1..MAX) OF CommitmentTypeQualifier OPTIONAL } CommitmentTypeIdentifier ::= OBJECT IDENTIFIER CommitmentTypeQualifier ::= SEQUENCE { commitmentTypeIdentifier CommitmentTypeIdentifier, qualifier ANY DEFINED BY commitmentTypeIdentifier } The use ofelectronic signature identified aboveany qualifiers to the commitment type iscarried as unsigned attributes associated with an individual signature by being placed inoutside theunsignedAttrs fieldscope ofSignerInfo (see clause 6????). Thus all the attributesthis document. The following generic commitment types are defined inclause 9?? are unsigned attributes.this document: id-cti-ets-proofOfOrigin OBJECT IDENTIFIER ::= { iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 1} id-cti-ets-proofOfReceipt OBJECT IDENTIFIER ::= { iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 2} ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page28]26] Internet Draft Electronic Signature FormatsNOTE: Where multiple signatures are to be supported, as described in clause 3.13, each signature has a separate SignerInfo. Thus, each signature requires its own unsigned attribute values to create ES-T, ES-C etc. 4.1 Electronic Signature Timestamp An Electronic Signature with Timestamp is an Electronic Signature for which part, but not all, of the additional data required for validation is available (i.e. some certificates and revocation information is available but not all). The minimum structure Timestamp validation data is: * The Signature Timestamp Attribute as defined in clause 4.1.1 over the ES signature value. 4.1.1 Signature Timestamp Attribute Definition The Signature Timestamp attribute is timestamp of the signature value. It is an unsigned attribute. Several instances of this attribute may occur with an electronic signature, from different TSAs. The Signature Validation Policy specifies, in the signatureTimestampDelay field of TimestampTrustConditions, an maximum acceptable time difference which is allowed between the time indicated in the signing time attribute and the time indicated by the Signature Timestamp attribute. If this delay is exceeded then the electronic signature must be considered as invalid. The following object identifier identifies the Signature Timestamp attribute: id-aa-signatureTimeStampTokenid-cti-ets-proofOfDelivery OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)id-aa(2) 14} The Signature timestamp attribute value has ASN.1 type SignatureTimeStampToken: SignatureTimeStampTokencti(6) 3} id-cti-ets-proofOfSender OBJECT IDENTIFIER ::=TimeStampToken The value of messageImprint field within TimeStampToken must be a hash of{ iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 4} id-cti-ets-proofOfApproval OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 5} id-cti-ets-proofOfCreation OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 6} These generic commitment types have thevaluefollowing meaning: Proof ofsignature field within SignerInfoorigin indicates that the signer recognizes to have created, approved and sent the message. Proof of receipt indicates that signer recognizes to have received the content of the message. Proof of delivery indicates that the TSP providing that indication has delivered a message in a local store accessible to the recipient of the message. Proof of sender indicates that the entity providing that indication has sent the message (but not necessarily created it). Proof of approval indicates that the signer has approved the content of the message. Proof of creation indicates that the signer has created the message (but not necessarily approved, nor sent it). 3.12.2 Signer Location attribute The signer-location attribute is an attribute which specifies a mnemonic for an address associated with thesignedData being timestamped. For further informationsigner at a particular geographical (e.g. city) location. The mnemonic is registered in the country in which the signer is located anddefinitionis used in the provision ofTimeStampToken see [TSP] Temp note ;refthe Public Telegram Service (according totimestamping doc requiredITU-T Recommendation F.1 [PTS]). The signer-location attribute must be a signed attribute. The following object identifier identifies the signer-location attribute: id-aa-ets-signerLocation OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 17} ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page29]27] Internet Draft Electronic Signature Formats4.2 Complete Validation Data An electronic signature with complete validation data is an Electronic Signature for which allSigner-location attribute values have ASN.1 type SignerLocation. SignerLocation ::= SEQUENCE { -- at least one of theadditional data required for validation (i.e. all certificates and revocation information) is available. Complete validation data (ES-C) build on the electronic signature Timestampfollowing must be present countryName [0] DirectoryString OPTIONAL, -- asdefined above. The minimum structure ofused to name aComplete validation data is: * the Signature Timestamp Attribute, as defined in clause 4.1.1; * Complete Certificate Refs, as definedCountry inclause 4.2.1; * Complete Revocation Refs,X.500 localityName [1] DirectoryString OPTIONAL, -- asdefined in clause 4.2.2. The Complete validation data MAY also include the following additional information, forming a X-Long validation data, for use if later validation processes may not have accessused tothis information: * Complete Certificate Values, as defined in clause 4.2.3; * Complete Revocation Values, as definedname a locality inclause 4.2.4.X.500 postalAdddress [2] PostalAddress OPTIONAL } PostalAddress ::= SEQUENCE SIZE(1..6) OF DirectoryString 3.12.3 Signer Attributes attribute TheComplete validation data MAY also include one of the following additional attributes, forming a X-Timestamp validation data, to providesigner-attributes attribute is an attribute which specifies additionalprotection against later CA compromise and provide integrityattributes of thevalidation data used:signer (e.g. role). It may be either: *ES-C Timestamp, as defined in clause 4.2.5;claimed attributes of the signer; or *Time-Stamped Certificates and CRLs references, as defined in clause 4.2.6. NOTE 1: As long ascertified attributes of theCA's are trusted such that these keys cannotsigner; The signer-attributes attribute must becompromised or the cryptography used broken, the ES-C provides long term proof of a valid electronic signature. A valid electronic signature is an electronic signature which passes validation according toasignature validation policy. NOTE 2:signed attribute. TheES-C provides thefollowingimportant property for long standing signatures; that is having been found once to be valid, must continue to be so months or years later. Long after the validity period ofobject identifier identifies thecertificatessigner-attribute attribute: id-aa-ets-signerAttr OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 18} signer-attribute attribute values haveexpired, or after the user key has been compromised. 4.2.1 Complete Certificate RefsASN.1 type SignerAttribute. SignerAttribute ::= SEQUENCE OF CHOICE { claimedAttributes [0] ClaimedAttributes, certifiedAttributes [1] CertifiedAttributes } ClaimedAttributes ::= SEQUENCE OF AttributeDefinitionCertifiedAttributes ::= AttributeCertificate -- as defined in X.509 : see section 10.3 NOTE: TheCompleteclaimed and certified attribute are imported from ITU-T Recommendations X.501 [16] and ITU-T Recommendation X.509 : Draft Amendment on CertificateRefsExtensions, October 1999. 3.12.4 Content Timestamp attribute The content timestamp attribute is anunsigned attribute. It referencesattribute which is thefull settimestamp ofCA certificates that have been used to validate a ES with Complete validation data (ES-C) up to (but not including)thesigner's certificate. Only a single instance of thissigned data content before it is signed. The content timestamp attribute mustoccur with an electronic signature.be a signed attribute. ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page31]28] Internet Draft Electronic Signature FormatsNote:Thesigner's certified is referenced infollowing object identifier identifies thesigning certificate attribute (see clause 3.1). id-aa-ets-certificateRefssigner-attribute attribute: id-aa-ets-contentTimestamp OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2)21} The complete certificate refs20} Content timestamp attributevalue has thevalues have ASN.1syntax CompleteCertificateRefs. CompleteCertificateRefs ::= SEQUENCE OF ETSICertID ETSICertID is defined in clause 3.8.2.type ContentTimestamp: ContentTimestamp::= TimeStampToken TheIssuerSerial thatvalue of messageImprint field within TimeStampToken must bepresent in ETSICertID. The certHash must match thea hash of thecertificate referenced. NOTE: Copiesvalue of eContent field within encapContentInfo within thecertificate values maysignedData. For further information and definition of TimeStampToken see [TSP]. 3.13 Support for Multiple Signatures 3.13.1 Independent Signatures Multiple independent signatures are supported by independent SignerInfo from each signer. Each SignerInfo must include all the attributes required under this document and must beheldprocessed independently by the verifier. 3.13.2 Embedded Signatures Multiple embedded signatures are supported using theCertificate Valuescounter-signature unsigned attributedefined in(see clause4.3.1. 4.2.2 Complete Revocation Refs Attribute Definition The Complete Revocation Refs attribute3.10.1). Each counter signature is carried in Countersignature held as an unsignedattribute. Only a single instance of thisattributemust occur with an electronic signature. It referencesto thefull set ofSignerInfo to which theCRL or OCSP responses that have been usedcounter-signature is applied. 4. Validation Data This clause specifies the validation data structures which builds on the electronic signature specified in clause 3. This includes: * Timestamp applied to the electronic signature value. * Complete validation data which comprises the timestamp of thesigner and CAsignature value, plus references to all the certificates and revocation information used for full validation of the electronic signature. The following optional eXtended forms of validation data are also defined: * X-timestamp: There are two types of timestamp used in extended validation data defined by this document. ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 29] Internet Draft Electronic Signature Formats - Type 1 -Timestamp which comprises a timestamp over the ES with Complete validationdata. The following object identifier identifiesdata (ES-C). - Type 2 X-Timestamp which comprises of a timestamp over theCompleteRevocationRefs attribute: id-aa-ets-revocationRefs OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 22} The complete revocation refs attribute value hascertification path references and theASN.1 syntax CompleteRevocationRefs CompleteRevocationRefs ::= SEQUENCE OF CrlOcspRef CrlOcspRef ::= SEQUENCE { crlids [0] CRLListID OPTIONAL, ocspids [1] OcspListID OPTIONAL, otherRev [2] OtherRevRefs OPTIONAL } ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 32] Internet Draft Electronic Signature Formats CompleteRevocationRefs must contain one CrlOcspRef forrevocation information references used to support thesigning certificate, followed by one for each ETSICertID inES-C. * X-Long : This comprises a Complete validation data plus theCompleteCertificateRefs attribute.actual values of all thesecondcertificates andsubsequent CrlOcspRef fields must berevocation information used in thesame order as the ETSICertID to which they relate. At least one of CRLListID or OcspListIDES-C. * X-Long-Timestamp: This comprises a Type 1 orOtherRevRefs should be present for all butType 2 X-Timestamp plus the"trusted" CAactual values of all thecertificate path. CRLListID ::= SEQUENCE { crls SEQUENCE OF CrlValidatedID} CrlValidatedID ::= SEQUENCE { crlHash ETSIHash, crlIdentifier CrlIdentifier OPTIONAL} CrlIdentifier ::= SEQUENCE { crlissuer Name, crlIssuedTime UTCTime, crlNumber INTEGER OPTIONAL } OcspListID ::= SEQUENCE { ocspResponses SEQUENCE OF OcspResponsesID} OcspResponsesID ::= SEQUENCE { ocspIdentifier OcspIdentifier, ocspRepHash ETSIHash OPTIONAL } OcspIdentifier ::= SEQUENCE { ocspResponderID ResponderID, -- Ascertificates and revocation information used inOCSP responsethe ES-C. This clause also specifies the dataproducedAt GeneralizedTime -- Asstructures used inOCSP responseArchive validation data: * Archive validation data} When creating an crlValidatedID, the crlHash is computed over the entire DER encoded CRL includingcomprises a Complete validation data, thesignature. The crlIdentifier would normally be present unlesscertificate and revocation values (as in a X-Long validation data), any other existing X-timestamps, plus theCRL canSigned User data and an additional archive timestamp over all that data. An archive timestamp may beinferred from other information.repeatedly applied after long periods to maintain validity when electronic signature and timestamping algorithms weaken. ThecrlIdentifier isadditional data required toidentifycreate theCRL usingforms of electronic signature identified above is carried as unsigned attributes associated with an individual signature by being placed in theissuer name andunsignedAttrs field of SignerInfo. Thus all theCRL issued time which must correspondattributes defined in clause 4 are unsigned attributes. NOTE: Where multiple signatures are tothe time "thisUpdate" containedbe supported, as described inthe issued CRL. The crlListIDclause 3.13, each signature has a separate SignerInfo. Thus, each signature requires its own unsigned attribute values to create ES-T, ES-C etc. 4.1 Electronic Signature Timestamp An Electronic Signature with Timestamp is anunsigned attribute. In the case thatElectronic Signature for which part, but not all, of theidentified CRLadditional data required for validation isa Delta CRL then references to the set of CRLs to provide a completeavailable (e.g. some certificates and revocationlist must be included.information is available but not all). TheOcspIdentifierminimum structure Timestamp validation data isto identify the OSCP response usingtheissuer name andSignature Timestamp Attribute as defined in clause 4.1.1 over thetime of issueES signature value. 4.1.1 Signature Timestamp Attribute Definition The Signature Timestamp attribute is timestamp of theOCSP response which must correspond to the time "producedAt" contained in the issued OCSP response. Since it may be needed to make the difference between two OCSP responses received within the same second, then the hashsignature value. It is an unsigned attribute. Several instances ofthe response contained in the OcspResponsesIDthis attribute from different TSAs maybe needed to solve the ambiguity.occur with an electronic signature. ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page33]30] Internet Draft Electronic Signature FormatsNOTE: Copies of the CRL and OCSP responses values may be held using the Revocation Values attribute defined in clause 4.3.2. OtherRevRefs ::= SEQUENCE { otherRevRefType OtherRevRefType, otherRevRefs ANY DEFINED BY otherRevRefType } OtherRevRefType ::= OBJECT IDENTIFIERThesyntax and semantics of other revocation references is outsideSignature Validation Policy specifies, in thescope of this document. The definitionsignatureTimestampDelay field of TimestampTrustConditions, a maximum acceptable time difference which is allowed between thesyntax oftime indicated in theother form of revocation information is as identified by OtherRevRefType. 4.3 Extended Validation Data 4.3.1 Certificate Values Attribute Definition The Certificate Values attribute is an unsigned attribute. Only a single instance of thissigning time attributemust occur with an electronic signature. It holdsand thevalues of certificates referenced intime indicated by theCompleteCertificateRefsSignature Timestamp attribute.Note:Ifan Attribute Certificate is used, it is not provided inthisstructure butdelay is exceeded then the electronic signature must beprovided by the signerconsidered asa signer-attributes attribute (see clause 12.3).invalid. The following object identifier identifies theCertificateValuesSignature Timestamp attribute:id-aa-ets-certValuesid-aa-signatureTimeStampToken OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2)23}14} Thecertificate valuesSignature timestamp attribute value hastheASN.1syntax CertificateValues CertificateValuestype SignatureTimeStampToken. SignatureTimeStampToken ::=SEQUENCE OF Certificate Certificate is defined in clause 10.1 (which is as defined in ITU-T Recommendation X.509 [1]) ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 34] Internet Draft Electronic Signature Formats 4.3.2 Revocation Values Attribute DefinitionTimeStampToken TheRevocation Values attribute is an unsigned attribute. Only a single instancevalue ofthis attributemessageImprint field within TimeStampToken mustoccur with an electronic signature. It holds the valuesbe a hash ofCRLs and OCSP referenced in the CompleteRevocationRefs attribute. The following object identifier identifiestheCertificateValues attribute: id-aa-ets-revocationValues OBJECT IDENTIFIER ::= { iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 24} The revocation values attributevaluehasof signature field within SignerInfo for theASN.1 syntax RevocationValues RevocationValues ::= SEQUENCE { crlVals [0] SEQUENCE OF CertificateList OPTIONAL, ocspVals [1] SEQUENCE OF BasicOCSPResponse OPTIONAL, otherRevVals [2] OtherRevVals } OtherRevVals ::= SEQUENCE { otherRevValType OtherRevValType, otherRevVals ANY DEFINED BY otherRevValType } OtherRevValType ::= OBJECT IDENTIFIER The syntaxsignedData being timestamped. For further information andsemanticsdefinition of TimeStampToken see [TSP] 4.2 Complete Validation Data An electronic signature with complete validation data is an Electronic Signature for which all theotheradditional data required for validation (i.e. all certificates and revocationvaluesinformation) isoutsideavailable. Complete validation data (ES-C) build on thescope of this document.electronic signature Timestamp as defined above. Thedefinition of the syntaxminimum structure of a Complete validation data is: * theother form of revocation information isSignature Timestamp Attribute, asidentified by OtherRevRefType. CertificateList isdefined in clause10.2 (which4.1.1; * Complete Certificate Refs, as defined inITU-T Recommendation X.509 [1]). BasicOCSPResponse is defined inclause10.3 (which4.2.1; * Complete Revocation Refs, as defined in??? RFC 2560 [8] ???). 4.3.3 ES-C Timestamp Attribute Definition This attribute is used for the Type 1 X-Timestamped validation data.clause 4.2.2. TheES-C Timestamp attribute is an unsigned attribute. It is timestamp of a hash of the electronic signature and the completeComplete validation data(ES-C). It is a special purpose TimeStampToken Attribute which timestampsMAY also include theES-C. Several instances instance of this attributefollowing additional information, forming a X-Long validation data, for use if later validation processes mayoccur with an electronic signature from different TSAs.not have access to this information: * Complete Certificate Values, as defined in clause 4.2.3; * Complete Revocation Values, as defined in clause 4.2.4. The Complete validation data MAY also include one of the followingobject identifier identifiesadditional attributes, forming a X-Timestamp validation data, to provide additional protection against later CA compromise and provide integrity of the validation data used: * ES-CTimestamp attribute: id-aa-ets-escTimeStamp OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 25}Timestamp, as defined in clause 4.2.5; or * Time-Stamped Certificates and CRLs references, as defined in clause 4.2.6. ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page35]31] Internet Draft Electronic Signature FormatsThe ES-C timestamp attribute value hasNOTE 1: As long as theASN.1 syntax ESCTimeStampToken. ESCTimeStampToken ::= TimeStampToken The value of messageImprint field within TimeStampToken mustCA's are trusted such that these keys cannot bea hash of the concatenated values (without the typecompromised orlength encoding for that value) ofthefollowing data objects as present incryptography used broken, theES with CompleteES-C provides long term proof of a valid electronic signature. A valid electronic signature is an electronic signature which passes validationdata (ES-C): *according to a signaturefield within SignerInfo; * SignatureTimeStampToken attribute; * CompleteCertificateRefs attribute; * CompleteRevocationRefs attribute. For further information and definition ofvalidation policy. NOTE 2: The ES-C provides theTime Stamp Token see clause [TSP]. Temp note ;reffollowing important property for long standing signatures; that is having been found once totimestamping doc required. 4.3.4 Time-Stamped Certificates and CRLsbe valid, must continue to be so months or years later. Long after the validity period of the certificates have expired, or after the user key has been compromised. 4.2.1 Complete Certificate Refs Attribute DefinitionThis attribute is used for the Type 2 X-Timestamp validation data. A TimestampedCertsCRLsRefThe Complete Certificate Refs attribute is an unsigned attribute. Itis a listreferences the full set ofreferencedCA certificatesand OCSP responses/CRLs which arethat have beentimestampedused toprotect against certain CA compromises. Its syntax is as follows:validate a ES with Complete validation data (ES-C) up to (but not including) the signer's certificate. Only a single instance of this attribute must occur with an electronic signature. Note: Thefollowing object identifier identifiessigner's certified is referenced in theTimestampedCertsCRLsRef attribute: id-aa-ets-certCRLTimestampsigning certificate attribute (see clause 3.1). id-aa-ets-certificateRefs OBJECT IDENTIFIER ::= { iso(1)member- body(2)member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2)26}21} The complete certificate refs attribute value has the ASN.1 syntaxTimestampedCertsCRLs. TimestampedCertsCRLsCompleteCertificateRefs. CompleteCertificateRefs ::=TimeStampTokenSEQUENCE OF OTHERCertID OTHERCertID is defined in clause 3.8.2. Thevalue of messageImprint field within TimeStampTokenIssuerSerial that must beapresent in OTHERCertID. The certHash must match the hash of theconcatenated values (without the type or length encoding for that value)certificate referenced. NOTE: Copies of thefollowing data objects as present incertificate values may be held using theES withCertificate Values attribute defined in clause 4.3.1. 4.2.2 Completevalidation data (ES-C): * CompleteCertificateRefs attribute; * CompleteRevocationRefs attribute. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 36] Internet Draft Electronic Signature Formats 4.4 Archive Validation Data Where an electronic signature is required to last for a very long time, and a the timestamp on an electronic signature is in danger of being invalidated due to algorithm weakness or limits in the validity period of the TSA certificate, then it may be required to timestamp the electronic signature several times. When this is required an archive timestamp attribute may be required. This timestamp may be repeatedly applied over a period of time. 4.4.1 Archive TimestampRevocation Refs Attribute Definition TheArchive Timestamp attribute is timestamp of the user data and the entire electronic signature. If the Certificate values andComplete RevocationValues attributes are not present these attributes must be added to the electronic signature prior to the timestamp. The Archive TimestampRefs attribute is an unsigned attribute.Several instancesOnly a single instance of this attributemaymust occur withonan electronicsignature both over timesignature. It references the full set of the CRL or OCSP responses that have been used in the validation of the signer andfrom different TSAs.CA certificates used in ES with Complete validation data. The following object identifier identifies theNested Archive TimestampCompleteRevocationRefs attribute:id-aa-ets-archiveTimestampid-aa-ets-revocationRefs OBJECT IDENTIFIER ::= { iso(1)member- body(2)member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2)27} Archive timestamp22} ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 32] Internet Draft Electronic Signature Formats The complete revocation refs attributevalues havevalue has the ASN.1 syntaxArchiveTimeStampToken ArchiveTimeStampTokenCompleteRevocationRefs. CompleteRevocationRefs ::=TimeStampToken The value of messageImprint field within TimeStampTokenSEQUENCE OF CrlOcspRef CrlOcspRef ::= SEQUENCE { crlids [0] CRLListID OPTIONAL, ocspids [1] OcspListID OPTIONAL, otherRev [2] OtherRevRefs OPTIONAL } CompleteRevocationRefs mustbe a hash of the concatenated values (without the type or length encodingcontain one CrlOcspRef forthat value) ofthefollowing data objects as presentsigning certificate, followed by one for each OTHERCertID in theelectronic signature: * encapContentInfo eContent OCTET STRING; * signedAttributes; * signature field within SignerInfo; * SignatureTimeStampToken attribute; *CompleteCertificateRefsattribute; * CompleteRevocationData attribute; * CertificateValues attribute (If not already present this informationattribute. The second and subsequent CrlOcspRef fields must beincludedin theES-A); * RevocationValues attribute (If not already present this information mustsame order as the OTHERCertID to which they relate. At least one of CRLListID or OcspListID or OtherRevRefs should beincludedpresent for all but the "trusted" CA of the certificate path. CRLListID ::= SEQUENCE { crls SEQUENCE OF CrlValidatedID} CrlValidatedID ::= SEQUENCE { crlHash ETSIHash, crlIdentifier CrlIdentifier OPTIONAL} CrlIdentifier ::= SEQUENCE { crlissuer Name, crlIssuedTime UTCTime, crlNumber INTEGER OPTIONAL } OcspListID ::= SEQUENCE { ocspResponses SEQUENCE OF OcspResponsesID} OcspResponsesID ::= SEQUENCE { ocspIdentifier OcspIdentifier, ocspRepHash ETSIHash OPTIONAL } OcspIdentifier ::= SEQUENCE { ocspResponderID ResponderID, -- As in OCSP response data producedAt GeneralizedTime -- As in OCSP response data } When creating an crlValidatedID, theES-A); * ESCTimeStampToken attribute if present; * TimestampedCertsCRLs attribute if present; * any previous ArchiveTimeStampToken attributes.crlHash is computed over the entire DER encoded CRL including the signature. The crlIdentifier would normally be present unless the CRL can be inferred from other information. ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page37]33] Internet Draft Electronic Signature FormatsFor further information and definition of TimeStampToken see see [TSP] Temp note ;ref to timestamping doc requiredThetimestamp should be createdcrlIdentifier is to identify the CRL usingstronger algorithms (or longer key lengths) than intheoriginal electronic signaturesissuer name andweak algorithm (key length) timestamps . 5. Signature Policy Specification This document mandates that: * an electronic signaturethe CRL issued time which mustbe processed bycorrespond to thesigner and verifiertime "thisUpdate" contained inaccordance with the signature policy as identified bythesignature policyissued CRL. The crlListID attribute(see clause 4.1); * the signature policy must be identifiable byis anObject Identifier; * there must existunsigned attribute. In the case that the identified CRL is aspecification ofDelta CRL then references to thesignature policy; * forset of CRLs to provide agiven signature policy therecomplete revocation list must beone definitive form ofincluded. The OcspIdentifier is to identify thespecification which has a unique binary encoding; * a hashOSCP response using the issuer name and the time of issue of thedefinitive specification, using an agreed algorithm,OCSP response which mustbe provided bycorrespond to thesigner and checked bytime "producedAt" contained in theverifier (see clause 4.1). A signature policy specification includes general information aboutissued OCSP response. Since it may be needed to make thepolicy,difference between two OCSP responses received within thevalidation policy rules and other signature policy information. Clause 6 describessame second, then thekindhash ofinformation to be includedthe response contained ina signature policy. The current document does not mandatetheformOcspResponsesID may be needed to solve the ambiguity. NOTE: Copies of thesignature policy specification. The signature policyCRL and OCSP responses values may bespecified either: * in a free form document for human interpretation; or * in a structured formheld usingan agreed syntax and encoding. This document defines an ASN.1 basedthe Revocation Values attribute defined in clause 4.3.2. OtherRevRefs ::= SEQUENCE { otherRevRefType OtherRevRefType, otherRevRefs ANY DEFINED BY otherRevRefType } OtherRevRefType ::= OBJECT IDENTIFIER The syntaxthat may be used to define a structured signature policy. 5.1 Overall ASN.1 Structureand semantics of other revocation references is outside the scope of this document. Theoverall structuredefinition ofa signature policy defined using ASN.1the syntax of the other form of revocation information isgiven inas identified by OtherRevRefType. 4.3 Extended Validation Data 4.3.1 Certificate Values Attribute Definition The Certificate Values attribute is an unsigned attribute. Only a single instance of thisclause. Useattribute must occur with an electronic signature. It holds the values of certificates referenced in the CompleteCertificateRefs attribute. Note: If an Attribute Certificate is used, it is not provided in thisASN.1structureis optional. Thisbut must be provided by the signer as a signer-attributes attribute (see clause 12.3). The following object identifier identifies the CertificateValues attribute: id-aa-ets-certValues OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 23} The certificate values attribute value has the ASN.1 syntax CertificateValues. CertificateValues ::= SEQUENCE OF Certificate Certificate isencoded using the Distinguished Encoding Rules (DER).defined in RFC2459 and ITU-T Recommendation X.509 [1]) ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page38]34] Internet Draft Electronic Signature FormatsIn this structure the policy information4.3.2 Revocation Values Attribute Definition The Revocation Values attribute ispreceded byanidentifier for the hashing algorithm used to protect the signature policy and followed by the hash value whichunsigned attribute. Only a single instance of this attribute mustbe re-calculatedoccur with an electronic signature. It holds the values of CRLs andchecked wheneverOCSP referenced in thepolicy is passed betweenCompleteRevocationRefs attribute. The following object identifier identifies theissuer and signer/verifier.Revocation Values attribute: id-aa-ets-revocationValues OBJECT IDENTIFIER ::= { iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 24} Thehash is calculated withoutrevocation values attribute value has theouter type and length fields. SignaturePolicyASN.1 syntax RevocationValues. RevocationValues ::= SEQUENCE {signPolicyHashAlg AlgorithmIdentifier, signPolicyInfo SignPolicyInfo, signPolicyHash SignPolicyHash OPTIONALcrlVals [0] SEQUENCE OF CertificateList OPTIONAL, ocspVals [1] SEQUENCE OF BasicOCSPResponse OPTIONAL, otherRevVals [2] OtherRevVals }SignPolicyHash ::= OCTET STRING SignPolicyInfoOtherRevVals ::= SEQUENCE {signPolicyIdentifier SignPolicyId, dateOfIssue GeneralizedTime, policyIssuerName PolicyIssuerName, fieldOfApplication FieldOfApplication, signatureValidationPolicy SignatureValidationPolicy, signPolExtensions SignPolExtensions OPTIONALotherRevValType OtherRevValType, otherRevVals ANY DEFINED BY otherRevValType }SignPolicyIdOtherRevValType ::= OBJECT IDENTIFIER ThepolicyIssuerName field identifies the policy issuer in one or moresyntax and semantics of thegeneral name forms. PolicyIssuerName ::= GeneralNames The fieldofApplicationother revocation values isa description ofoutside theexpected applicationscope of thispolicy. FieldOfApplication ::= DirectoryStringdocument. Thesignature validation policy rules are fully processable to allowdefinition of thevalidationsyntax ofelectronic signatures issued under that signature policy. They are described intherestother form ofthis clause. 5.2 Signature Validation Policy The signature validation policy definesrevocation information is as identified by OtherRevRefType. CertificateList is defined in RFC 2459 [RFC2459] and in ITU-T Recommendation X.509 [X509]). BasicOCSPResponse is defined in RFC 2560 [OCSP]. 4.3.3 ES-C Timestamp Attribute Definition This attribute is used for thesigner which data elements must be present inType 1 X-Timestamped validation data. The ES-C Timestamp attribute is an unsigned attribute. It is timestamp of a hash of the electronic signaturehe providesandfortheverifier whichcomplete validation dataelements must be present under that signature policy for(ES-C). It is a special purpose TimeStampToken Attribute which timestamps the ES-C. Several instances instance of this attribute may occur with an electronic signatureto be potentially valid. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 39] Internet Draft Electronic Signature Formats The signature validation policy is described as follows: SignatureValidationPolicy ::= SEQUENCE { signingPeriod SigningPeriod, commonRules CommonRules, commitmentRules CommitmentRules, signPolExtensions SignPolExtensions OPTIONAL }from different TSAs. ThesigningPeriodfollowing object identifier identifies thedate and time before which the signature policy should not be used for creating signatures, and an optional date after which it should not be used for creating signatures. SigningPeriod ::= SEQUENCE { notBefore GeneralizedTime, notAfter GeneralizedTime OPTIONAL } 5.3 Common Rules The CommonRules define rules that are common to all commitment types. These rules are defined in terms of trust conditions for certificates, timestamps and attributes, along with any constraints on attributes that may be included in the electronic signature. CommonRulesES-C Timestamp attribute: id-aa-ets-escTimeStamp OBJECT IDENTIFIER ::=SEQUENCE{signerAndVeriferRules [0] SignerAndVerifierRules OPTIONAL, signingCertTrustCondition [1] SigningCertTrustCondition OPTIONAL, timeStampTrustCondition [2] TimestampTrustCondition OPTIONAL, attributeTrustCondition [3] AttributeTrustCondition OPTIONAL, algorithmConstraintSet [4] AlgorithmConstraintSet OPTIONAL, signPolExtensions [5] SignPolExtensions OPTIONAL } If a field is present in CommonRules then the equivalent field must not be present in any of the CommitmentRules (see below). If any of the following fields are not present in CommonRules then it must be present in each CommitmentRule: * signerAndVeriferRules; * signingCertTrustCondition; * timeStampTrustCondition.iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 25} ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page40]35] Internet Draft Electronic Signature Formats5.4 Commitment RulesTheCommitmentRules consists ofES-C timestamp attribute value has thevalidation rules which apply to given commitment types: CommitmentRulesASN.1 syntax ESCTimeStampToken. ESCTimeStampToken ::=SEQUENCE OF CommitmentRuleTimeStampToken TheCommitmentRule for given commitment types are defined in termsvalue oftrust conditions for certificates, timestamps and attributes, along with any constraints on attributes that maymessageImprint field within TimeStampToken must beincluded in the electronic signature. CommitmentRule ::= SEQUENCE { selCommitmentTypes SelectedCommitmentTypes, signerAndVeriferRules [0] SignerAndVerifierRules OPTIONAL, signingCertTrustCondition [1] SigningCertTrustCondition OPTIONAL, timeStampTrustCondition [2] TimestampTrustCondition OPTIONAL, attributeTrustCondition [3] AttributeTrustCondition OPTIONAL, algorithmConstraintSet [4] AlgorithmConstraintSet OPTIONAL, signPolExtensions [5] SignPolExtensions OPTIONAL } SelectedCommitmentTypes ::= SEQUENCE OF CHOICE { empty NULL, recognizedCommitmentType CommitmentType } If the SelectedCommitmentTypes indicates "empty" then this rule applied whenacommitment type is not present (i.e.the typehash ofcommitment is indicated inthesemantics of the message). Otherwise,concatenated values (without theelectronic signature must contain a commitmenttypeindicationor length encoding for thatmust fit onevalue) of thecommitments types that are mentioned in CommitmentType. A specific commitment type identifier must not appearfollowing data objects as present inmore than one commitment rule. CommitmentType ::= SEQUENCE { identifier CommitmentTypeIdentifier, fieldOfApplication [0] FieldOfApplication OPTIONAL, semantics [1] DirectoryString OPTIONAL } The fieldOfApplication and semantics fields definethespecific useES with Complete validation data (ES-C): * signature field within SignerInfo; * SignatureTimeStampToken attribute; * CompleteCertificateRefs attribute; * CompleteRevocationRefs attribute. For further information andmeaningdefinition of thecommitment within the overall field of application definedTime Stamp Token see [TSP]. 4.3.4 Time-Stamped Certificates and CRLs Attribute Definition This attribute is used for thepolicy. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 41] Internet Draft Electronic Signature Formats 5.5 Signer and Verifier Rules The SignerAndVerifierRules consistsType 2 X-Timestamp validation data. A TimestampedCertsCRLsRef attribute is an unsigned attribute. It is a list ofsigner rulereferenced certificates andverification rulesOCSP responses/CRLs which are been timestamped to protect against certain CA compromises. Its syntax is asdefined below: SignerAndVerifierRulesfollows: The following object identifier identifies the TimestampedCertsCRLsRef attribute: id-aa-ets-certCRLTimestamp OBJECT IDENTIFIER ::=SEQUENCE{signerRules SignerRules, verifierRules VerifierRules } 5.5.1 Signer Rulesiso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 26} Thesigner rules identify: * if the eContent is empty andattribute value has thesignature is calculated using a hashASN.1 syntax TimestampedCertsCRLs. TimestampedCertsCRLs ::= TimeStampToken The value ofsigned data external to CMS structure. * the CMS signed attributes thatmessageImprint field within TimeStampToken must beprovided bya hash of thesigner under this policy; *concatenated values (without theCMS unsigned attributetype or length encoding for thatmust be provided by the signer under this policy; * whether the certificate identifiers from the full certification path up to the trust point must be provided byvalue) of thesignerfollowing data objects as present in theSigningCertificateES with Complete validation data (ES-C): * CompleteCertificateRefs attribute; *whether a signer's certificate, or all certificates in the certification pathCompleteRevocationRefs attribute. 4.4 Archive Validation Data Where an electronic signature is required to last for a very long time, and a thetrust point must be provided by the signertimestamp on an electronic signature is inthe certificates fielddanger ofSignedData. SignerRules ::= SEQUENCE { externalSignedData BOOLEAN OPTIONAL, -- True if signed data is externalbeing invalidated due toCMS structure -- False if signed data partalgorithm weakness or limits in the validity period ofCMS structure -- not present if either allowed mandatedSignedAttr CMSAttrs, -- Mandated CMS signed attributes mandatedUnsignedAttr CMSAttrs, -- Mandated CMS unsigned attributed mandatedCertificateRef [0] CertRefReq DEFAULT signerOnly, -- Mandated Certificate Reference mandatedCertificateInfo [1] CertInfoReq DEFAULT none, -- Mandated Certificate Info signPolExtensions [2] SignPolExtensions OPTIONAL } CMSAttrs ::= SEQUENCE OF OBJECT IDENTIFIER The mandatedSignedAttr field must includetheobject identifier for all those signed attributes required by this document as well as additional attributesTSA certificate, then it may be requiredby this policy.to timestamp the ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page42]36] Internet Draft Electronic Signature FormatsThe mandatedUnsignedAttr field must include the object identifier for all those unsigned attributes required by this document as well as additional attributes required this policy. For example, if aelectronic signaturetimestamp (see clause 1.1)several times. When this is requiredby the signer the object identifier for thisan archive timestamp attributemustmay beincluded. The mandatedCertificateRef identifies whether just the signer's certificate, or all the full certificate path mustrequired. This timestamp may beprovided by the signer. CertRefReq ::= ENUMERATED { signerOnly (1), -- Only reference to signer cert mandated fullPath (2) -- References for full cert path up torepeatedly applied over atrust point required }period of time. 4.4.1 Archive Timestamp Attribute Definition ThemandatedCertificateInfo field identifies whether a signer's certificate, or all certificates inArchive Timestamp attribute is timestamp of thecertification path touser data and thetrust pointentire electronic signature. If the Certificate values and Revocation Values attributes are not present these attributes must beprovided by the signer in the certificates field of SignedData. CertInfoReq ::= ENUMERATED { none (0) , -- No mandatory requirements signerOnly (1) , -- Only referenceadded tosigner cert mandated fullPath (2) -- References for full cert path upthe electronic signature prior toa -- trust point mandated } 5.5.2 Verifier Rules The verifier rules identify: *the timestamp. TheCMSArchive Timestamp attribute is an unsignedattributes that must be present underattribute. Several instances of thispolicyattribute may occur with on electronic signature both over time andmust be added by the verifier if not added byfrom different TSAs. The following object identifier identifies thesigner. VerifierRulesNested Archive Timestamp attribute: id-aa-ets-archiveTimestamp OBJECT IDENTIFIER ::=SEQUENCE{mandatedUnsignedAttr MandatedUnsignedAttr, signPolExtensions SignPolExtensions OPTIONAL } MandatedUnsignedAttriso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 27} Archive timestamp attribute values have the ASN.1 syntax ArchiveTimeStampToken ArchiveTimeStampToken ::=CMSAttrs -- Mandated CMS unsigned attributed ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 43] Internet Draft Electronic Signature Formats 5.6 Certificate and Revocation RequirementTimeStampToken TheSigningCertTrustCondition, TimestampTrustCondition and AttributeTrustCondition (defined in subsequent sub-clauses) make usevalue oftwo ASN1 structures which are defined below: CertificateTrustTrees and CertRevReq. 5.6.1 Certificate Requirements The certificateTrustTrees identifiesmessageImprint field within TimeStampToken must be asethash ofself signed certificates forthetrust points used to start (or end) certificate path processing andconcatenated values (without theinitial conditions for certificate path validation as defined RFC 2459 [7] section 5. This ASN1 structure is used to define policytype or length encoding forvalidatingthat value) of thesigning certificate,following data objects as present in theTSA's certificate andelectronic signature: * encapContentInfo eContent OCTET STRING; * signedAttributes; * signature field within SignerInfo; * SignatureTimeStampToken attribute; * CompleteCertificateRefs attribute; * CompleteRevocationData attribute; * CertificateValues attributecertificates. CertificateTrustTrees ::= SEQUENCE OF CertificateTrustPoint CertificateTrustPoint ::= SEQUENCE { trustpoint Certificate, -- self-signed certificate pathLenConstraint [0] PathLenConstraint OPTIONAL, acceptablePolicySet [1] AcceptablePolicySet OPTIONAL, -- If(If not already present"any policy" nameConstraints [2] NameConstraints OPTIONAL, policyConstraints [3] PolicyConstraints OPTIONAL } The trustPoint field gives the self signed certificate for the CA that is used as the trust point for the start of certificate path processing. The pathLenConstraint field gives the maximum number of CA certificates that maythis information must be included ina certification path following the trustpoint. A value of zero indicates that only the given trustpoint certificate and an end-entity certificate may be used. If present,thepathLenConstraint fieldES-A); * RevocationValues attribute (If not already present this information must begreater than or equal to zero. Where pathLenConstraint is not present, there is no limit to the allowed length of the certification path. PathLenConstraint ::= INTEGER (0..MAX) The acceptablePolicySet field identifiesincluded in theinitial set of certificate policies,ES-A); * ESCTimeStampToken attribute if present; * TimestampedCertsCRLs attribute if present; * any previous ArchiveTimeStampToken attributes. For further information and definition ofwhich are acceptable underTimeStampToken see [TSP] The timestamp should be created using stronger algorithms (or longer key lengths) than in thesignature policy. AcceptablePolicySet ::= SEQUENCE OF CertPolicyId CertPolicyId ::= OBJECT IDENTIFIERoriginal electronic signatures. ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page44]37] Internet Draft Electronic Signature Formats 5. Security considerations 5.1 Protection of Private Key ThenameConstraints field indicates a name space within which all subject names in subsequent certificates in a certification path must be located. Restrictions may apply to the subject distinguished name or subject alternative names. Restrictions apply only when the specified name form is present. If no namesecurity of thetype is in the certificate, the certificate is acceptable. Restrictions areelectronic signature mechanism defined interms of permitted or excluded name subtrees. Any name matching a restriction inthis document depends on theexcludedSubtrees field is invalid regardlessprivacy ofinformation appearing intheermittedSubtrees. NameConstraints ::= SEQUENCE { permittedSubtrees [0] GeneralSubtrees OPTIONAL, excludedSubtrees [1] GeneralSubtrees OPTIONAL } GeneralSubtrees ::= SEQUENCE SIZE (1..MAX) OF GeneralSubtree GeneralSubtree ::= SEQUENCE { base GeneralName, minimum [0] BaseDistance DEFAULT 0, maximum [1] BaseDistance OPTIONAL } BaseDistance ::= INTEGER (0..MAX) The policyConstraints extension constrains path processing in two ways. It can be usedsigner's private key. Implementations must take steps toprohibit policy mapping or requireensure thateach certificate in a path contain an acceptable policy identifier. The policyConstraints field, if present specifies requirement for explicit indication of the certificate policy and/or the constraints on policy mapping. PolicyConstraints ::= SEQUENCE { requireExplicitPolicy [0] SkipCerts OPTIONAL, inhibitPolicyMapping [1] SkipCerts OPTIONAL } SkipCerts ::= INTEGER (0..MAX) If the inhibitPolicyMapping field is present, the value indicates the numberprivate keys cannot be compromised. 5.2 Choice ofadditional certificatesAlgorithms Implementers should be aware thatmay appear in the path (includingcryptographic algorithms become weaker with time. As new cryptoanalysis techniques are developed and computing performance improves, thetrustpoint's self certificate) before policy mapping is no longer permitted. For example,work factor to break avalue of one indicates that policy mapping mayparticular cryptographic algorithm will reduce. Therefore, cryptographic algorithm implementations should beprocessed in certificates issued bymodular allowing new algorithms to be readily inserted. That is, implementers should be prepared for thesubjectset ofthis certificate, but not in additional certificates in the path. If the requireExplicitPolicy field is present, subsequent certificates must include an acceptable policy identifier. The valuemandatory to implement algorithms to change over time. 6. Conformance Requirements This document only defines conformance requirements up to a ES with Complete validation data (ES-C). This means that none ofrequireExplicitPolicy indicatesthenumberextended and archive forms ofadditional certificates that may appear in the path (including the trustpoint's self certificate) before an explicit policy is required. An acceptable policy identifier is the identifierElectronic Signature (ES-X, ES-A) need to be implemented to get conformance to this standard. This document mandates support for elements ofa policy required bytheusersignature policy. 6.1 Signer A system supporting signers according to this document must, at a minimum, support generation ofthe certification path or the identifieran electronic signature consisting ofa policy which has been declared equivalent through policy mapping.the following components: * The general CMS syntax and content type as defined in RFC 2630 (see clauses 4.1 and 4.2). * CMS SignedData as defined in RFC 2630 with version set to 3 and at least one SignerInfo must be present (see clauses 4.3, 4.4, 4.5, 4.6). * The following CMS Attributes as defined in RFC 2630 : - ContentType; This must always be present (see clause 3.7.1); - MessageDigest; This must always be present (see clause 3.7.2); - SigningTime; This must always be present (see clause 3.7.3). ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page45]38] Internet Draft Electronic Signature Formats5.6.2 Revocation Requirements* TheRevocRequirements field specifies minimum requirements for revocation information, obtained through CRLs and/or OCSP responses, to be usedfollowing ESS Attributes as defined inchecking the revocation status of certificates.RFC 2634 : - SigningCertificate: ThisASN1 structure is used to define policy for validating the signing certificate, the TSA's certificate and attribute certificates. CertRevReq ::= SEQUENCE { endCertRevReq RevReq, caCerts [0] RevReq } Certificate revocation requirements are specifiedmust be set as defined interms of checks required on:clauses 3.8.1 and 3.8.2. *endCertRevReq: end certificates (i.e. the signers certificate, the attribute certificate or the timestamping authority certificate).The following Attributes as defined in clause 3.9: - SignaturePolicyIdentifier; This must always be present. *caCerts: CA certificates. RevReq ::= SEQUENCE { enuRevReq EnuRevReq, exRevReq SignPolExtensions OPTIONAL} An authority certificate is certificate issued to an authority (e.g. either to a certification authority or to an attribute authority (AA)). A TimeStamping Authority (TSA) is a trusted third party that creates time stamp tokensPublic Key Certificates as defined inorderITU-T Recommendation X.509 [1] and profiled in RFC 2459 [7] (see clause 9.1). 6.2 Verifier A system supporting verifiers according toindicate that a datum existedthis document must, at aparticular pointminimum, support: * Verification of the mandated components of an electronic signature, as defined intime (RFC??: "Internet X.509clause 14.1. * Signature Timestamp attribute, as defined in clause 4.1.1. * Complete Certificate Refs attribute, as defined in clause 4.2.1. * Complete Revocation Refs Attribute, as defined in clause 4.2.2. * Public KeyInfrastructureCertificates, as defined in ITU-T Recommendation X.509 and profiled in RFC 2459. * Either of: -Time Stamp Protocol"). EnuRevReq ::= ENUMERATED { clrCheck (0), --Checks must be made against current CRLs -- (or authority revocation lists (ARL)) ocspCheck (1), -- The revocation status must be checked -- using the OnlineCertificate Revocation Lists. as defined in ITU-T Recommendation X.509 [1] and profiled in RFC 2459 [7]; or - On-line Certificate Status Protocol-- (OCSP),RFC 2450. bothCheck (2), -- Both CRL and OCSP checks must be carried out eitherCheck (3), -- At least one of CRL or OCSP checks must be -- carried out noCheck (4), -- no check is mandated other (5) -- Other mechanismresponses, as definedby signature poilicy -- extension }in RFC 2560. ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page46]39] Internet Draft Electronic Signature FormatsRevocation requirements are specified7. References [RFC2119] Bradner, S., "Key words for use interms of: * clrCheck: Checks must be made against current CRLs (or authority revocation lists); * ocspCheck: The revocation status must be checked using the Online CertificateRFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. [ESS] P. Hoffman, "Enhanced Security Services for S/MIME", RFC 2634, June 1999 [CMS] R. Housley, "Cryptographic Message Syntax", RFC 2630, June 1999. [OCSP] M. Myers, R. Ankney, A. Malpani, S. Galperin, C. Adams. On-line Status Certificate Protocol, RFC 2560. [TSP] C. Adams, P. Cain, D. Pinkas, R. Zuccherato. Time Stamp Protocol(RFC 2450); * bothCheck: Both OCSP and CRL checks must be carried out; * eitherCheck: Either OCSP or CRL checks must be carried out; * noCheck: No check is mandated. 5.7 Signing(TSP), (under progress). June 2000. [PTS] Public Telegram Service. ITU-T Recommendation F1. XXXX [RFC2459] R. Housley, W. Ford, W. Polk, D. Solo, "Internet X.509 Public Key Infrastructure, CertificateTrust Conditions The SigningCertTrustCondition field identifies trust conditions for certificate path processing used to validate the signing certificate. SigningCertTrustCondition ::= SEQUENCE { signerTrustTrees CertificateTrustTrees, signerRevReq CertRevReq } 5.8 TimeStamp Trust Conditions The TimeStampTrustCondition field identifies trust conditions for certificate path processing used to authenticate the timstamping authorityandconstraints on the nameCRL Profile," RFC 2459, January 1999. [PKCS9] RSA Laboratories, "The Public-Key Cryptography Standards (PKCS)", RSA Data Security Inc., Redwood City, California, November 1993 Release. [ISONR] ISO/IEC 10181-5: Security Frameworks in Open Systems. Non-Repudiation Framework. April 1997. [ES201733] ETSI Standard ES 201 733 V1.1.3 (2000-05) Electronic Signature Formats. Note: copies of ETSI ES 210 733 can be freely downloaded from thetimestamping authority.ETSI web site www.etsi.org. 8. Authors' Addresses Thisapplies to the timestamp that must be present in every ES-T. TimestampTrustCondition ::= SEQUENCE { ttsCertificateTrustTrees [0] CertificateTrustTrees OPTIONAL, ttsRevReq [1] CertRevReq OPTIONAL, ttsNameConstraints [2] NameConstraints OPTIONAL, cautionPeriod [3] DeltaTime OPTIONAL, signatureTimestampDelay [4] DeltaTime OPTIONAL } DeltaTime ::= SEQUENCE { deltaSeconds INTEGER, deltaMinutes INTEGER, deltaHours INTEGER, deltaDays INTEGER } If ttsCertificateTrustTrees is not present then the same rule as definedInformational RFC has been produced incertificateTrustCondition applies to certification of the timestamping authorities public key.ETSI TC-SEC. ETSI F-06921 Sophia Antipolis, Cedex - FRANCE 650 Route des Lucioles - Sophia Antipolis Valbonne - France Tel: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16 secretariat@etsi.fr http://www.etsi.org ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page47]40] Internet Draft Electronic Signature Formats Contact Point Harri Rasilainen ETSI 650 Route des Lucioles F-06921 Sophia Antipolis, Cedex FRANCE harri.rasilainen@etsi.fr Denis Pinkas Bull S.A. 12, rue de Paris B.P. 59 78231 Le Pecq FRANCE Denis.Pinkas @bull.net John Ross Security & Standards 192 Moulsham Street Chelmsford, Essex CM2 0LG United Kingdom ross@secstan.com Nick Pope Security & Standards 192 Moulsham Street Chelmsford, Essex CM2 0LG United Kingdom pope@secstan.com 9. Full Copyright Statement Copyright (C) ThetstrRevReq specifies minimum requirements for revocation information, obtained through CRLs and/or OCSP responses,Internet Society (2000). All Rights Reserved. This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may beusedprepared, copied, published and distributed, inchecking the revocation statuswhole or in part, without restriction ofthe time stampany kind, provided thatmust be present intheES-T. If ttsNameConstraints is not present then thereabove copyright notice and this paragraph areno additional naming constraintsincluded onthe trusted timestamping authority other than those implied by the ttsCertificateTrustTrees. The cautionPeriod field specifies a caution period after the signing time that it is mandated the verifier must wait to get high assurance of the validity of the signer's keyall such copies andthat any relevant revocation has been notified. The revocation status information forming the ES with Complete validation data mustderivative works. However, this document itself may not becollected and used to validate the electronic signature until after this caution period. The signatureTimestampDelay field specifies a maximum acceptable time between the signing time and the time at which the signature timestamp,modified in any way, such asusedby removing the copyright notice or references toformtheES Timestamped, is createdInternet Society or other Internet organizations, except as needed for theverifier. If the signature timestamp is later that the timepurpose of developing Internet standards in which case thesigning-time attribute by more than the value givenprocedures for copyrights defined insignatureTimestampDelay,thesignatureInternet Standards process must beconsidered invalid. 5.9 Attribute Trust Conditions If the attributeTrustCondition field is not present then any certified attributes may not consideredfollowed, or as required tobe valid under this validation policy.translate it into languages other than English. ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 41] Internet Draft Electronic Signature Formats TheAttributeTrustCondition field is defined as follows: AttributeTrustCondition ::= SEQUENCE { attributeMandated BOOLEAN, -- Attribute mustlimited permissions granted above are perpetual and will not bepresent howCertAttribute HowCertAttribute, attrCertificateTrustTrees [0] CertificateTrustTrees OPTIONAL, attrRevReq [1] CertRevReq OPTIONAL, attributeConstraints [2] AttributeConstraints OPTIONAL } If attributeMandated is true then an attribute, certified withinrevoked by thefollowing constraints, must be present. If false, thenInternet Society or its successors or assigns. This document and thesignatureinformation contained herein isstill valid if no attribute is specified. The howCertAttribute field specifies whether attributes uncertified attributes "claimed" by the signer, or certified inprovided on anattribute certificate or either using the signer attributes attribute defined in 4.12.3. HowCertAttribute ::= ENUMERATED { claimedAttribute (0), certifiedAttribtes (1), either (2) }"AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page48]42] Internet Draft Electronic Signature FormatsThe attrCertificateTrustTrees specifies certificate path conditions for any attribute certificate. If not presentAnnex A (normative): ASN.1 Definitions This annex provides a summary of all thesame rules apply asASN.1 syntax definitions for new syntax defined incertificateTrustCondition.this document. A.1 Definitions Using X.208 (1988) ASN.1 Syntax NOTE: TheattrRevReq specifies minimum requirements for revocation information, obtained through CRLs and/or OCSP responses, to be usedASN.1 module defined in clause A.1 has precedence over that defined in Annex A-2 incheckingtherevocation statuscase ofAttribute Certificates, ifanyare present. If the attributeConstraints field is not present then there are no constraints on the attributes that may be validated under this policy. The attributeConstraints field is defined as follows: AttributeConstraints ::= SEQUENCEconflict. ETS-ElectronicSignatureFormats-88syntax {attributeTypeConstarints [0] AttributeTypeConstraints OPTIONAL, attributeValueConstarints [1] AttributeValueConstraints OPTIONAL } If present, the attributeTypeConstarints field specifies the attribute types which are considered valid under the signature policy. Any value for that attribute is considered valid. AttributeTypeConstraintsiso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-mod(0) 5} DEFINITIONS EXPLICIT TAGS ::=SEQUENCE OF AttributeType If present, the attributeTypeConstraints field specifies the specific attribute values which are considered valid under the signature policy. AttributeValueConstraints ::= SEQUENCE OF AttributeTypeAndValue 5.10 Algorithm Constraints The algorithmConstrains fields, if present, identifies the signing algorithms (hash, public key cryptography, combined hash and public key cryptography) that may be used for specific purposes and any minimum length. If this field is not present then the policy applies no constraints. AlgorithmConstraintSet ::= SEQUENCE {BEGIN --Algorithm constrains on: signerAlgorithmConstraints [0] AlgorithmConstraints OPTIONAL,EXPORTS All - IMPORTS --signer eeCertAlgorithmConstraints [1] AlgorithmConstraints OPTIONAL,Crypographic Message Syntax (CMS): RFC 2630 ContentInfo, ContentType, id-data, id-signedData, SignedData, EncapsulatedContentInfo, SignerInfo, id-contentType, id-messageDigest, MessageDigest, id-signingTime, SigningTime, id-countersignature, Countersignature FROM CryptographicMessageSyntax { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) modules(0) cms(1) } --issuer of end entity certs. caCertAlgorithmConstraints [2] AlgorithmConstraints OPTIONAL,ESS Defined attributes: RFC 2634 --issuer of CA certificates aaCertAlgorithmConstraints [3] AlgorithmConstraints OPTIONAL,(Enhanced Security Services for S/MIME) id-aa-signingCertificate, SigningCertificate, IssuerSerial, id-aa-contentReference, ContentReference, id-aa-contentIdentifier, ContentIdentifier FROM ExtendedSecurityServices { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) modules(0) ess(2) } --Attribute Authority tsaCertAlgorithmConstraints [4] AlgorithmConstraints OPTIONALInternet X.509 Public Key Infrastructure --TimeStamping Authority }Certificate and CRL Profile: RFC 2459 Certificate, AlgorithmIdentifier, CertificateList, Name, GeneralNames, GeneralName, DirectoryString,Attribute, AttributeTypeAndValue, AttributeType, AttributeValue, PolicyInformation, BMPString, UTF8String ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page49]43] Internet Draft Electronic Signature FormatsAlgorithmConstraints ::= SEQUENCE OF AlgAndLength AlgAndLength ::= SEQUENCE { algID OBJECT IDENTIFIER, minKeyLength INTEGER OPTIONAL,FROM PKIX1Explicit88 {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-explicit- 88(1)} --Minimum key length in bits other SignPolExtensions OPTIONAL } An Attribute Authority (AA)is authority which assigns privileges by issuing attribute certificates 5.11 Signature Policy Extensions Additional signature policy rules may be added to: * the overall signature policy structure, as defined in clause 5.1; * the signature validation policy structure, as defined in clause 5.2; * the common rules, asX.509 '97 Authentication Framework AttributeCertificate FROM AuthenticationFramework {joint-iso-ccitt ds(5) module(1) authenticationFramework(7) 3} -- The imported AttributeCertificate is definedin clause 5.3; *using thecommitment rules, as defined in clause 5.4; * the signer rules, as defined in clause 5.5.1; * the verifier rules, as defined in clause 5.5.2; * the revocation requirements in clause 5.6.2; * the algorithm constraints in clause 5.10. These extensions to the signature policy rules must be defined usingX.680 1997 -- ASN.1 Syntax, -- an equivalent using the 88 ASN.1 syntaxwith an associated object identifier carriedmay be used. -- OCSP 2560 BasicOCSPResponse, ResponderID FROM OCSP {-- OID not assigned -- } -- Time Stamp Protocol Internet Draft TimeStampToken FROM PKIXTSP {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-mod-tsp(13)} -- S/MIME Object Identifier arcs used inthe SignPolExtn as defined below: SignPolExtensionsthis document -- =================================================== -- S/MIME OID arc used in this document -- id-smime OBJECT IDENTIFIER ::=SEQUENCE OF SignPolExtn SignPolExtn{ iso(1) member-body(2) -- us(840) rsadsi(113549) pkcs(1) pkcs-9(9) 16 } -- S/MIME Arcs -- id-mod OBJECT IDENTIFIER ::=SEQUENCE{extnIDid-smime 0 } -- modules -- id-ct OBJECTIDENTIFIER, extnValue OCTET STRINGIDENTIFIER ::= { id-smime 1 }The extnID field must contain the object-- content types -- id-aa OBJECT IDENTIFIER ::= { id-smime 2 } -- attributes -- id-spq OBJECT IDENTIFIER ::= { id-smime 5 } -- signature policy qualifier -- id-cti OBJECT IDENTIFIER ::= { id-smime 6 } -- commitment type identifierfor the extension. The extnValue field must contain the DER (see ITU-T Recommendation X.690 [4]) encoded valueETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 44] Internet Draft Electronic Signature Formats -- Definitions ofthe extension.Object Identifier arcs used in this document -- =========================================================== -- Thedefinition of an extension, as identified by extnID must include a definitionallocation of OIDs to specific objects are given below with the -- associated ASN.1 syntaxand semantics of the extension. 6. Security considerations 6.1 Protection of Private Key The security of thedefinition -- OID used referencing electronic signaturemechanism definedmechanisms based on this -- standard for use with the IDUP API (see annex D) id-etsi-es-IDUP-Mechanism-v1 OBJECT IDENTIFIER ::= { itu-t(0) identified-organization(4) etsi(0) electronic-signature-standard (1733) part1 (1) idupMechanism (4)etsiESv1(1) } -- CMS Attributes Defined in this documentdepends on the privacy of the signer's private key. Implementations must take steps to ensure that private keys cannot be compromised.-- ======================================= -- Mandatory Electronic Signature Attributes -- OtherSigningCertificate id-aa-ets-otherSigCert OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-aa(2) 19 } OtherSigningCertificate ::= SEQUENCE { certs SEQUENCE OF OtherCertID, policies SEQUENCE OF PolicyInformation OPTIONAL -- NOT USED IN THIS DOCUMENT } OtherCertID ::= SEQUENCE { otherCertHash OtherHash, issuerSerial IssuerSerial OPTIONAL } OtherHash ::= CHOICE { sha1Hash OtherHashValue, -- This contains a SHA-1 hash otherHash OtherHashAlgAndValue } OtherHashValue ::= OCTET STRING OtherHashAlgAndValue ::= SEQUENCE { hashAlgorithm AlgorithmIdentifier, hashValue OtherHashValue } -- Signature Policy Identifier id-aa-ets-sigPolicyId OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-aa(2) 15 } ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page50]45] Internet Draft Electronic Signature Formats6.2 Choice of Algorithms Implementers should be aware that cryptographic algorithms become weaker with time. As new cryptoanalysis techniques are developed and computing performance improves, the work factor to break a particular cryptographic algorithm will reduce. Therefore, cryptographic algorithm implementations should be modular allowing new algorithms to be readily inserted. That is, implementers should be prepared for the set of mandatory to implement algorithms to change over time. 7. Conformance Requirements This document only defines conformance requirements up to a ES with Complete validation data (ES-C). This means that none of the extended and archive forms ofSignaturePolicyIdentifier ::= SEQUENCE { sigPolicyIdentifier SigPolicyId, sigPolicyHash SigPolicyHash, sigPolicyQualifiers SEQUENCE SIZE (1..MAX) OF SigPolicyQualifierInfo OPTIONAL } SigPolicyId ::= OBJECT IDENTIFIER SigPolicyHash ::= ETSIHashAlgAndValue SigPolicyQualifierInfo ::= SEQUENCE { sigPolicyQualifierId SigPolicyQualifierId, sigQualifier ANY DEFINED BY sigPolicyQualifierId } SigPolicyQualifierId ::= OBJECT IDENTIFIER id-spq-ets-uri OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-spq(5) 1 } SPuri ::= IA5String id-spq-ets-unotice OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-spq(5) 2 } SPUserNotice ::= SEQUENCE { noticeRef NoticeReference OPTIONAL, explicitText DisplayText OPTIONAL } NoticeReference ::= SEQUENCE { organization DisplayText, noticeNumbers SEQUENCE OF INTEGER } DisplayText ::= CHOICE { visibleString VisibleString (SIZE (1..200)), bmpString BMPString (SIZE (1..200)), utf8String UTF8String (SIZE (1..200)) } ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 46] Internet Draft Electronic Signature Formats -- Optional Electronic Signature(ES-X, ES-A) need to be implemented to get conformance to this standard. This document mandates support for elements of the signature policy. 7.1 Signer A system supporting signers according to this document must, at a minimum, support generation of an electronic signature consisting of the following components: * The general CMS syntax and content type as defined in RFC 2630 (see clauses 4.1 and 4.2). * CMS SignedData as defined in RFC 2630 with version set to 3 and at least one SignerInfo must be present (see clauses 4.3, 4.4, 4.5, 4.6). * The following CMSAttributesas defined in RFC 2630 : - ContentType; This must always be present (see clause 3.7.1); - MessageDigest; This must always be present (see clause 3.7.2); - SigningTime; This must always be present (see clause 3.7.3). * The following ESS Attributes as defined in RFC 2634 : - SigningCertificate: This must be set as defined in clauses 3.8.1 and 3.8.2. * The following Attributes as defined in clause 3.9: - SignaturePolicyIdentifier; This must always be present. * Public Key Certificates as defined in ITU-T Recommendation X.509 [1] and profiled in RFC 2459 [7] (see clause 9.1).-- Commitment Type id-aa-ets-commitmentType OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 16} CommitmentTypeIndication ::= SEQUENCE { commitmentTypeId CommitmentTypeIdentifier, commitmentTypeQualifier SEQUENCE SIZE (1..MAX) OF CommitmentTypeQualifier OPTIONAL } CommitmentTypeIdentifier ::= OBJECT IDENTIFIER CommitmentTypeQualifier ::= SEQUENCE { commitmentTypeIdentifier CommitmentTypeIdentifier, qualifier ANY DEFINED BY commitmentTypeIdentifier } id-cti-ets-proofOfOrigin OBJECT IDENTIFIER ::= { iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 1} id-cti-ets-proofOfReceipt OBJECT IDENTIFIER ::= { iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 2} id-cti-ets-proofOfDelivery OBJECT IDENTIFIER ::= { iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 3} id-cti-ets-proofOfSender OBJECT IDENTIFIER ::= { iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 4} id-cti-ets-proofOfApproval OBJECT IDENTIFIER ::= { iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 5} id-cti-ets-proofOfCreation OBJECT IDENTIFIER ::= { iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 6} ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page51]47] Internet Draft Electronic Signature Formats7.2 Verifier A system supporting verifiers according to this document must,-- Signer Location id-aa-ets-signerLocation OBJECT IDENTIFIER ::= { iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 17} SignerLocation ::= SEQUENCE { -- ata minimum, support: * Verificationleast one of themandated components of an electronic signature, as defined in clause 14.1. * Signature Timestamp attribute, as defined in clause 5.1.1. * Complete Certificate Refs attribute,following must be present countryName [0] DirectoryString OPTIONAL, -- asdefinedused to name a Country inclause 5.2.1. * Complete Revocation Refs Attribute,X.500 localityName [1] DirectoryString OPTIONAL, -- asdefinedused to name a locality inclause 5.2.2. * Public Key Certificates,X.500 postalAdddress [2] PostalAddress OPTIONAL } PostalAddress ::= SEQUENCE SIZE(1..6) OF DirectoryString -- Signer Attributes id-aa-ets-signerAttr OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 18} SignerAttribute ::= SEQUENCE OF CHOICE { claimedAttributes [0] ClaimedAttributes, certifiedAttributes [1] CertifiedAttributes } ClaimedAttributes ::= SEQUENCE OF Attribute CertifiedAttributes ::= AttributeCertificate -- as defined inITU-T RecommendationX.509and profiled in: see section 10.3 -- Content Timestamp id-aa-ets-contentTimestamp OBJECT IDENTIFIER ::= { iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 20} ContentTimestamp::= TimeStampToken -- Validation Data -- Signature Timestamp id-aa-signatureTimeStampToken OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 14} SignatureTimeStampToken ::= TimeStampToken ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC2459 (see clause 10.1) * Either of: -[Page 48] Internet Draft Electronic Signature Formats -- Complete Certificate Refs. id-aa-ets-certificateRefs OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 21} CompleteCertificateRefs ::= SEQUENCE OF OTHERCertID -- Complete RevocationLists. as defined in ITU-T Recommendation X.509Refs id-aa-ets-revocationRefs OBJECT IDENTIFIER ::= { iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 22} CompleteRevocationRefs ::= SEQUENCE OF CrlOcspRef CrlOcspRef ::= SEQUENCE { crlids [0] CRLListID OPTIONAL, ocspids [1]and profiled in RFC 2459 [7] (see clause 10.2); Or - On-line Certificate Status Protocol,OcspListID OPTIONAL, otherRev [2] OtherRevRefs OPTIONAL } CRLListID ::= SEQUENCE { crls SEQUENCE OF CrlValidatedID} CrlValidatedID ::= SEQUENCE { crlHash ETSIHash, crlIdentifier CrlIdentifier OPTIONAL } CrlIdentifier ::= SEQUENCE { crlissuer Name, crlIssuedTime UTCTime, crlNumber INTEGER OPTIONAL } OcspListID ::= SEQUENCE { ocspResponses SEQUENCE OF OcspResponsesID} OcspResponsesID ::= SEQUENCE { ocspIdentifier OcspIdentifier, ocspRepHash ETSIHash OPTIONAL } OcspIdentifier ::= SEQUENCE { ocspResponderID ResponderID, -- asdefined in RFC 2560 (see clause 10.3). 7.3 Signature Policy Both signer and verifier systems must be able to process an electronic signatureinaccordance with the specification of at least one signature policy,OCSP response data producedAt GeneralizedTime -- asidentified by the signature policy attribute (see clause 4.9.1). 8. References [RFC2510] C. Adams, S. Farrell, "Internet X.509 Public Key Infrastructure, Certificate Management Protocols," RFC 2510, March 1999. [RFC2119] Bradner, S., "Key words for useinRFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. [RFC2246] T. Dierks, C. Allen, "The TLS Protocol, Version 1.0," RFC 2246, January 1999. [RFC 2634] P. Hoffman, "Enhanced Security Services for S/MIME", [RFC 2630] R. Housley, "Cryptographic Message Syntax", RFC 2630, June 1999.OCSP response data } ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page52]49] Internet Draft Electronic Signature Formats[RFC2459] R. Housley, W. Ford, W. Polk, D. Solo, "Internet X.509 Public Key Infrastructure,OtherRevRefs ::= SEQUENCE { otherRevRefType OtherRevRefType, otherRevRefs ANY DEFINED BY otherRevRefType } OtherRevRefType ::= OBJECT IDENTIFIER -- Certificateand CRL Profile," RFC 2459, January 1999. [PKCS9] RSA Laboratories, "The Public-Key Cryptography Standards (PKCS)", RSA Data Security Inc., Redwood City, California, November 1993 Release. [ISONR] ISO/IEC 10181-5: Security Frameworks in Open Systems. Non-Repudiation Framework. April 1997. 9. Authors' Addresses This Informational RFC has been produced in ETSI TC-SEC. ETSI F-06921 Sophia Antipolis, Cedex - FRANCE 650 Route des Lucioles - Sophia Antipolis Valbonne - France Tel: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16 secretariat@etsi.fr http://www.etsi.org ETSI Contact Point Harri RasilainenValues id-aa-ets-certValues OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 23} CertificateValues ::= SEQUENCE OF Certificate -- Certificate Revocation Values id-aa-ets-revocationValues OBJECT IDENTIFIER ::= { iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 24} RevocationValues ::= SEQUENCE { crlVals [0] SEQUENCE OF CertificateList OPTIONAL, ocspVals [1] SEQUENCE OF BasicOCSPResponse OPTIONAL, otherRevVals [2] OtherRevVals } OtherRevVals ::= SEQUENCE { otherRevValType OtherRevValType, otherRevVals ANY DEFINED BY otherRevValType } OtherRevValType ::= OBJECT IDENTIFIER -- ES-C Timestamp id-aa-ets-escTimeStamp OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 25} ESCTimeStampToken ::= TimeStampToken -- Time-Stamped Certificates and CRLs id-aa-ets-certCRLTimestamp OBJECT IDENTIFIER ::= { iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 26} TimestampedCertsCRLs ::= TimeStampToken ETSIF-06921 Sophie Antipolis 650 Route des Lucioles Sophia Antipolis, Valbonne FRANCE harri.rasilainen@etsi.fr Additional Contact Points John Ross Security & Standards 192 Moulsham Street Chelmsford, Essex CM2 0LG United Kingdom ross@secstan.com Denis Pinkas NickTC-SEC, Pinkas, Ross, PopeBull S.A. Security & Standards 12, rue de Paris 192 Moulsham Street B.P. 59 Chelmsford, Essex 78231 Le Pecq CM2 0LG FRANCE United Kingdom pinkas.denis@bull.net pope@secstan.comInformational RFC [Page 50] Internet Draft Electronic Signature Formats -- Archive Timestamp id-aa-ets-archiveTimestamp OBJECT IDENTIFIER ::= { iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 27} ArchiveTimeStampToken ::= TimeStampToken END -- ETS-ElectronicSignatureFormats-88syntax -- ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page53]51] Internet Draft Electronic Signature Formats10. Full Copyright Statement Copyright (C)A.2 Definitions Using X.680 1997 ASN.1 Syntax NOTE: TheInternet Society (2000). All Rights Reserved. This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole orASN.1 module defined inpart, without restriction of any kind, providedclause A.1 has precedence over thatthe above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modifieddefined inany way, such as by removing the copyright notice or references to the Internet Society or other Internet organizations, except as needed for the purpose of developing Internet standardsclause A.2 inwhich casetheprocedurescase of any conflict. ETS-ElectronicSignatureFormats-97Syntax { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-mod(0) 6} DEFINITIONS EXPLICIT TAGS ::= BEGIN -- EXPORTS All - IMPORTS -- Cryptographic Message Syntax (CMS): RFC 2630 ContentInfo, ContentType, id-data, id-signedData, SignedData, EncapsulatedContentInfo, SignerInfo, id-contentType, id-messageDigest, MessageDigest, id-signingTime, SigningTime, id-countersignature, Countersignature FROM CryptographicMessageSyntax { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) modules(0) cms(1) } -- ESS Defined attributes: RFC 2634 (Enhanced Security Services -- forcopyrights defined in theS/MIME) id-aa-signingCertificate, SigningCertificate, IssuerSerial, id-aa-contentReference, ContentReference, id-aa-contentIdentifier, ContentIdentifier FROM ExtendedSecurityServices { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) modules(0) ess(2) } -- InternetStandards process must be followed, or as required to translate it into languages other than English. The limited permissions granted above are perpetualX.509 Public Key Infrastructure - - Certificate andwill not be revoked by the Internet Society or its successors or assigns. This document and the information contained herein is provided on an "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 11.Temportary Issues It might be interesting to split this document into two RFCs, one RFC dealing only with ES formats, the other one only with Signature Policies. In such a case, the basis of this split will be, sections 6 and annex C will be removed from this document and placed in the another RFC dealing with Signature policies. The signature policy ASN.1 will be removed the current ASN.1 modules in annex A and placed in a new ASN.1 module in the other RFC dealing with Signature Policies. Opinions are requested on this issue.CRL Profile:RFC 2459 Certificate, AlgorithmIdentifier, CertificateList, Name, GeneralNames, GeneralName, DirectoryString, Attribute, AttributeTypeAndValue, AttributeType, AttributeValue, PolicyInformation. FROM PKIX1Explicit93 {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-explicit-88(1)} ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page54]52] Internet Draft Electronic Signature FormatsNote: If there is a request to split-- X.509 '97 Authentication Framework AttributeCertificate FROM AuthenticationFramework {joint-iso-ccitt ds(5) module(1) authenticationFramework(7) 3} -- OCSP 2560 BasicOCSPResponse, ResponderID FROM OCSP -- { OID not assigned } -- Time Stamp Protocol Internet Draft TimeStampToken FROM PKIXTSP {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-mod-tsp(13)} -- S/MIME Object Identifier arcs used in this documentinto two RFCs, one RFC dealing with ES formats, the other with Signature policies, then the signature policy ASN.1 will be removed the current ASN.1 modules in annex A and placed in a new ASN.1 module in the other RFC dealing with Signature policies. Annex A (normative): ASN.1 Definitions This annex provides a summary of all the ASN.1 syntax definitions for new syntax defined-- =================================================== -- S/MIME OID arc used in thisdocument. A.1 Definitions Using X.208 (1988) ASN.1 Syntax NOTE: The ASN.1 module defined in clause A.1 has precedence over that defined in Annex A-2 in the case of any conflict. ETS-ElectronicSignature-88syntaxdocument -- id-smime OBJECT IDENTIFIER ::= { iso(1) member-body(2) -- us(840) rsadsi(113549) pkcs(1) pkcs-9(9)smime(16) id-mod(0) 5} DEFINITIONS EXPLICIT TAGS16 } -- S/MIME Arcs -- id-mod OBJECT IDENTIFIER ::=BEGIN{ id-smime 0 } --EXPORTS All - IMPORTSmodules --Crypographic Message Syntax (CMS): RFC 2630 ContentInfo, ContentType, id-data, id-signedData, SignedData, EncapsulatedContentInfo, SignerInfo, id-contentType, id-messageDigest, MessageDigest, id-signingTime, SigningTime, id-countersignature, Countersignature FROM CryptographicMessageSyntaxid-ct OBJECT IDENTIFIER ::= {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) modules(0) cms(1)id-smime 1 } --ESS Defined attributes: RFC 2634content types --(Enhanced Security Services for S/MIME) id-aa-signingCertificate, SigningCertificate, IssuerSerial, id-aa-contentReference, ContentReference, id-aa-contentIdentifier, ContentIdentifier FROM ExtendedSecurityServicesid-aa OBJECT IDENTIFIER ::= {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) modules(0) ess(2)id-smime 2 } -- attributes -- id-spq OBJECT IDENTIFIER ::= { id-smime 5 } -- signature policy qualifier -- id-cti OBJECT IDENTIFIER ::= { id-smime 6 } -- commitment type identifier -- Definitions of Object Identifier arcs used in this document -- =========================================================== -- The allocation of OIDs to specific objects are given below with the -- associated ASN.1 syntax definition -- OID used referencing electronic signature mechanisms based on this -- standard for use with the IDUP API (see annex D) ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page55]53] Internet Draft Electronic Signature Formats-- Internet X.509 Public Key Infrastructure - - Certificate and CRL Profile: RFC 2459 Certificate, AlgorithmIdentifier, CertificateList, Name, GeneralNames, GeneralName, DirectoryString,Attribute, AttributeTypeAndValue, AttributeType, AttributeValue, PolicyInformation, BMPString, UTF8String FROM PKIX1Explicit88 {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-explicit- 88(1)} -- X.509 '97 Authentication Framework AttributeCertificate FROM AuthenticationFramework {joint-iso-ccitt ds(5) module(1) authenticationFramework(7) 3} -- The imported AttributeCertificate is defined using the X.680 1997 -- ASN.1 Syntax, -- an equivalent using the 88 ASN.1 syntax may be used. -- OCSP 2560 BasicOCSPResponse, ResponderID FROM OCSP {-- OID not assigned --id-etsi-es-IDUP-Mechanism-v1 OBJECT IDENTIFIER ::= { itu-t(0) identified-organization(4) etsi(0) electronic-signature-standard (1733) part1 (1) idupMechanism (4)etsiESv1(1) } --Time Stamp Protocol Internet Draft -- TimeStampToken FROM TSP {-- OID not assigned -- }; -- S/MIME Object Identifier arcs usedCMS Attributes Defined in this document --========================================================================================================= --S/MIME OID arc used in this documentMandatory Electronic Signature Attributes --id-smimeOtherSigningCertificate id-aa-ets-otherSigCert OBJECT IDENTIFIER ::= { iso(1) member-body(2)--us(840) rsadsi(113549) pkcs(1)pkcs-9(9) 16pkcs9(9) smime(16) id-aa(2) 19 }-- S/MIME Arcs -- id-mod OBJECT IDENTIFIEROtherSigningCertificate ::= SEQUENCE {id-smime 0 } -- modulescerts SEQUENCE OF OtherCertID, policies SEQUENCE OF PolicyInformation OPTIONAL --id-ct OBJECT IDENTIFIERNOT USED IN THIS DOCUMENT } OtherCertID ::= SEQUENCE {id-smime 1otherCertHash OtherHash, issuerSerial IssuerSerial OPTIONAL }-- content types -- id-aa OBJECT IDENTIFIEROtherHash ::= CHOICE {id-smime 2 } -- attributessha1Hash OtherHashValue, --id-spq OBJECT IDENTIFIERThis contains a SHA-1 hash otherHash OtherHashAlgAndValue } OtherHashValue ::= OCTET STRING OtherHashAlgAndValue ::= SEQUENCE {id-smime 5hashAlgorithm AlgorithmIdentifier, hashValue OtherHashValue } --signature policy qualifier -- id-ctiSignature Policy Identifier id-aa-ets-sigPolicyId OBJECT IDENTIFIER ::= {id-smime 6iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-aa(2) 15 }-- commitment type identifier ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 56] Internet Draft Electronic Signature Formats -- Definitions of Object Identifier arcs used in this document -- ================================================================== -- The allocation of OIDs to specific objects are given below with the -- associated ASN.1 syntax definition -- OID used referencing electronic signature mechanisms based on this -- standard for use with the IDUP API (see annex D) id-etsi-es-IDUP-Mechanism-v1 OBJECT IDENTIFIER ::= { itu-t(0) identified-organization(4) etsi(0) electronic-signature-standard (1733) part1 (1) idupMechanism (4)etsiESv1(1) } -- CMS Attributes Defined in this document -- ============================================== -- Mandatory Electronic Signature Attributes -- OtherSigningCertificate id-aa-ets-otherSigCert OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-aa(2) 19 } OtherSigningCertificateSignaturePolicyIdentifier ::= SEQUENCE {certs SEQUENCE OF OtherCertID, policiessigPolicyIdentifier SigPolicyId, sigPolicyHash SigPolicyHash, sigPolicyQualifiers SEQUENCE SIZE (1..MAX) OFPolicyInformation OPTIONAL -- NOT USED IN THIS DOCUMENT } OtherCertID ::= SEQUENCE { otherCertHash OtherHash, issuerSerial IssuerSerialSigPolicyQualifierInfo OPTIONAL }OtherHash ::= CHOICE { sha1Hash OtherHashValue, -- This contains a SHA-1 hash otherHash OtherHashAlgAndValue} OtherHashValue ::= OCTET STRING OtherHashAlgAndValueSigPolicyId ::=SEQUENCE { hashAlgorithm AlgorithmIdentifier, hashValue OtherHashValue } -- Signature Policy Identifier id-aa-ets-sigPolicyIdOBJECT IDENTIFIER::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-aa(2) 15 }ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page57]54] Internet Draft Electronic Signature FormatsSignaturePolicyIdentifier ::= SEQUENCE { sigPolicyIdentifier SigPolicyId, sigPolicyHash SigPolicyHash, sigPolicyQualifiers SEQUENCE SIZE (1..MAX) OF SigPolicyQualifierInfo OPTIONAL} SigPolicyId ::= OBJECT IDENTIFIERSigPolicyHash ::= ETSIHashAlgAndValue SigPolicyQualifierInfo ::= SEQUENCE { sigPolicyQualifierIdSigPolicyQualifierId, sigQualifier ANY DEFINED BY sigPolicyQualifierIdSIG-POLICY-QUALIFIER.&id ({SupportedSigPolicyQualifiers}), qualifier SIG-POLICY-QUALIFIER.&Qualifier ({SupportedSigPolicyQualifiers} {@sigPolicyQualifierId})OPTIONAL }SigPolicyQualifierIdSupportedSigPolicyQualifiers SIG-POLICY-QUALIFIER ::= { noticeToUser | pointerToSigPolSpec } SIG-POLICY-QUALIFIER ::= CLASS { &id OBJECT IDENTIFIER UNIQUE, &Qualifier OPTIONAL } WITH SYNTAX { SIG-POLICY-QUALIFIER-ID &id [SIG-QUALIFIER-TYPE &Qualifier] } noticeToUser SIG-POLICY-QUALIFIER ::= { SIG-POLICY-QUALIFIER-ID id-sqt-unotice SIG-QUALIFIER-TYPE SPUserNotice } pointerToSigPolSpec SIG-POLICY-QUALIFIER ::= { SIG-POLICY-QUALIFIER-ID id-sqt-uri SIG-QUALIFIER-TYPE SPuri } id-spq-ets-uri OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-spq(5) 1 } SPuri ::= IA5String id-spq-ets-unotice OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-spq(5) 2 } SPUserNotice ::= SEQUENCE { noticeRef NoticeReference OPTIONAL, explicitText DisplayTextOPTIONAL}OPTIONAL } NoticeReference ::= SEQUENCE { organization DisplayText, noticeNumbers SEQUENCE OF INTEGER } DisplayText ::= CHOICE { visibleString VisibleString (SIZE (1..200)), bmpString BMPString (SIZE (1..200)), utf8String UTF8String (SIZE (1..200)) } ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page58]55] Internet Draft Electronic Signature Formats -- Optional Electronic Signature Attributes -- Commitment Type id-aa-ets-commitmentType OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 16} CommitmentTypeIndication ::= SEQUENCE { commitmentTypeId CommitmentTypeIdentifier, commitmentTypeQualifier SEQUENCE SIZE (1..MAX) OF CommitmentTypeQualifier OPTIONAL} CommitmentTypeIdentifier ::= OBJECT IDENTIFIER CommitmentTypeQualifier ::= SEQUENCE {commitmentTypeIdentifier CommitmentTypeIdentifier,commitmentQualifierId COMMITMENT-QUALIFIER.&id, qualifierANY DEFINED BY commitmentTypeIdentifierCOMMITMENT-QUALIFIER.&Qualifier OPTIONAL } COMMITMENT-QUALIFIER ::= CLASS { &id OBJECT IDENTIFIER UNIQUE, &Qualifier OPTIONAL } WITH SYNTAX { COMMITMENT-QUALIFIER-ID &id [COMMITMENT-TYPE &Qualifier] } id-cti-ets-proofOfOrigin OBJECT IDENTIFIER ::= { iso(1)member- body(2)member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 1} id-cti-ets-proofOfReceipt OBJECT IDENTIFIER ::= { iso(1)member- body(2)member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 2} id-cti-ets-proofOfDelivery OBJECT IDENTIFIER ::= { iso(1)member- body(2)member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 3} id-cti-ets-proofOfSender OBJECT IDENTIFIER ::= { iso(1)member- body(2)member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 4} id-cti-ets-proofOfApproval OBJECT IDENTIFIER ::= { iso(1)member- body(2)member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 5} id-cti-ets-proofOfCreation OBJECT IDENTIFIER ::= { iso(1)member- body(2)member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 6} ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page59]56] Internet Draft Electronic Signature Formats -- Signer Location id-aa-ets-signerLocation OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 17} SignerLocation ::= SEQUENCE { --Atat least one of the following must be present countryName [0] DirectoryString OPTIONAL, -- As used to name a Country in X.500 localityName [1] DirectoryString OPTIONAL, -- As used to name a locality in X.500 postalAdddress [2] PostalAddress OPTIONAL } PostalAddress ::= SEQUENCE SIZE(1..6) OF DirectoryString -- Signer Attributes id-aa-ets-signerAttr OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 18} SignerAttribute ::= SEQUENCE OF CHOICE { claimedAttributes [0] ClaimedAttributes, certifiedAttributes [1] CertifiedAttributes } ClaimedAttributes ::= SEQUENCE OF Attribute CertifiedAttributes ::= AttributeCertificate -- As defined in X.509 : see section 10.3 -- Content Timestamp id-aa-ets-contentTimestamp OBJECT IDENTIFIER ::= { iso(1)member- body(2)member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 20} ContentTimestamp::= TimeStampToken -- Validation Data -- Signature Timestamp id-aa-signatureTimeStampToken OBJECT IDENTIFIER ::= { iso(1)member- body(2)member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 14} SignatureTimeStampToken ::= TimeStampToken ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page60]57] Internet Draft Electronic Signature Formats -- Complete Certificate Refs. id-aa-ets-certificateRefs OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 21} CompleteCertificateRefs ::= SEQUENCE OFETSICertIDOTHERCertID -- Complete Revocation Refs id-aa-ets-revocationRefs OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 22} CompleteRevocationRefs ::= SEQUENCE OF CrlOcspRef CrlOcspRef ::= SEQUENCE { crlids [0] CRLListID OPTIONAL, ocspids [1] OcspListID OPTIONAL, otherRev [2] OtherRevRefs OPTIONAL } CRLListID ::= SEQUENCE { crls SEQUENCE OF CrlValidatedID} CrlValidatedID ::= SEQUENCE { crlHash ETSIHash, crlIdentifier CrlIdentifier OPTIONAL} CrlIdentifier ::= SEQUENCE { crlissuer Name, crlIssuedTime UTCTime, crlNumber INTEGER OPTIONAL } OcspListID ::= SEQUENCE { ocspResponses SEQUENCE OF OcspResponsesID} OcspResponsesID ::= SEQUENCE { ocspIdentifier OcspIdentifier, ocspRepHash ETSIHash OPTIONAL } OcspIdentifier ::= SEQUENCE { ocspResponderID ResponderID, -- As in OCSP response data producedAt GeneralizedTime -- As in OCSP response data } ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page61]58] Internet Draft Electronic Signature Formats OtherRevRefs ::= SEQUENCE { otherRevRefTypeOtherRevRefType,OTHER-REVOCATION-REF.&id, otherRevRefsANY DEFINED BY otherRevRefTypeOTHER-REVOCATION-REF.&Type }OtherRevRefTypeOTHER-REVOCATION-REF ::= CLASS { &Type, &id OBJECT IDENTIFIER UNIQUE } WITH SYNTAX { &Type ID &id } -- Certificate Values id-aa-ets-certValues OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 23} CertificateValues ::= SEQUENCE OF Certificate -- Certificate Revocation Values id-aa-ets-revocationValues OBJECT IDENTIFIER ::= { iso(1)member- body(2) us(840)member-body(2)us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 24} RevocationValues ::= SEQUENCE { crlVals [0] SEQUENCE OF CertificateList OPTIONAL, ocspVals [1] SEQUENCE OF BasicOCSPResponse OPTIONAL, otherRevVals [2] OtherRevVals } OtherRevVals ::= SEQUENCE { otherRevValTypeOtherRevValType,OTHER-REVOCATION-VAL.&id, otherRevValsANY DEFINED BY otherRevValTypeOTHER-REVOCATION-VAL.&Type }OtherRevValTypeOTHER-REVOCATION-VAL ::= CLASS { &Type, &id OBJECT IDENTIFIER UNIQUE } WITH SYNTAX { &Type ID &id } -- ES-C Timestamp id-aa-ets-escTimeStamp OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 25} ESCTimeStampToken ::= TimeStampToken ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 59] Internet Draft Electronic Signature Formats -- Time-Stamped Certificates and CRLs id-aa-ets-certCRLTimestamp OBJECT IDENTIFIER ::= { iso(1)member- body(2)member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 26} TimestampedCertsCRLs ::= TimeStampTokenETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 62] Internet Draft Electronic Signature Formats-- Archive Timestamp id-aa-ets-archiveTimestamp OBJECT IDENTIFIER ::= { iso(1)member- body(2) us(840)member-body(2)us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 27} ArchiveTimeStampToken ::= TimeStampToken END --Signature Policy Specification -- ============================== SignaturePolicy ::= SEQUENCE { signPolicyHashAlg AlgorithmIdentifier, signPolicyInfo SignPolicyInfo, signPolicyHash SignPolicyHash OPTIONAL } SignPolicyHash ::= OCTET STRING SignPolicyInfo ::= SEQUENCE { signPolicyIdentifier SignPolicyId, dateOfIssue GeneralizedTime, policyIssuerName PolicyIssuerName, fieldOfApplication FieldOfApplication, signatureValidationPolicy SignatureValidationPolicy, signPolExtensions SignPolExtensions OPTIONAL } SignPolicyId ::= OBJECT IDENTIFIER PolicyIssuerName ::= GeneralNames FieldOfApplication ::= DirectoryString SignatureValidationPolicy ::= SEQUENCE { signingPeriod SigningPeriod, commonRules CommonRules, commitmentRules CommitmentRules, signPolExtensions SignPolExtensions OPTIONAL } SigningPeriod ::= SEQUENCE { notBefore GeneralizedTime, notAfter GeneralizedTime OPTIONAL }ETS-ElectronicSignatureFormats-97Syntax ETSI TC-SEC,Ross,Pinkas, Ross, Pope InformationalRFC [Page 63] Internet Draft Electronic Signature Formats CommonRules ::= SEQUENCE { signerAndVeriferRules [0] SignerAndVerifierRules OPTIONAL, signingCertTrustCondition [1] SigningCertTrustCondition OPTIONAL, timeStampTrustCondition [2] TimestampTrustCondition OPTIONAL, attributeTrustCondition [3] AttributeTrustCondition OPTIONAL, algorithmConstraintSet [4] AlgorithmConstraintSet OPTIONAL, signPolExtensions [5] SignPolExtensions OPTIONAL } CommitmentRules ::= SEQUENCE OF CommitmentRule CommitmentRule ::= SEQUENCE { selCommitmentTypes SelectedCommitmentTypes, signerAndVeriferRules [0] SignerAndVerifierRules OPTIONAL, signingCertTrustCondition [1] SigningCertTrustCondition OPTIONAL, timeStampTrustCondition [2] TimestampTrustCondition OPTIONAL, attributeTrustCondition [3] AttributeTrustCondition OPTIONAL, algorithmConstraintSet [4] AlgorithmConstraintSet OPTIONAL, signPolExtensions [5] SignPolExtensions OPTIONAL } SelectedCommitmentTypes ::= SEQUENCE OF CHOICE { empty NULL, recognizedCommitmentType CommitmentType } CommitmentType ::= SEQUENCE { identifier CommitmentTypeIdentifier, fieldOfApplication [0] FieldOfApplication OPTIONAL, semantics [1] DirectoryString OPTIONAL } SignerAndVerifierRules ::= SEQUENCE { signerRules SignerRules, verifierRules VerifierRules } ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 64] Internet Draft Electronic Signature Formats SignerRules ::= SEQUENCE { externalSignedData BOOLEAN OPTIONAL, -- True if signed data is external to CMS structure -- False if signed data part of CMS structure -- not present if either allowed mandatedSignedAttr CMSAttrs, -- Mandated CMS signed attributes mandatedUnsignedAttr CMSAttrs, -- Mandated CMS unsigned attributed mandatedCertificateRef [0] CertRefReq DEFAULT signerOnly, -- Mandated Certificate Reference mandatedCertificateInfo [1] CertInfoReq DEFAULT none, -- Mandated Certificate Info signPolExtensions [2] SignPolExtensions OPTIONAL} CMSAttrs ::= SEQUENCE OF OBJECT IDENTIFIER CertRefReq ::= ENUMERATED { signerOnly (1), -- Only reference to signer cert mandated fullPath (2) -- References for full cert path up to a trust point required } CertInfoReq ::= ENUMERATED { none (0), -- No mandatory requirements signerOnly (1), -- Only reference to signer cert mandated fullPath (2) -- References for full cert path up to a trust point mandated } VerifierRules ::= SEQUENCE { mandatedUnsignedAttr MandatedUnsignedAttr, signPolExtensions SignPolExtensions OPTIONAL } MandatedUnsignedAttr ::= CMSAttrs -- Mandated CMS unsigned attributed ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 65] Internet Draft Electronic Signature Formats CertificateTrustTrees ::= SEQUENCE OF CertificateTrustPoint CertificateTrustPoint ::= SEQUENCE { trustpoint Certificate, -- self-signed certificate pathLenConstraint [0] PathLenConstraint OPTIONAL, acceptablePolicySet [1] AcceptablePolicySet OPTIONAL, -- If not present "any policy" nameConstraints [2] NameConstraints OPTIONAL, policyConstraints [3] PolicyConstraints OPTIONAL } PathLenConstraint ::= INTEGER (0..MAX) AcceptablePolicySet ::= SEQUENCE OF CertPolicyId CertPolicyId ::= OBJECT IDENTIFIER NameConstraints ::= SEQUENCE { permittedSubtrees [0] GeneralSubtrees OPTIONAL, excludedSubtrees [1] GeneralSubtrees OPTIONAL } GeneralSubtrees ::= SEQUENCE SIZE (1..MAX) OF GeneralSubtree GeneralSubtree ::= SEQUENCE { base GeneralName, minimum [0] BaseDistance DEFAULT 0, maximum [1] BaseDistance OPTIONAL } BaseDistance ::= INTEGER (0..MAX) PolicyConstraints ::= SEQUENCE { requireExplicitPolicy [0] SkipCerts OPTIONAL, inhibitPolicyMapping [1] SkipCerts OPTIONAL } SkipCerts ::= INTEGER (0..MAX) CertRevReq ::= SEQUENCE { endCertRevReq RevReq, caCerts [0] RevReq } RevReq ::= SEQUENCE { enuRevReq EnuRevReq, exRevReq SignPolExtensions OPTIONAL} ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 66] Internet Draft Electronic Signature Formats EnuRevReq ::= ENUMERATED { clrCheck (0), --Checks must be made against current CRLs -- (or authority revocation lists) ocspCheck (1), -- The revocation status must be checked -- using the Online Certificate Status Protocol (RFC 2450) bothCheck (2), -- Both CRL and OCSP checks must be carried out eitherCheck (3), -- At least one of CRL or OCSP checks must be carried out noCheck (4), -- no check is mandated other (5) -- Other mechanism as defined by signature policy extension } SigningCertTrustCondition ::= SEQUENCE { signerTrustTrees CertificateTrustTrees, signerRevReq CertRevReq } TimestampTrustCondition ::= SEQUENCE { ttsCertificateTrustTrees [0] CertificateTrustTrees OPTIONAL, ttsRevReq [1] CertRevReq OPTIONAL, ttsNameConstraints [2] NameConstraints OPTIONAL, cautionPeriod [3] DeltaTime OPTIONAL, signatureTimestampDelay [4] DeltaTime OPTIONAL } DeltaTime ::= SEQUENCE { deltaSeconds INTEGER, deltaMinutes INTEGER, deltaHours INTEGER, deltaDays INTEGER } AttributeTrustCondition ::= SEQUENCE { attributeMandated BOOLEAN, -- Attribute must be present howCertAttribute HowCertAttribute, attrCertificateTrustTrees [0] CertificateTrustTrees OPTIONAL, attrRevReq [1] CertRevReq OPTIONAL, attributeConstraints [2] AttributeConstraints OPTIONAL } HowCertAttribute ::= ENUMERATED { claimedAttribute (0), certifiedAttribtes (1), either (2) } ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 67] Internet Draft Electronic Signature Formats AttributeConstraints ::= SEQUENCE { attributeTypeConstarints [0] AttributeTypeConstraints OPTIONAL, attributeValueConstarints [1] AttributeValueConstraints OPTIONAL } AttributeTypeConstraints ::= SEQUENCE OF AttributeType AttributeValueConstraints ::= SEQUENCE OF AttributeTypeAndValue AlgorithmConstraintSet ::= SEQUENCE { -- Algorithm constrains on: signerAlgorithmConstraints [0] AlgorithmConstraints OPTIONAL, -- signer eeCertAlgorithmConstraints [1] AlgorithmConstraints OPTIONAL, -- issuer of end entity certs. caCertAlgorithmConstraints [2] AlgorithmConstraints OPTIONAL, -- issuer of CA certificates aaCertAlgorithmConstraints [3] AlgorithmConstraints OPTIONAL, -- Attribute Authority tsaCertAlgorithmConstraints [4] AlgorithmConstraints OPTIONAL -- TimeStamping Authority } AlgorithmConstraints ::= SEQUENCE OF AlgAndLength AlgAndLength ::= SEQUENCE { algID OBJECT IDENTIFIER, minKeyLength INTEGER OPTIONAL, -- Minimum key length in bits other SignPolExtensions OPTIONAL } SignPolExtensions ::= SEQUENCE OF SignPolExtn SignPolExtn ::= SEQUENCE { extnID OBJECT IDENTIFIER, extnValue OCTET STRING } END -- ETS-ElectronicSignature-88syntax -- ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 68] Internet Draft Electronic Signature Formats A.2 Definitions Using X.680 1997 ASN.1 Syntax NOTE: The ASN.1 module defined in clause A.1 has precedence over that defined in clause A.2 in the case of any conflict. ETS-ElectronicSignature-97Syntax { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-mod(0) 6} DEFINITIONS EXPLICIT TAGS ::= BEGIN -- EXPORTS All - IMPORTS -- Crypographic Message Syntax (CMS): RFC 2630 ContentInfo, ContentType, id-data, id-signedData, SignedData, EncapsulatedContentInfo, SignerInfo, id-contentType, id-messageDigest, MessageDigest, id-signingTime, SigningTime, id-countersignature, Countersignature FROM CryptographicMessageSyntax { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) modules(0) cms(1) } -- ESS Defined attributes: RFC 2634 (Enhanced Security Services -- for S/MIME) id-aa-signingCertificate, SigningCertificate, IssuerSerial, id-aa-contentReference, ContentReference, id-aa-contentIdentifier, ContentIdentifier FROM ExtendedSecurityServices { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) modules(0) ess(2) } -- Internet X.509 Public Key Infrastructure - - Certificate and CRL Profile:RFC 2459 Certificate, AlgorithmIdentifier, CertificateList, Name, GeneralNames, GeneralName, DirectoryString, Attribute, AttributeTypeAndValue, AttributeType, AttributeValue, PolicyInformation. FROM PKIX1Explicit93 {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-explicit-88(1)} -- X.509 '97 Authentication Framework AttributeCertificate FROM AuthenticationFramework {joint-iso-ccitt ds(5) module(1) authenticationFramework(7) 3} ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 69] Internet Draft Electronic Signature Formats -- OCSP 2560 BasicOCSPResponse, ResponderID FROM OCSP -- { OID not assigned } -- Time Stamp Protocol Internet Draft TimeStampToken FROM TSP -- { OID not assigned }; -- S/MIME Object Identifier arcs used in this document -- ================================================================== -- S/MIME OID arc used in this document -- id-smime OBJECT IDENTIFIER ::= { iso(1) member-body(2) -- us(840) rsadsi(113549) pkcs(1) pkcs-9(9) 16 } -- S/MIME Arcs -- id-mod OBJECT IDENTIFIER ::= { id-smime 0 } -- modules -- id-ct OBJECT IDENTIFIER ::= { id-smime 1 } -- content types -- id-aa OBJECT IDENTIFIER ::= { id-smime 2 } -- attributes -- id-spq OBJECT IDENTIFIER ::= { id-smime 5 } -- signature policy qualifier -- id-cti OBJECT IDENTIFIER ::= { id-smime 6 } -- commitment type identifier -- Definitions of Object Identifier arcs used in this document -- ================================================================== -- The allocation of OIDs to specific objects are given below with the -- associated ASN.1 syntax definition -- OID used referencing electronic signature mechanisms based on this -- standard for use with the IDUP API (see annex D) id-etsi-es-IDUP-Mechanism-v1 OBJECT IDENTIFIER ::= { itu-t(0) identified-organization(4) etsi(0) electronic-signature-standard (1733) part1 (1) idupMechanism (4)etsiESv1(1) } ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 70] Internet Draft Electronic Signature Formats -- CMS Attributes Defined in this document -- ============================================== -- Mandatory Electronic Signature Attributes -- OtherSigningCertificate id-aa-ets-otherSigCert OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-aa(2) 19 } OtherSigningCertificate ::= SEQUENCE { certs SEQUENCE OF OtherCertID, policies SEQUENCE OF PolicyInformation OPTIONAL -- NOT USED IN THIS DOCUMENT } OtherCertID ::= SEQUENCE { otherCertHash OtherHash, issuerSerial IssuerSerial OPTIONAL } OtherHash ::= CHOICE { sha1Hash OtherHashValue, -- This contains a SHA-1 hash otherHash OtherHashAlgAndValue} OtherHashValue ::= OCTET STRING OtherHashAlgAndValue ::= SEQUENCE { hashAlgorithm AlgorithmIdentifier, hashValue OtherHashValue } -- Signature Policy Identifier id-aa-ets-sigPolicyId OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-aa(2) 15 } SignaturePolicyIdentifier ::= SEQUENCE { sigPolicyIdentifier SigPolicyId, sigPolicyHash SigPolicyHash, sigPolicyQualifiers SEQUENCE SIZE (1..MAX) OF SigPolicyQualifierInfo OPTIONAL} ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 71] Internet Draft Electronic Signature Formats SigPolicyId ::= OBJECT IDENTIFIER SigPolicyHash ::= ETSIHashAlgAndValue SigPolicyQualifierInfo ::= SEQUENCE { sigPolicyQualifierId SIG-POLICY-QUALIFIER.&id ({SupportedSigPolicyQualifiers}), qualifier SIG-POLICY-QUALIFIER.&Qualifier ({SupportedSigPolicyQualifiers} {@sigPolicyQualifierId})OPTIONAL } SupportedSigPolicyQualifiers SIG-POLICY-QUALIFIER ::= { noticeToUser | pointerToSigPolSpec } SIG-POLICY-QUALIFIER ::= CLASS { &id OBJECT IDENTIFIER UNIQUE, &Qualifier OPTIONAL } WITH SYNTAX { SIG-POLICY-QUALIFIER-ID &id [SIG-QUALIFIER-TYPE &Qualifier] } noticeToUser SIG-POLICY-QUALIFIER ::= { SIG-POLICY-QUALIFIER-ID id-sqt-unotice SIG-QUALIFIER-TYPE SPUserNotice } pointerToSigPolSpec SIG-POLICY-QUALIFIER ::= { SIG-POLICY-QUALIFIER-ID id-sqt-uri SIG-QUALIFIER-TYPE SPuri } id-spq-ets-uri OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-spq(5) 1 } SPuri ::= IA5String id-spq-ets-unotice OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-spq(5) 2 } SPUserNotice ::= SEQUENCE { noticeRef NoticeReference OPTIONAL, explicitText DisplayText OPTIONAL} NoticeReference ::= SEQUENCE { organization DisplayText, noticeNumbers SEQUENCE OF INTEGER } DisplayText ::= CHOICE { visibleString VisibleString (SIZE (1..200)), bmpString BMPString (SIZE (1..200)), utf8String UTF8String (SIZE (1..200)) } ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 72] Internet Draft Electronic Signature Formats -- Optional Electronic Signature Attributes -- Commitment Type id-aa-ets-commitmentType OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 16} CommitmentTypeIndication ::= SEQUENCE { commitmentTypeId CommitmentTypeIdentifier, commitmentTypeQualifier SEQUENCE SIZE (1..MAX) OF CommitmentTypeQualifier OPTIONAL} CommitmentTypeIdentifier ::= OBJECT IDENTIFIER CommitmentTypeQualifier ::= SEQUENCE { commitmentQualifierId COMMITMENT-QUALIFIER.&id, qualifier COMMITMENT-QUALIFIER.&Qualifier OPTIONAL } COMMITMENT-QUALIFIER ::= CLASS { &id OBJECT IDENTIFIER UNIQUE, &Qualifier OPTIONAL } WITH SYNTAX { COMMITMENT-QUALIFIER-ID &id [COMMITMENT-TYPE &Qualifier] } id-cti-ets-proofOfOrigin OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 1} id-cti-ets-proofOfReceipt OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 2} id-cti-ets-proofOfDelivery OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 3} id-cti-ets-proofOfSender OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 4} id-cti-ets-proofOfApproval OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 5} id-cti-ets-proofOfCreation OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6) 6} ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 73] Internet Draft Electronic Signature Formats -- Signer Location id-aa-ets-signerLocation OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 17} SignerLocation ::= SEQUENCE { -- at least one of the following must be present countryName [0] DirectoryString OPTIONAL, -- As used to name a Country in X.500 localityName [1] DirectoryString OPTIONAL, -- As used to name a locality in X.500 postalAdddress [2] PostalAddress OPTIONAL } PostalAddress ::= SEQUENCE SIZE(1..6) OF DirectoryString -- Signer Attributes id-aa-ets-signerAttr OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 18} SignerAttribute ::= SEQUENCE OF CHOICE { claimedAttributes [0] ClaimedAttributes, certifiedAttributes [1] CertifiedAttributes } ClaimedAttributes ::= SEQUENCE OF Attribute CertifiedAttributes ::= AttributeCertificate -- As defined in X.509 : see section 10.3 -- Content Timestamp id-aa-ets-contentTimestamp OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 20} ContentTimestamp::= TimeStampToken -- Validation Data -- Signature Timestamp id-aa-signatureTimeStampToken OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 14} SignatureTimeStampToken ::= TimeStampToken ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 74] Internet Draft Electronic Signature Formats -- Complete Certificate Refs. id-aa-ets-certificateRefs OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 21} CompleteCertificateRefs ::= SEQUENCE OF ETSICertID -- Complete Revocation Refs id-aa-ets-revocationRefs OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 22} CompleteRevocationRefs ::= SEQUENCE OF CrlOcspRef CrlOcspRef ::= SEQUENCE { crlids [0] CRLListID OPTIONAL, ocspids [1] OcspListID OPTIONAL, otherRev [2] OtherRevRefs OPTIONAL } CRLListID ::= SEQUENCE { crls SEQUENCE OF CrlValidatedID} CrlValidatedID ::= SEQUENCE { crlHash ETSIHash, crlIdentifier CrlIdentifier OPTIONAL} CrlIdentifier ::= SEQUENCE { crlissuer Name, crlIssuedTime UTCTime, crlNumber INTEGER OPTIONAL } OcspListID ::= SEQUENCE { ocspResponses SEQUENCE OF OcspResponsesID} OcspResponsesID ::= SEQUENCE { ocspIdentifier OcspIdentifier, ocspRepHash ETSIHash OPTIONAL } OcspIdentifier ::= SEQUENCE { ocspResponderID ResponderID, -- As in OCSP response data producedAt GeneralizedTime -- As in OCSP response data } ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 75] Internet Draft Electronic Signature Formats OtherRevRefs ::= SEQUENCE { otherRevRefType OTHER-REVOCATION-REF.&id, otherRevRefs OTHER-REVOCATION-REF.&Type } OTHER-REVOCATION-REF ::= CLASS { &Type, &id OBJECT IDENTIFIER UNIQUE } WITH SYNTAX { &Type ID &id } -- Certificate Values id-aa-ets-certValues OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 23} CertificateValues ::= SEQUENCE OF Certificate -- Certificate Revocation Values id-aa-ets-revocationValues OBJECT IDENTIFIER ::= { iso(1) member-body(2)us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 24} RevocationValues ::= SEQUENCE { crlVals [0] SEQUENCE OF CertificateList OPTIONAL, ocspVals [1] SEQUENCE OF BasicOCSPResponse OPTIONAL, otherRevVals [2] OtherRevVals } OtherRevVals ::= SEQUENCE { otherRevValType OTHER-REVOCATION-VAL.&id, otherRevVals OTHER-REVOCATION-VAL.&Type } OTHER-REVOCATION-VAL ::= CLASS { &Type, &id OBJECT IDENTIFIER UNIQUE } WITH SYNTAX { &Type ID &id } -- ES-C Timestamp id-aa-ets-escTimeStamp OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 25} ESCTimeStampToken ::= TimeStampToken ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 76] Internet Draft Electronic Signature Formats -- Time-Stamped Certificates and CRLs id-aa-ets-certCRLTimestamp OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 26} TimestampedCertsCRLs ::= TimeStampToken -- Archive Timestamp id-aa-ets-archiveTimestamp OBJECT IDENTIFIER ::= { iso(1) member-body(2)us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 27} ArchiveTimeStampToken ::= TimeStampToken -- Signature Policy Specification -- ============================== SignaturePolicy ::= SEQUENCE { signPolicyHashAlg AlgorithmIdentifier, signPolicyInfo SignPolicyInfo, signPolicyHash SignPolicyHash OPTIONAL } SignPolicyHash ::= OCTET STRING SignPolicyInfo ::= SEQUENCE { signPolicyIdentifier SignPolicyId, dateOfIssue GeneralizedTime, policyIssuerName PolicyIssuerName, fieldOfApplication FieldOfApplication, signatureValidationPolicy SignatureValidationPolicy, signPolExtensions SignPolExtensions OPTIONAL } SignPolicyId ::= OBJECT IDENTIFIER PolicyIssuerName ::= GeneralNames FieldOfApplication ::= DirectoryString SignatureValidationPolicy ::= SEQUENCE { signingPeriod SigningPeriod, commonRules CommonRules, commitmentRules CommitmentRules, signPolExtensions SignPolExtensions OPTIONAL } ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 77] Internet Draft Electronic Signature Formats SigningPeriod ::= SEQUENCE { notBefore GeneralizedTime, notAfter GeneralizedTime OPTIONAL } CommonRules ::= SEQUENCE { signerAndVeriferRules [0] SignerAndVerifierRules OPTIONAL, signingCertTrustCondition [1] SigningCertTrustCondition OPTIONAL, timeStampTrustCondition [2] TimestampTrustCondition OPTIONAL, attributeTrustCondition [3] AttributeTrustCondition OPTIONAL, algorithmConstraintSet [4] AlgorithmConstraintSet OPTIONAL, signPolExtensions [5] SignPolExtensions OPTIONAL } CommitmentRules ::= SEQUENCE OF CommitmentRule CommitmentRule ::= SEQUENCE { selCommitmentTypes SelectedCommitmentTypes, signerAndVeriferRules [0] SignerAndVerifierRules OPTIONAL, signingCertTrustCondition [1] SigningCertTrustCondition OPTIONAL, timeStampTrustCondition [2] TimestampTrustCondition OPTIONAL, attributeTrustCondition [3] AttributeTrustCondition OPTIONAL, algorithmConstraintSet [4] AlgorithmConstraintSet OPTIONAL, signPolExtensions [5] SignPolExtensions OPTIONAL } SelectedCommitmentTypes ::= SEQUENCE OF CHOICE { empty NULL, recognizedCommitmentType CommitmentType } CommitmentType ::= SEQUENCE { identifier CommitmentTypeIdentifier, fieldOfApplication [0] FieldOfApplication OPTIONAL, semantics [1] DirectoryString OPTIONAL } SignerAndVerifierRules ::= SEQUENCE { signerRules SignerRules, verifierRules VerifierRules } ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 78] Internet Draft Electronic Signature Formats SignerRules ::= SEQUENCE { externalSignedData BOOLEAN OPTIONAL, -- True if signed data is external to CMS structure -- False if signed data part of CMS structure -- not present if either allowed mandatedSignedAttr CMSAttrs, -- Mandated CMS signed attributes mandatedUnsignedAttr CMSAttrs, -- Mandated CMS unsigned attributed mandatedCertificateRef [0] CertRefReq DEFAULT signerOnly, -- Mandated Certificate Reference mandatedCertificateInfo [1] CertInfoReq DEFAULT none, -- Mandated Certificate Info signPolExtensions [2] SignPolExtensions OPTIONAL } CMSAttrs ::= SEQUENCE OF OBJECT IDENTIFIER CertRefReq ::= ENUMERATED { signerOnly (1), -- Only reference to signer cert mandated fullPath (2) -- References for full cert path up to a trust -- point required } CertInfoReq ::= ENUMERATED { none (0) , -- No mandatory requirements signerOnly (1) , -- Only reference to signer cert mandated fullPath (2) -- References for full cert path up to a -- trust point mandated } VerifierRules ::= SEQUENCE { mandatedUnsignedAttr MandatedUnsignedAttr, signPolExtensions SignPolExtensions OPTIONAL } MandatedUnsignedAttr ::= CMSAttrs -- Mandated CMS unsigned attributed ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 79] Internet Draft Electronic Signature Formats CertificateTrustTrees ::= SEQUENCE OF CertificateTrustPoint CertificateTrustPoint ::= SEQUENCE { trustpoint Certificate, -- self-signed certificate pathLenConstraint [0] PathLenConstraint OPTIONAL, acceptablePolicySet [1] AcceptablePolicySet OPTIONAL, -- If not present "any policy" nameConstraints [2] NameConstraints OPTIONAL, policyConstraints [3] PolicyConstraints OPTIONAL } PathLenConstraint ::= INTEGER (0..MAX) AcceptablePolicySet ::= SEQUENCE OF CertPolicyId CertPolicyId ::= OBJECT IDENTIFIER NameConstraints ::= SEQUENCE { permittedSubtrees [0] GeneralSubtrees OPTIONAL, excludedSubtrees [1] GeneralSubtrees OPTIONAL } GeneralSubtrees ::= SEQUENCE SIZE (1..MAX) OF GeneralSubtree GeneralSubtree ::= SEQUENCE { base GeneralName, minimum [0] BaseDistance DEFAULT 0, maximum [1] BaseDistance OPTIONAL } BaseDistance ::= INTEGER (0..MAX) PolicyConstraints ::= SEQUENCE { requireExplicitPolicy [0] SkipCerts OPTIONAL, inhibitPolicyMapping [1] SkipCerts OPTIONAL } SkipCerts ::= INTEGER (0..MAX) CertRevReq ::= SEQUENCE { endCertRevReq RevReq, caCerts [0] RevReq } RevReq ::= SEQUENCE { enuRevReq EnuRevReq, exRevReq SignPolExtensions OPTIONAL} ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 80] Internet Draft Electronic Signature Formats EnuRevReq ::= ENUMERATED { clrCheck (0), -- Checks must be made against current CRLs -- (or authority revocation lists) ocspCheck (1), -- The revocation status must be checked using -- the Online Certificate Status Protocol (RFC 2450) bothCheck (2), -- Both CRL and OCSP checks must be carried out eitherCheck (3), -- At least one of CRL or OCSP checks must be carried out noCheck (4), -- no check is mandated other (5) -- Other mechanism as defined by signature poilicy -- extension } SigningCertTrustCondition ::= SEQUENCE { signerTrustTrees CertificateTrustTrees, signerRevReq CertRevReq } TimestampTrustCondition ::= SEQUENCE { ttsCertificateTrustTrees [0] CertificateTrustTrees OPTIONAL, ttsRevReq [1] CertRevReq OPTIONAL, ttsNameConstraints [2] NameConstraints OPTIONAL, cautionPeriod [3] DeltaTime OPTIONAL, signatureTimestampDelay [4] DeltaTime OPTIONAL } DeltaTime ::= SEQUENCE { deltaSeconds INTEGER, deltaMinutes INTEGER, deltaHours INTEGER, deltaDays INTEGER } AttributeTrustCondition ::= SEQUENCE { attributeMandated BOOLEAN, -- Attribute must be present howCertAttribute HowCertAttribute, attrCertificateTrustTrees [0] CertificateTrustTrees OPTIONAL, attrRevReq [1] CertRevReq OPTIONAL, attributeConstraints [2] AttributeConstraints OPTIONAL } ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 81] Internet Draft Electronic Signature Formats HowCertAttribute ::= ENUMERATED { claimedAttribute (0), certifiedAttribtes (1), either (2) } AttributeConstraints ::= SEQUENCE { attributeTypeConstarints [0] AttributeTypeConstraints OPTIONAL, attributeValueConstarints [1] AttributeValueConstraints OPTIONAL } AttributeTypeConstraints ::= SEQUENCE OF AttributeType AttributeValueConstraints ::= SEQUENCE OF AttributeTypeAndValue AlgorithmConstraintSet ::= SEQUENCE { -- Algorithm constrains on: signerAlgorithmConstraints [0] AlgorithmConstraints OPTIONAL, -- signer eeCertAlgorithmConstraints [1] AlgorithmConstraints OPTIONAL, -- issuer of end entity certs. caCertAlgorithmConstraints [2] AlgorithmConstraints OPTIONAL, -- issuer of CA certificates aaCertAlgorithmConstraints [3] AlgorithmConstraints OPTIONAL, -- Attribute Authority tsaCertAlgorithmConstraints [4] AlgorithmConstraints OPTIONAL -- TimeStamping Authority } AlgorithmConstraints ::= SEQUENCE OF AlgAndLength AlgAndLength ::= SEQUENCE { algID OBJECT IDENTIFIER, minKeyLength INTEGER OPTIONAL, -- Minimum key length in bits other SignPolExtensions OPTIONAL } SignPolExtensions ::= SEQUENCE OF SignPolExtn SignPolExtn ::= SEQUENCE { extnID OBJECT IDENTIFIER, extnValue OCTET STRING } END -- ETS-ElectronicSignature-97Syntax ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 82] Internet Draft Electronic Signature Formats Annex B (informative): General Description This annex captures the concepts that apply to this document and the rational for the elements of the specification defined using ASN.1 in the main text of this document. The specification below includes a description why the component is needed, with a brief description of the vulnerabilities and threats and the manner by which they are countered. B.1 The Signature Policy The signature policy is a set of rules for the creation and validation of an electronic signature, under which the signature can be determined to be valid. A given legal/contractual context may recognize a particular signature policy as meeting its requirements. A signature policy may be issued, for example, by a party relying on the electronic signatures and selected by the signer for use with that relying party. Alternatively, a signature policy may be established through an electronic trading association for use amongst its members. Both the signer and verifier use the same signature policy. A signature policy has a globally unique reference, which is bound to an electronic signature by the signer as part of the signature calculation. The signature policy needs to be available in human readable form so that it can be assessed to meet the requirements of the legal and contractual context in which it is being applied. To facilitate the automatic processing of an electronic signature the parts of the signature policy which specify the electronic rules for the creation and validation of the electronic signature also needs to be in a computer processable form. The signature policy thus includes the following: * Rules, which apply to functionality, covered by this document (referred to as the Signature Validation Policy). * Rules which may be implied through adoption of Certificate Policies that apply to the electronic signature (e.g. rules for ensuring the secrecy of the private signing key). * Rules, which relate to the environment used by the signer, e.g. the use of an agreed CAD (Card Accepting Device) used in conjunction with a smart card. The Signature Validation Policy may be structured so that it can be computer processable. The current document includes, as an option, a formal structure for the signature validation policy based on the used of Abstract Syntax Notation 1 (ASN.1). Other formats of the signature validation policy are allowed by this document. However, for a given signature policy there must be one definitive form that has a unique binary encoded value. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 83] Internet Draft Electronic Signature Formats The Signature Validation Policy includes rules regarding use of TSPs (CA, Attribute Authorities, Time Stamping Authorities) as well as rules defining the components of the electronic signature that must be provided by the signer with data required by the verifier to provide long term proof. B.2 Signed Information The information being signed may be defined as a MIME-encapsulated message which can be used to signal the format of the content in order to select the right display or application. It can be composed of formatted text (e.g. EDIFACT), free text or of fields from an electronic form (e-form). For example, the Adobe(tm) format "pdf" may be used or the eXtensible Mark up Language (XML). B.3 Components of an Electronic Signature B.3.1 Reference to the Signature Policy The definition of electronic signature includes: "a commitment has been explicitly endorsed under a "Signature policy", at a given time, by a signer under an identifier, e.g. a name or a pseudonym, and optionally a role". When two independent parties want to evaluate an electronic signature, it is fundamental that they get the same result. To meet this requirement the technical components and technical aspects used in creating the signature must be referenced, this is provided by a reference to the "Signature Validation Policy". The "Signature Validation Policy" defines: * the components of an electronic signature to be provided by the signer; * any additional components (i.e. verifier components) used to validate an electronic signature at the time of receipt by a verifier and later by an arbitrator, auditor or other independent parties. By signing over the signature policy identifier, the algorithm identifier and the hash of the signature policy, the signer explicitly indicates that he or she has applied the signature policy in creating the signature. Thus, undertakes any commitments implied by the signature policy, any indication of commitment type included in the electronic signature, and the user data that is signed. The hash algorithm identifier and value is included to ensure that both the signer and verifier use exactly the same signature policy. This unambiguously binds the signer and verifier to same definitive form of the signature policy has a unique binary encoding. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 84] Internet Draft Electronic Signature Formats In order to identify unambiguously the "Signature Validation Policy" to be used to verify the signature an identifier and hash of the "Signature policy" must be part of the signed data. Additional information about the policy (e.g. web reference to the document) may be carried as "qualifiers" to the signature policy identifier B.3.2 Commitment Type Indication The definition of electronic signature includes: "a commitment has been explicitly endorsed under a signature policy, at a given time, by a signer under an identifier, e.g. a name or a pseudonym, and optionally a role". The commitment type can be indicated in the electronic signature either: * explicitly using a "commitment type indication" in the electronic signature; * implicitly or explicitly from the semantics of the signed data. If the indicated commitment type is explicit using a "commitment type indication" in the electronic signature , acceptance of a verified signature implies acceptance of the semantics of that commitment type. The semantics of explicit commitment types indications must be specified either as part of the signature policy or may be registered for generic use across multiple policies. If a signature includes a commitment type indication other than one of those recognized under the signature policy the signature must be treated as invalid. How commitment is indicated using the semantics of the data being signed is outside the scope of this document. NOTE: Examples of commitment indicated through the semantics of the data being signed, are: * An explicit commitment made by the signer indicated by the type of data being signed over. Thus, the data structure being signed can have an explicit commitment within the context of the application (e.g. EDIFACT purchase order). * An implicit commitment which is a commitment made by the signer because the data being signed over has specific semantics (meaning) which is only interpretable by humans, (i.e. free text). ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 85] Internet Draft Electronic Signature Formats B.3.4 Certificate Identifier from the Signer The definition of the ETSI electronic signature includes: "a commitment has been explicitly endorsed under a signature policy, at a given time, by a signer under an identifier, e.g. a name or a pseudonym, and optionally a role." In many real life environments users will be able to get from different CAs or even from the same CA, different certificates containing the same public key for different names. The prime advantage is that a user can use the same private key for different purposes. Multiple use of the private key is an advantage when a smart card is used to protect the private key, since the storage of a smart card is always limited. When several CAs are involved, each different certificate may contain a different identity, e.g. as a national or as an employee from a company. Thus when a private key is used for various purposes, the certificate is needed to clarify the context in which the private key was used when generating the signature. Where there is the possibility of multiple use of private keys it is necessary for the signer to indicate to the verifier the precise certificate to be used. Many current schemes simply add the certificate after the signed data and thus are subject to various substitution attacks. An example of a substitution attack is a "bad" CA that would issue a certificate to someone with the public key of someone else. If the certificate from the signer was simply appended to the signature and thus not protected by the signature, any one could substitute one certificate by another and the message would appear to be signed by some one else. In order to counter this kind of attack, the identifier of the signer has to be protected by the digital signature from the signer. Although it does not provide the same advantages as the previous technique, another technique to counter that threat has been identified. It requires all CAs to perform a Proof Of Possession of the private key at the time of registration. The problem with that technique is that it does not provide any guarantee at the time of verification and only some proof "after the event" may be obtained, if and only if the CA keeps the Proof Of Possession in audit trail. In order to identify unambiguously the certificate to be used for the verification of the signature an identifier of the certificate from the signer must be part of the signed data. B.3.5 Role Attributes The definition of electronic signature includes: "a commitment has been explicitly endorsed under a non repudiation security policy, at a given time, by a signer under an identifier, e.g. a name or a pseudonym, and optionally a role. " ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 86] Internet Draft Electronic Signature Formats While the name of the signer is important, the position of the signer within a company or an organization can be even more important. Some contracts may only be valid if signed by a user in a particular role, e.g. a Sales Director. In many cases whom the sales Director really is, is not that important but being sure that the signer is empowered by his company to be the Sales Director is fundamental. This document defines two different ways for providing this feature: * by placing a claimed role name in the CMS signed attributes field; * by placing a attribute certificate containing a certified role name in the CMS signed attributes field. NOTE: Another possible approach would have been to use additional attributes containing the roles name(s) in the signer's certificate. However, it was decided not to follow this approach as it breaks the basic philosophy of the certificate being issued for one primary purpose. Also, by using separate certificates for management of the signer's identity certificate and management of additional roles can simplify the management, as new identity keys need not be issued if a use of role is to be changed. B.3.5.1 Claimed Role The signer may be trusted to state his own role without any certificate to corroborate this claim. In which case the claimed role can be added to the signature as a signed attribute. B.3.5.2 Certified Role Unlike public key certificates that bind an identifier to a public key, Attribute Certificates bind the identifier of a certificate to some attributes, like a role. An Attribute Certificate is NOT issued by a CA but by an Attribute Authority (AA). The Attribute Authority will be most of the time under the control of an organization or a company that is best placed to know which attributes are relevant for which individual. The Attribute Authority may use or point to public key certificates issued by any CA, provided that the appropriate trust may be placed in that CA. Attribute Certificates may have various periods of validity. That period may be quite short, e.g. one day. While this requires that a new Attribute Certificate is obtained every day, valid for that day, this can be advantageous since revocation of such certificates may not be needed. When signing, the signer will have to specify which Attribute Certificate it selects. In order to do so, the Attribute Certificate will have to be included in the signed data in order to be protected by the digital signature from the signer. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 87] Internet Draft Electronic Signature Formats In order to identify unambiguously the attribute certificate(s) to be used for the verification of the signature an identifier of the attribute certificate(s) from the signer must be part of the signed data. B.3.6 Signer Location In some transactions the purported location of the signer at the time he or she applies his signature may need to be indicated. For this reason an optional location indicator must be able to be included. In order to provide indication of the location of the signer at the time he or she applied his signature a location attribute may be included in the signature. B.3.7 Signing Time The definition of electronic signature includes: "a commitment has been explicitly endorsed under a signature policy, at a given time, by a signer under an identifier, e.g. a name or a pseudonym, and optionally a role. " There are several ways to address this problem. The solution adopted in this document is to sign over a time which the signer claims is the signing time (i.e. claimed signing time) and to require a trusted time stamp to be obtained when building a ES with Timestamp. When a verifier accepts a signature, the two times must be within acceptable limits. The solution that is adopted in this document offers the major advantage that electronic signatures can be generated without any on- line connection to a trusted time source (i.e. they may be generated off-line). Thus two dates and two signatures are required: * a signing time indicated by the signer and which is part of the data signed by the signer (i.e. part of the basic electronic signature); * a time indicated by a TimeStamping Authority (TSA) which is signed over the digital signature value of the basic electronic signature. The signer, verifier or both may obtain the TSA timestamp. In order for an electronic signature to be valid under a signature policy, it must be timestamped by a TSA where the signing time as indicated by the signer and the time of time stamping as indicated by a TSA must be "close enough" to meet the requirements of the signature validation policy. "Close enough" means a few minutes, hours or even days according to the "Signature Validation Policy". ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 88] Internet Draft Electronic Signature Formats NOTE: The need for Timestamping is further explained in clause B.4.5. A further optional attribute is defined in this document to timestamp the content, to provide proof of the existence of the content, at the time indicated by the timestamp. Using this optional attribute a trusted secure time may be obtained before the document is signed and included under the digital signature. This solution requires an on-line connection to a trusted timestamping service before generating the signature and may not represent the precise signing time, since it can be obtained in advance. However, this optional attribute may be used by the signer to prove that the signed object existed before the date included in the timestamp (see 4.12.3, Content Timestamp). Also, the signing time should be between the time indicated by this timestamp and time indicated by the ES-T timestamp. B.4 Components of Validation Data B.4.1 Revocation Status Information A verifier will have to prove that the certificate of the signer was valid at the time of the signature. This can be done by either: * using Certificate Revocation Lists (CRLs); * using responses from an on-line certificate status server (for example; obtained through the OCSP protocol). B.4.2 CRL Information When using CRLs to get revocation information, a verifier will have to make sure that he or she gets at the time of the first verification the appropriate certificate revocation information from the signer's CA. This should be done as soon as possible to minimize the time delay between the generation and verification of the signature. This involves checking that the signer certificate serial number is not included in the CRL. The signer, the verifier or any other third party may obtain either this CRL. If obtained by the signer, then it must be conveyed to the verifier. It may be convenient to archive the CRL for ease of subsequent verification or arbitration. Alternatively, provided the CRL is archived elsewhere which is accessible for the purpose of arbitration, then the serial number of the CRL used may be archived together with the verified electronic signature. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 89] Internet Draft Electronic Signature Formats It may happen that the certificate serial number appears in the CRL but with the status "suspended" (i.e. on hold). In such a case, the electronic signature is not yet valid, since it is not possible to know whether the certificate will or will not be revoked at the end of the suspension period. If a decision has to be taken immediately then the signature has to be considered as invalid. If a decision can wait until the end of the suspension period, then two cases are possible: * the certificate serial number has disappeared from the list and thus the certificate can be considered as valid and that CRL must be captured and archived either by the verifier or elsewhere and be kept accessible for the purpose of arbitration. * the certificate serial number has been maintained on the list with the status definitively revoked and thus the electronic signature must be considered as invalid and discarded. At this point the verifier may be convinced that he or she got a valid signature, but is not yet in a position to prove at a later time that the signature was verified as valid. Before addressing this point, an alternative to CRL is to use OCSP responses. B.4.3 OCSP Information When using OCSP to get revocation information , a verifier will have to make sure that he or she gets at the time of the first verification an OCSP response that contains the status "valid". This should be done as soon as possible after the generation of the signature. The signer, the verifier or any other third party may fetch this OCSP response. Since OSCP responses are transient and thus are not archived by any TSP including CA, it isRFC [Page 60] Internet Draft Electronic Signature Formats Annex B (informative): General Description This annex captures theresponsibility of every verifier to make sureconcepts thatit is stored in a safe place. The simplest way is to store them associated with the electronic signature. An alternative would beapply tostore them in some storage so that they can then be easily retrieved. Inthis document and thesame way asrational for thecaseelements of theCRL, it may happen that the certificate is declared as invalid but withspecification defined using ASN.1 in thesecondary status "suspended". In suchmain text of this document. The specification below includes acase,description why theelectronic signature is not yet valid, since itcomponent isnot possible to know whether the certificate will or will not be revoked at the endneeded, with a brief description of thesuspension period. If a decision has to be taken immediately thenvulnerabilities and threats and theelectronicmanner by which they are countered. B.1 The Signature Policy The signaturehas to be considered as invalid. Ifpolicy is adecision can wait until the endset of rules for thesuspension period, then two cases are possible: * An OCSP response with a valid status is obtained at a later datecreation andthusvalidation of an electronic signature, under which thecertificatesignature can beconsidereddetermined to be valid. A given legal/contractual context may recognize a particular signature policy asvalid and that OCSP response mustmeeting its requirements. A signature policy may becaptured. * An OCSP response with an invalid status is obtained withissued, for example, by asecondary status indicating thatparty relying on thecertificate is definitively revokedelectronic signatures andthusselected by theelectronicsigner for use with that relying party. Alternatively, a signaturemustpolicy may beconsidered as invalid and discarded. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 90] Internet Draft Electronic Signature Formats As in the CRL case, at this point,established through an electronic trading association for use amongst its members. Both the signer and verifiermay be convinced that he or she got a valid signature, but is not yet in a position to prove at a later time thatuse the same signaturewas verified as valid. B.4.4 Certification Pathpolicy. Averifier will havesignature policy has a globally unique reference, which is bound toprove that the certification path was valid, atan electronic signature by thetimesigner as part of thesignature, upsignature calculation. The signature policy needs toa trust point accordingbe available in human readable form so that it can be assessed to meet thenaming constraintsrequirements of the legal and contractual context in which it is being applied. To facilitate thecertificate policy constraints fromautomatic processing of an electronic signature the"Signature Validation Policy". It will be necessary to capture allparts of thecertificates fromsignature policy which specify thecertification path, starting with those fromelectronic rules for thesignercreation andending up with thosevalidation of theself-signed certificate from one trusted root ofelectronic signature also needs to be in a computer processable form. The signature policy thus includes the"Signature Validation Policy". In addition, it willfollowing: * Information about the signature policy that can benecessarydisplayed tocapturetheAuthority Revocation Lists (ARLs)signer or the verifiers. * Rules, which apply toprove than none offunctionality, covered by this document (referred to as theCAs fromSignature Validation Policy). * Rules which may be implied through adoption of Certificate Policies that apply to thechain was revoked atelectronic signature (e.g. rules for ensuring thetimesecrecy of thesignature. As inprivate signing key). * Rules, which relate to theOCSP case, at this point,environment used by theverifier may be convinced that he or she got a valid signature, but is not yetsigner, e.g. the use of an agreed CAD (Card Accepting Device) used in conjunction with aposition to prove at a later timesmart card. The Signature Validation Policy may be structured so that it can be computer processable. Any format of the signaturewas verified as valid. B.4.5 Timestamping for Long Life of Signature An important property for long standing signaturesvalidation policy isthatallowed by this document. However, for asignature, having been found once to be valid,given signature policy there mustcontinue to be so months or years later. A signer, verifier or both mayberequired to provide on request, proofone definitive form that has adigital signature was created or verified during the validity periodunique binary encoded value. ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 61] Internet Draft Electronic Signature Formats The Signature Validation Policy includes rules regarding use of TSPs (CA, Attribute Authorities, Time Stamping Authorities) as well as rules defining theall the certificates that make up the certificate path. In this case,components of thesigner, verifier or both will alsoelectronic signature that must be provided by the signer with data required by the verifier to provideproof that all the user and CA certificates used were not revoked when the signature was created or verified. It wouldlong term proof. B.2 Signed Information The information being signed may bequite unacceptable, to consider a signaturedefined asinvalid even if the keys or certificates were later compromised. Thus there isaneed toMIME-encapsulated message which can beableused todemonstrate that the signature keys was valid aroundsignal thetime thatformat of thesignature was createdcontent in order toprovide long term evidence ofselect thevalidity of a signature.right display or application. Itcouldcan bethe case that a certificate was valid at the timecomposed of formatted text (e.g. EDIFACT), free text or of fields from an electronic form (e-form). For example, thesignature but revoked some time later. In this event, evidence mustAdobe(tm) format "pdf" may beprovided that the document was signed before the signing key was revoked. Timestamping by a Time Stamping Authority (TSA) can provide such evidence. A time stamp is obtained by sendingused or thehash valueeXtensible Mark up Language (XML). B.3 Components ofthe given dataan Electronic Signature B.3.1 Reference to theTSA.Signature Policy Thereturned "timestamp"definition of electronic signature includes: "a commitment has been explicitly endorsed under a "Signature policy", at a given time, by a signer under an identifier, e.g. a name or a pseudonym, and optionally a role". When two independent parties want to evaluate an electronic signature, it isa signed documentfundamental thatcontains the hash value,they get theidentity ofsame result. To meet this requirement theTSA,technical components and technical aspects used in creating thetime of stamping. This proves that the given data existed before the time of stamping. Timestamping a digitalsignature(by sendingmust be referenced, this is provided by ahash of the signaturereference to theTSA) before"Signature Validation Policy". The "Signature Validation Policy" defines: * therevocationcomponents ofthe signer's private key, provides evidence that the signature has been created before the key was revoked. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 91] Internet Draft Electronic Signature Formats If a recipient wants to hold a validan electronic signaturehe will havetoensure that he has obtained a valid time stamp for it, before that key (and any key involved in the validation) is revoked. The sooner the timestamp is obtained after the signing time,be provided by thebetter. It is importantsigner; * any additional components (i.e. verifier components) used tonote that signatures may be generated "off-line" and time-stampedvalidate an electronic signature ata laterthe time of receipt byanyone, for examplea verifier and later bythe signeran arbitrator, auditor orany recipient interested inother independent parties. By signing over thevaluesignature policy identifier, the algorithm identifier and the hash of thesignature. The time stamp can thus be provided bysignature policy, the signertogether with the signed document,explicitly indicates that he orobtained by the recipient following receipt ofshe has applied thesigned document. The time stamp is NOT a component ofsignature policy in creating theElectronic Signature, butsignature. Thus, undertakes any commitments implied by theessential componentsignature policy, any indication ofthe ES with Timestamp. It is requiredcommitment type included inthis documentthe electronic signature, and the user data thatsigner's digital signatureis signed. The hash algorithm identifier and value istimestamped by a trusted source, known as a TimeStamping Authority. This document requiresincluded to ensure that both thesigner's digital signature value is timestamped by a trusted source beforesigner and verifier use exactly theelectronicsame signaturecan become a ES with Complete validation data (ES-C). The acceptable TSAs are specified in the Signature Validation Policy. Should bothpolicy. This unambiguously binds the signer and verifierbe requiredtotimestampsame definitive form of the signaturevaluepolicy has a unique binary encoding. ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 62] Internet Draft Electronic Signature Formats In order tomeetidentify unambiguously therequirements of"Signature Validation Policy" to be used to verify the signaturepolicy,an identifier and hash of the "Signature policy" must be part of the signed data. Additional information about thesignaturepolicyMAY specify a permitted time delay between(e.g. web reference to thetwo time stamps. B.4.6 Timestamping for Long Lifedocument) may be carried as "qualifiers" to the signature policy identifier. B.3.2 Commitment Type Indication The definition ofSignature before CA Key Compromises Timestamped extendedelectronicsignatures are needed when there issignature includes: "a commitment has been explicitly endorsed under arequirement to safeguard againstsignature policy, at a given time, by a signer under an identifier, e.g. a name or a pseudonym, and optionally a role". The commitment type can be indicated in thepossibility ofelectronic signature either: * explicitly using aCA key"commitment type indication" in thecertificate chain ever being compromised. A verifier may be required to provide on request, proof thatelectronic signature; * implicitly or explicitly from thecertification path andsemantics of therevocation information usedsigned data. If the indicated commitment type is explicit using a "commitment type indication" in thetimeelectronic signature, acceptance ofthea verified signaturewere valid, even inimplies acceptance of thecase where onesemantics of that commitment type. The semantics of explicit commitment types indications must be specified either as part of theissuing keyssignature policy orOCSP responder keys is later compromised. The current document defines two waysmay be registered for generic use across multiple policies. If a signature includes a commitment type indication other than one of those recognized under the signature policy the signature must be treated as invalid. How commitment is indicated usingtimestamps to protect against this compromise: * TimestamptheES with Complete validation data, when an OCSP responsesemantics of the data being signed isused to getoutside thestatusscope of this document. NOTE: Examples of commitment indicated through thecertificate fromsemantics of thesigner.data being signed, are: *Timestamp onlyAn explicit commitment made by thecertification path and revocation information references when a CRL is used to getsigner indicated by thestatustype of data being signed over. Thus, thecertificate fromdata structure being signed can have an explicit commitment within thesigner. NOTE:context of the application (e.g. EDIFACT purchase order). * An implicit commitment which is a commitment made by thesigner, verifier or both may obtainsigner because thetimestamp.data being signed over has specific semantics (meaning) which is only interpretable by humans, (i.e. free text). ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page92]63] Internet Draft Electronic Signature FormatsB.4.6.1 TimestampingB.3.3 Certificate Identifier from theES with Complete validation data WhenSigner The definition of the ETSI electronic signature includes: "a commitment has been explicitly endorsed under a signature policy, at a given time, by a signer under anOCSP response is used, it is necessaryidentifier, e.g. a name or a pseudonym, and optionally a role." In many real life environments users will be able totime stamp in particular that response inget from different CAs or even from thecasesame CA, different certificates containing the same public keyfromfor different names. The prime advantage is that a user can use theresponder would be compromised. Sincesame private key for different purposes. Multiple use of theinformation contained inprivate key is an advantage when a smart card is used to protect theOCSP responseprivate key, since the storage of a smart card isuser specific and time specific,always limited. When several CAs are involved, each different certificate may contain a different identity, e.g. as a national or as anindividual time stampemployee from a company. Thus when a private key isneededused forevery signature received. Instead of placingvarious purposes, thetime stamp only overcertificate is needed to clarify thecertification path references andcontext in which the private key was used when generating the signature. Where there is the possibility of multiple use of private keys it is necessary for therevocation information references, which includesigner to indicate to theOCSP response,verifier thetime stamp is placed onprecise certificate to be used. Many current schemes simply add theES-C. Sincecertificate after thecertification pathsigned data andrevocation information referencesthus areincluded in the ESsubject to various substitution attacks. An example of a substitution attack is a "bad" CA that would issue a certificate to someone withComplete validation data they are also protected. For the same cryptographic price, this provides an integrity mechanism overtheES with Complete validation data. Any modification can be immediately detected. It should be noticed that other meanspublic key ofprotecting/detectingsomeone else. If theintegrity ofcertificate from theES with Complete Validation Data existsigner was simply appended to the signature andcould be used. Althoughthus not protected by thetechnique requires a time stamp for everysignature,it is well suited for individual users wishingany one could substitute one certificate by another and the message would appear tohave an integrity protected copybe signed by some one else. In order to counter this kind ofallattack, thevalidated signatures they have received. By timestampingidentifier of thecomplete electronic signature, includingsigner has to be protected by the digital signatureas wellfrom the signer. Although it does not provide the same advantages as thereferencesprevious technique, another technique tothe certificates and revocation status information usedcounter that threat has been identified. It requires all CAs tosupport validationperform a Proof Of Possession ofthat signature,thetimestamp ensures that there is no ambiguity inprivate key at themeanstime ofvalidatingregistration. The problem with thatsignature. Thistechnique isreferred to as ES with eXtended validation data (ES- X), type 1 Timestamped in this document. NOTE: Trust is achieved in the references by including a hash of the data being referenced. Ifthat itis desired fordoes not provide anyreason to keep a copy ofguarantee at theadditional data being referenced,time of verification and only some proof "after theadditional dataevent" may beattached toobtained, if and only if theelectronic signature,CA keeps the Proof Of Possession inwhich caseaudit trail. In order to identify unambiguously theelectronic signature becomes a ES-X Long as defined by this document. A ES-X Long Timestamped is simplycertificate to be used for theconcatenation of a ES-X Timestamped with a copyverification of theadditional data being referenced. B.4.6.2 Timestamping Certificates and Revocation Information References Timestamping each ES with Complete validation data as defined above may not be efficient, particularly when the same setsignature an identifier ofCA certificates and CRL information is used to validate many signatures. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 93] Internet Draft Electronic Signature Formats Timestamping CA certificates will stop any attackerthe certificate fromissuing bogus CA certificates that could be claimed to existing beforetheCA key was compromised. Any bogus timestamped CA certificates will show thatsigner must be part of thecertificate was created aftersigned data. B.3.4 Role Attributes The definition of electronic signature includes: "a commitment has been explicitly endorsed under a non repudiation security policy, at a given time, by a signer under an identifier, e.g. a name or a pseudonym, and optionally a role. " ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 64] Internet Draft Electronic Signature Formats While thelegitimate CA key was compromised. Inname of thesame way, timestamping CA CRLs, will stop any attacker from issuing bogus CA CRLs which could be claimed to existing beforesigner is important, theCA key was compromised. Timestampingposition ofcommonly used certificates and CRLs can be done centrally, e.g. insidethe signer within a company or an organization can be even more important. Some contracts may only be valid if signed by aservice provider. This method reducesuser in a particular role, e.g. a Sales Director. In many cases whom theamount of datasales Director really is, is not that important but being sure that theverifier hassigner is empowered by his company totimestamp,be the Sales Director is fundamental. This document defines two different ways forexample it could reduce to just one time stamp per day (i.e.providing this feature: * by placing a claimed role name in thecase were allCMS signed attributes field; * by placing a attribute certificate containing a certified role name in thesignersCMS signed attributes field. NOTE: Another possible approach would have been to use additional attributes containing thesame CA and the CRL applies forroles name(s) in thewhole day). The information that needs to be time stamped issigner's certificate. However, it was decided notthe actual certificates and CRLs but the unambiguous referencestothose certificates and CRLs. To comply with extended validation data, type 2 Timestamped,follow thisdocument requires the following: * Allapproach as it breaks theCA certificates references and revocation information references (i.e. CRLs) used in validatingbasic philosophy of theES-C are covered bycertificate being issued for oneor more timestamp. Thus a ES-C with a timestamp signature value at time T1, can be proved valid if allprimary purpose. Also, by using separate certificates for management of theCAsigner's identity certificate andCRL references are timestamped at time T1+. B.4.7 Timestamping for Long Lifemanagement ofSignature Advances in computing increaseadditional roles can simplify theprobabilitymanagement, as new identity keys need not be issued if a use ofbeing able to break algorithms and compromise keys. Thererole istherefore a requirementto beablechanged. B.3.5.1 Claimed Role The signer may be trusted toprotect electronic signatures againststate his own role without any certificate to corroborate thisprobability. Over a period of time weaknesses may occur inclaim. In which case thecryptographic algorithms usedclaimed role can be added tocreate an electronicthe signature(e.g. dueas a signed attribute. B.3.5.2 Certified Role Unlike public key certificates that bind an identifier to a public key, Attribute Certificates bind the identifier of a certificate to some attributes, like a role. An Attribute Certificate is NOT issued by a CA but by an Attribute Authority (AA). The Attribute Authority will be most of the timeavailable for cryptoanalysis,under the control of an organization orimprovements in cryptoanalytical techniques). Before this such weaknesses become likely,averifier should take extra measurescompany that is best placed to know which attributes are relevant for which individual. The Attribute Authority may use or point tomaintainpublic key certificates issued by any CA, provided that thevalidityappropriate trust may be placed in that CA. Attribute Certificates may have various periods ofthe electronic signature. Several techniques couldvalidity. That period may beused to achievequite short, e.g. one day. While thisgoal depending on the naturerequires that a new Attribute Certificate is obtained every day, valid for that day, this can be advantageous since revocation of such certificates may not be needed. When signing, theweakened cryptography.signer will have to specify which Attribute Certificate it selects. In order tosimplify, a single technique, called Archive validation data, covering alldo so, thecases is being usedAttribute Certificate will have to be included inthis document. Archive validation data consists oftheComplete validation data and the complete certificate and revocation data, time stamped together with the electronic signature. The Archive validationsigned datais necessary if the hash function and the crypto algorithms that were usedin order tocreate the signature are no longer secure. Also, if it cannotbeassumed that the hash function usedprotected by theTime Stamping Authority is secure, then nested timestamps of Archived Electronic Signature are required.digital signature from the signer. ETSI TC-SEC,Ross,Pinkas, Ross, PopeInformational RFC [Page 94] Internet Draft Electronic Signature Formats The potential for Trusted Service Provider (TSP) key compromise should be significantly lower than user keys, because TSP(s) are expected to use stronger cryptography and better key protection. It can be expected that new algorithms (or old ones with greater key lengths) will be used.Informational RFC [Page 65] Internet Draft Electronic Signature Formats Insuch a case, a sequence of timestamps will protect against forgery. Each timestamp needsorder to identify unambiguously the attribute certificate(s) to beaffixed before eitherused for thecompromiseverification of thesigning key orsignature an identifier of thecracking ofattribute certificate(s) from thealgorithms used bysigner must be part of theTSA. TSAs (TimeStamping Authorities) should have long keys (e.g. which atsigned data. B.3.5 Signer Location In some transactions thetimepurported location ofdrafting this document was 2048 bits forthesigning RSA algorithm) and/or a "good" or different algorithm. Nested timestamps will also protectsigner at theverifier against key compromisetime he orcracking the algorithm on the old electronic signatures. The process willshe applies his signature may need to beperformed and iterated beforeindicated. For this reason an optional location indicator must be able to be included. In order to provide indication of thecryptographic algorithms used for generatinglocation of the signer at theprevious time stamp are no longer secure. Archive validation data may thus bear multiple embeddedtimestamps. B.4.8 Reference to Additional Data Using type 1he or2 of Timestamped extended validation data verifiers still needs to keep track of allshe applied his signature a location attribute may be included in thecomponents that were usedsignature. B.3.6 Signing Time The definition of electronic signature includes: "a commitment has been explicitly endorsed under a signature policy, at a given time, by a signer under an identifier, e.g. a name or a pseudonym, and optionally a role. " There are several ways tovalidate the signature,address this problem. The solution adopted inorder to be ablethis document is toretrieve them again later on. These components may be archived by an external source likesign over atrusted service provider, intime whichcase referenced information thatthe signer claims isprovided as part ofthe signing time (i.e. claimed signing time) and to require a trusted time stamp to be obtained when building a ES withComplete validation data (ES-C) is adequate.Timestamp. When a verifier accepts a signature, the two times must be within acceptable limits. Theactual certificates and CRL information referencesolution that is adopted in this document offers theES-Cmajor advantage that electronic signatures can begathered when needed for arbitration. B.4.9 Timestamping for Mutual Recognition In some business scenarios both the signer and the verifier needgenerated without any on- line connection totimestamp their own copy of the signature value. Ideally the two timestamps shoulda trusted time source (i.e. they may beas close as possible to each other. Example: A contract is signed bygenerated off-line). Thus twoparties Adates andB representing their respective organizations, to timestamptwo signatures are required: * a signing time indicated by the signer andverifierwhich is part of the datatwo approaches are possible: * undersigned by thetermssigner (i.e. part of thecontract pre-defined common "trusted" TSA may be used;basic electronic signature); *if both organizations run their own timestamping services, A and B can have the transaction timestampeda time indicated bythese two timestamping services.Ina TimeStamping Authority (TSA) which is signed over thelatter case,digital signature value of the basic electronic signature. The signer, verifier or both may obtain the TSA timestamp. In order for an electronic signaturewill onlyto beconsidered as valid, if both timestamps were obtained in due time (i.e. there should notvalid under a signature policy, it must be timestamped by along delay between obtaining the two timestamps). Thus, neither A nor B can repudiateTSA where the signing time as indicated bytheir own timestamping service. Therefore, Athe signer andB do not need to agree onthe time of time stamping as indicated by acommon "trusted"TSA must be "close enough" toget a valid transaction.meet the requirements of the signature validation policy. ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page95]66] Internet Draft Electronic Signature FormatsIt is important to note that signatures may be generated "off-line" and timestamped at"Close enough" means alater time by anyone, e.g. by the signerfew minutes, hours orany recipient interested in validatingeven days according to thesignature."Signature Validation Policy". NOTE: The need for Timestamping is further explained in clause B.4.5. A further optional attribute is defined in this document to timestampoverthesignature fromcontent, to provide proof of thesigner can thus be provided byexistence of thesigner together withcontent, at thesigned document, and /or obtainedtime indicated by theverifier following receipt of the signed document. The business scenariostimestamp. Using this optional attribute a trusted secure time maythus dictate that one or more of the long- term signature timestamping methods describe above be used. This will need tobepart of a mutually agreedobtained before theSignature Validation Policy withdocument ispart of the overall signature policysigned and included underwhichthe digital signature. This solution requires an on-line connection to a trusted timestamping service before generating the signature and may not represent the precise signing time, since it can be obtained in advance. However, this optional attribute may be used by the signer tosupportprove that thebusiness relationship betweensigned object existed before thetwo parties. B.4.10 TSA Key Compromise TSA servers should be builtdate included insuch a way that once the private signature key is installed, that there is minimal likelihood of compromise over as long as possible period. Thusthevalidity period fortimestamp (see 3.12.3, Content Timestamp). Also, theTSA's keyssigning time should beas long as possible. Bothbetween theES-Ttime indicated by this timestamp andthe ES-C contain at least onetimestamp overindicated by thesigner's signature. In orderES-T timestamp. B.4 Components of Validation Data B.4.1 Revocation Status Information A verifier will have toprotect againstprove that thecompromisecertificate of theprivate signature key used to produce that timestamp,signer was valid at theArchive validation datatime of the signature. This can beused whendone by either: * using Certificate Revocation Lists (CRLs); * using responses from an on-line certificate status server (for example; obtained through the OCSP protocol). B.4.2 CRL Information When using CRLs to get revocation information, adifferent TimeStamping Authority key is involvedverifier will have toproduce the additional timestamp. If it is believedmake sure that he or she gets at theTSA key used in providing an earlier timestamp may ever be compromised (e.g. outside its validity period), thentime of theES-Afirst verification the appropriate certificate revocation information from the signer's CA. This should beused. For extremely long periods this may be applied repeatedly using new TSA keys. B.5 Multiple Signatures Some electronic signatures may only be valid if they bear more than onedone as soon as possible to minimize the time delay between the generation and verification of the signature. Thisisinvolves checking that thecase generally when a contractsigner certificate serial number issigned between two parties.not included in the CRL. Theordering ofsigner, thesignatures mayverifier or any other third party maynotobtain either this CRL. If obtained by the signer, then it must beimportant, i.e. one may or may not needconveyed tobe applied beforetheother. Several forms of multiple and counter signatures need toverifier. It may besupported, which fall into two basic categories: * independent signatures; * embedded signatures. Independent signatures are parallel signatures whereconvenient to archive theorderingCRL for ease of subsequent verification or arbitration. Alternatively, provided thesignaturesCRL isnot important. The capability to have more than one independent signature over the same data must be provided. Embedded signatures are applied one afterarchived elsewhere which is accessible for theother and are used wherepurpose of arbitration, then theorderserial number of thesignatures are applied is important. The capability to sign over signed data mustCRL used may beprovided. These forms are described in clause 4.13. All other multiple signature schemes, e.g. a signed documentarchived together witha countersignature, double countersignatures or multiple signatures, can be reduced to one or more occurrence oftheabove two cases.verified electronic signature. ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page96]67] Internet Draft Electronic Signature FormatsAnnex C (informative): C.1 Signature Policy and Signature Validation Policy The definition ofIt may happen that the certificate serial number appears in the CRL but with the status "suspended" (i.e. on hold). In such a case, the electronic signaturementions: "a commitment has been explicitly endorsed under a "Signature Policy",is not yet valid, since it is not possible to know whether the certificate will or will not be revoked at the end of the suspension period. If agiven time, by a signer under an identifier, e.g.decision has to be taken immediately then the signature has to be considered as invalid. If anamedecision can wait until the end of the suspension period, then two cases are possible: * the certificate serial number has disappeared from the list and thus the certificate can be considered as valid and that CRL must be captured and archived either by the verifier ora pseudonym,elsewhere andoptionally a role. " Electronic signatures are commonly applied withinbe kept accessible for thecontextpurpose ofa legal or contractual framework. This establishesarbitration. * therequirementscertificate serial number has been maintained on the list with the status definitively revoked and thus the electronicsignaturessignature must be considered as invalid andany special semantics (e.g. agreement, intent). These requirementsdiscarded. At this point the verifier may bedefined in very general abstract termsconvinced that he or she got a valid signature, but is not yet interms of detailed rules. The specific semantics associated with an electronica position to prove at a later time that the signatureimplied bywas verified as valid. Before addressing this point, an alternative to CRL is to use OCSP responses. B.4.3 OCSP Information When using OCSP to get revocation information , alegalverifier will have to make sure that he orcontractual framework are outsideshe gets at thescopetime ofthis document. Ifthesignature policy is recognized, withinfirst verification an OCSP response that contains thelegal/contractual context,status "valid". This should be done asproviding commitment, thensoon as possible after thesigner explicitly agrees with termsgeneration of the signature. The signer, the verifier or any other third party may fetch this OCSP response. Since OSCP responses are transient andconditions whichthus areimplicitly or explicitly part ofnot archived by any TSP including CA, it is thesigned data. When two independent parties wantresponsibility of every verifier toevaluate an electronic signature,make sure that it isfundamental that they get the same result. Itstored in a safe place. The simplest way istherefore important that the conditions agreed by the signer at the time of signing are indicatedto store them associated with theverifier and any arbitrator.electronic signature. Anaspect that enables thisalternative would be to store them in some storage so that they can then beknown by all parties iseasily retrieved. In thesignature policy. The technical implicationssame way as for the case of thesignature policy onCRL, it may happen that theelectronic signaturecertificate is declared as invalid but withallthevalidation data are calledsecondary status "suspended". In such a case, the"Signature Validation Policy". Theelectronic signaturevalidation policy specifies the rules usedis not yet valid, since it is not possible tovalidateknow whether thesignature. This document doescertificate will or will notmandate the form and encoding ofbe revoked at thespecificationend of thesignature policy. However, forsuspension period. If agiven signature policy there mustdecision has to beone definitive form thattaken immediately then the electronic signature hasa unique binary encoded value. This document includes,to be considered asan option,invalid. If aformal structure for signature validation policy based on the use of Abstract Syntax Notation 1 (ASN.1). Givendecision can wait until thespecificationend of thesignature policy and its hash value an implementation ofsuspension period, then two cases are possible: * An OCSP response with averification process must obey the rules defined invalid status is obtained at a later date and thus thespecification. This document places no restriction on how it shouldcertificate can beimplemented. Provide the implementation conforms to the conformance requirementsconsidered asdefine in clause 14.1, 14.2valid and14.3 implementation options include:that OCSP response must be captured. ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page97]68] Internet Draft Electronic Signature FormatsA validation process* An OCSP response with an invalid status is obtained with a secondary status indicating thatsupportsthe certificate is definitively revoked and thus the electronic signature must be considered as invalid and discarded. As in the CRL case, at this point, the verifier may be convinced that he or she got aspecificvalid signature, but is not yet in a position to prove at a later time that the signaturepolicywas verified asidentified byvalid. B.4.4 Certification Path A verifier will have to prove that the certification path was valid, at the time of the signature, up to a trust point according to the naming constraints and the certificate policy constraints from thesignature policy OID. Such an implementation should conform"Signature Validation Policy". It will be necessary toa human readable description providedcapture all theprocessing rulescertificates from the certification path, starting with those from the signer and ending up with those of thesignature policy are clearly defined. However, if additional policies need to be supported, then such an implementation would need to be customized for each additional policy. This typeself-signed certificate from one trusted root ofimplementation may be simpler to implement initially, but canthe "Signature Validation Policy". In addition, it will bedifficult to enhancenecessary tosupport numerous additional signature policies. A validation process that is dynamically programmable and ablecapture the Authority Revocation Lists (ARLs) toadapt its validation rules in accordance with a descriptionprove than none of thesignature policy provided in a computer-processable language. This present document defines such a policy using an ASN.1 structure (see 6.1). This type of implementation could support multiple signature policies without being modified every time, provided allCAs from thevalidation rules specified as partchain was revoked at the time of thesignature policy are known bysignature. As in theimplementation. (i.e. only requires modification if there are additional rules specified). The precise content ofOCSP case, at this point, the verifier may be convinced that he or she got asignature policyvalid signature, but is notmandated by the current document. However,yet in asignature policy must be sufficiently definitiveposition toavoid any ambiguityprove at a later time that the signature was verified as valid. B.4.5 Timestamping for Long Life of Signature An important property for long standing signatures is that a signature, having been found once toits implementation requirements. Itbe valid, must continue to beabsolutely clear under which conditions an electronic signature shouldso months or years later. A signer, verifier or both may beaccepted. For this reason, it should contain the following information: * General information about the signature policy which includes: -required to provide on request, proof that aunique identifier of the policy; -digital signature was created or verified during thenamevalidity period of theissuer ofall thepolicy; -certificates that make up thedatecertificate path. In this case, thepolicy was issued; -signer, verifier or both will also be required to provide proof that all thefield of application ofuser and CA certificates used were not revoked when thepolicy. * Thesignatureverification policy which includes: - the signing period, -was created or verified. It would be quite unacceptable, to consider alist of recognized commitment types; - rules for Use of Certification Authorities; - rules for Use of Revocation Status Information; - rules for Use of Roles; - rules for use of Timestamping and Timing; -signatureverification dataas invalid even if the keys or certificates were later compromised. Thus there is a need to beprovided byable to demonstrate that thesigner/collected by verifier; - any constraints onsignaturealgorithms and key lengths. * Otherkeys was valid around the time that the signaturepolicy rules requiredwas created tomeet the objectivesprovide long term evidence of the validity of a signature.VariationsIt could be the case that a certificate was valid at the time of thevalidation policy rules may apply to different commitment types.signature but revoked some time later. In this event, evidence must be provided that the document was signed before the signing key was revoked. ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page98]69] Internet Draft Electronic Signature FormatsC.2 Identification of Signature Policy When dataTimestamping by a Time Stamping Authority (TSA) can provide such evidence. A time stamp issignedobtained by sending thesigner indicateshash value of thesignature policy applicablegiven data tothat electronic signature by including an object identifier for the signature policy withthesignature.TSA. Thesigner and verifier must apply the rules specified byreturned "timestamp" is a signed document that contains theidentified policy. In addition tohash value, theidentifieridentity of thesignature policy the signer must includeTSA, and thehashtime ofthe signature policy, so it can be verified that the policy selected by the signer is the identical to the one being used the verifier. A signature policy may be qualified by additional information.stamping. Thiscan includes: * A URL where a copy of the Signature Policy may be obtained; * A user noticeproves thatshould be displayed when the signature is verified; If no signature policy is identified thenthesignature may be assumed to have been generated/verified without any policy constraints, and hence may begivenno specific legal or contractual significance throughdata existed before thecontexttime of stamping. Timestamping a digital signaturepolicy. A "Signature Policy" will be identifiable by an OID (Object Identifier) and verifiable using(by sending a hash of the signaturepolicy. C.3 General Signature Policy Information General information should be recorded aboutto thesignature policy along withTSA) before thedefinitionrevocation of therules which formsigner's private key, provides evidence that the signaturepolicy as described in subsequent subclauses. This should include: * Policy Object Identifier: The "Signature Policy"has been created before the key was revoked. If a recipient wants to hold a valid electronic signature he willbe identifiable by an OID (Object Identifier) whose last component (i.e. right most) is an integer that is specifichave to ensure that he has obtained aparticular version issued onvalid time stamp for it, before that key (and any key involved in thegiven date. * Date of issue: Whenvalidation) is revoked. The sooner the"Signature Policy" was issued. * Signature Policy Issuer name: An identifier fortimestamp is obtained after thebody responsible for issuingsigning time, theSignature Policy. Thisbetter. It is important to note that signatures may beusedgenerated "off-line" and time-stamped at a later time by anyone, for example by the signer orverifying in deciding if a policy is to be trusted,any recipient interested inwhich case the signer/verifier must authenticatetheoriginvalue of thesignature policy as coming from the identified issuer. * Signing period:signature. Thestarttimeand date, optionallystamp can thus be provided by the signer together withan end time and date, fortheperiod over whichsigned document, or obtained by thesignature policy may be used to generate electronic signatures. * Fieldrecipient following receipt ofapplication: This defines in general termsthegeneral legal/contract/application contexts in which the signature policysigned document. The time stamp isto be used andNOT a component of thespecific purposes for whichElectronic Signature, but theelectronic signatureessential component of the ES with Timestamp. It isto be applied. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 99] Internet Draft Electronic Signature Formats C.4 Recognized Commitment Types Therequired in this document that signer's digital signaturevalidation policy may recognize one or more types of commitment as being supportedvalue is timestamped byelectronic signatures produced undera trusted source, known as a TimeStamping Authority. This document requires that thesecurity policy.If an electronicsigner's digital signaturedoes not containvalue is timestamped by arecognized commitment type then the semantics oftrusted source before the electronic signatureis dependent on thecan become a ES with Complete validation databeing signed and the context in which it is being used. Only recognized commitment types(ES-C). The acceptable TSAs areallowedspecified inan electronic signature. The definition of a commitment type includes: * the object identifier forthecommitment; * the contractual/legal/application context in whichSignature Validation Policy. Should both thesignature maysigner and verifier beused (e.g. submission of messages); * a description ofrequired to timestamp thesupport provided withinsignature value to meet thetermsrequirements of thecontext (e.g. proof that the identified source submitted the message ifsignature policy, the signatureis createdpolicy MAY specify a permitted time delay between the two time stamps. B.4.6 Timestamping before CA Key Compromises Timestamped extended electronic signatures are needed whenmessage submissionthere isinitiated). The definitiona requirement to safeguard against the possibility of acommitment type canCA key in the certificate chain ever being compromised. A verifier may beregistered: * as part ofrequired to provide on request, proof that thevalidation policy; * as part ofcertification path and theapplication/contract/legal environment; * as part of generic registerrevocation information used a the time ofdefinitions. The legal/contractual context will determinetherules applied tosignature were valid, even in thesignature, as defined bycase where one of thesignature policy and its recognized commitment types, make it fit for purpose intended. C.5 Rules for Useissuing keys or OCSP responder keys is later compromised. ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 70] Internet Draft Electronic Signature Formats The current document defines two ways ofCertification Authorities The certificateusing timestamps to protect against this compromise: * Timestamp the ES with Complete validationprocessdata, when an OCSP response is used to get the status of theverifier, and hencecertificate from thecertificates that may be used bysigner. * Timestamp only thesigner forcertification path and revocation information references when avalid electronic signature, may be constrained byCRL is used to get thecombinationstatus of thetrust point andcertificatepath constraints infrom thesignature validation policy. C.5.1 Trust Points The signature validation policy definessigner. NOTE: thecertification authority trust points that aresigner, verifier or both may obtain the timestamp. B.4.6.1 Timestamping the ES with Complete validation data When an OCSP response is used, it is necessary to time stamp in particular that response in the case the key from the responder would beusedcompromised. Since the information contained in the OCSP response is user specific and time specific, an individual time stamp is needed for every signatureverification. Several trust points may be specified under one signature policy. Specific trust points may be specified for a particular typereceived. Instead ofcommitment defined underplacing the time stamp only over thesignature policy. For a signature to be valid acertification pathmust exists betweenreferences and theCertification Authority that has grantedrevocation information references, which include thecertificate selected byOCSP response, thesigner (i.e.time stamp is placed on theused user-certificate)ES-C. Since the certification path andonerevocation information references are included in the ES with Complete validation data they are also protected. For the same cryptographic price, this provides an integrity mechanism over the ES with Complete validation data. Any modification can be immediately detected. It should be noticed that other means of protecting/detecting thetrust pointintegrity of the"SignatureES with Complete ValidationPolicy". ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 100] Internet Draft Electronic Signature Formats C.5.2 Certification Path There mayData exist and could beconstraints onused. Although theusetechnique requires a time stamp for every signature, it is well suited for individual users wishing to have an integrity protected copy ofcertificates issued by one or more CA(s) in the certificate chain and trust points. The two prime constraints are certificate policy constraints and naming constraints: * Certificate policy constraints limitall thecertification chain betweenvalidated signatures they have received. By timestamping theuser certificate andcomplete electronic signature, including thecertificate ofdigital signature as well as thetrusted pointreferences toa given set of certificate policies, or equivalents identified through certificate policy mapping. * The naming constraints limittheformscertificates and revocation status information used to support validation ofnamesthat signature, theCAtimestamp ensures that there isallowed to certify. Name constraints are particularly important when a "Signature policy" identifies more than one trust point. In this case, a certificateno ambiguity in the means ofa particular trusted point may only be usedvalidating that signature. This technique is referred toverify signatures from usersas ES withnames permitted under the name constraint. Certificate Authorities may be organizedeXtended validation data (ES-X), type 1 Timestamped ina tree structure,thistree structure may represent the trust relationship between various CA(s) anddocument. NOTE: Trust is achieved in theusers CA. Alternatively,references by including amesh relationship may exist wherehash of the data being referenced. If it is desired for any reason to keep acombinationcopy oftree and peer cross-certificatesthe additional data being referenced, the additional data may beused. The requirement ofattached to thecertificate pathelectronic signature, in which case the electronic signature becomes a ES-X Long as defined by thisdocumentdocument. A ES-X Long Timestamped isthat it providessimply thetrust relationship between allconcatenation of a ES-X Timestamped with a copy of theCAsadditional data being referenced. ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 71] Internet Draft Electronic Signature Formats B.4.6.2 Timestamping Certificates and Revocation Information References Timestamping each ES with Complete validation data as defined above may not be efficient, particularly when thesigners user certificate. The starting point from a verification pointsame set ofview,CA certificates and CRL information is used to validate many signatures. Timestamping CA certificates will stop any attacker from issuing bogus CA certificates that could be claimed to existing before the"trust point". A trust point is usually aCA key was compromised. Any bogus timestamped CA certificates will show thatpublishes self-certified certificates, isthestarting point from whichcertificate was created after theverifier verifieslegitimate CA key was compromised. In thecertificate chain. Naming constraints may applysame way, timestamping CA CRLs, will stop any attacker fromthe trust point, inissuing bogus CA CRLs whichcase they apply throughoutcould be claimed to existing before thesetCA key was compromised. Timestamping of commonly used certificatesthat make up the certificate path down to the signer's user certificate. Policy constraintsand CRLs can beeasier to process but to be effective requiredone centrally, e.g. inside a company or by a service provider. This method reduces thepresenceamount ofa certificate policy identifierdata the verifier has to timestamp, for example it could reduce to just one time stamp per day (i.e. in thecertificates used in a certification path. Certificate path processing, thus generally starts with one ofcase were all thetrust point fromsigners use thesignature policysame CA andends withtheuser certificate. The certificate path processing procedures defined in RFC 2459 clause 6 identifiesCRL applies for thefollowing initial parameterswhole day). The information thatare selected byneeds to be time stamped is not theverifier in certificate path processing: * acceptable certificate policies; * naming constraints in terms of constrained and excluded naming subtree; * requirements for explicit certificate policy indicationactual certificates andwhether certificate policy mapping are allowed; * restrictions onCRLs but thecertificate path length. The signatureunambiguous references to those certificates and CRLs. To comply with extended validationpolicy identifies constraints on these parameters. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 101] Internet Draft Electronic Signature Formats C.5 Revocation Rules The signature policy should defines rules specifying requirements fordata, type 2 Timestamped, this document requires theuse of certificatefollowing: * All the CA certificates references and revocationlists (CRLs) and/or on-line certificate status check service to checkinformation references (i.e. CRLs) used in validating thevalidity ofES-C are covered by one or more timestamp. Thus acertificate. These rules specify the mandated minimum checks that must be carried out. It is expected that in many cases either check may be selectedES-C withCRLs checks being carried out for certificate status thata timestamp signature value at time T1, can be proved valid if all the CA and CRL references areunavailable from OCSP servers. The verifier may take into account informationtimestamped at time T1+. B.4.7 Timestamping for Long Life of Signature Advances in computing increase thecertificate in deciding how bestprobability of being able tocheck the revocation status (e.g.break algorithms and compromise keys. There is therefore acertificate extension field about authority information access orrequirement to be able to protect electronic signatures against this probability. Over aCRL distribution point) provided that it does not conflict withperiod of time weaknesses may occur in the cryptographic algorithms used to create an electronic signaturepolicy revocation rules. C.6 Rules for(e.g. due to theUse of Roles Roles can be supported as claimed rolestime available for cryptoanalysis, oras certified roles using Attribute Certificates. C.6.1 Attribute Values When signature underimprovements in cryptoanalytical techniques). Before this such weaknesses become likely, arole is mandated byverifier should take extra measures to maintain thesignature policy, then either Attribute Certificates may be used orvalidity of thesigner may provide a claimed role attribute. The acceptable attribute types or values mayelectronic signature. Several techniques could bedependentused to achieve this goal depending on thetypenature ofcommitment. For example, a user may have several roles that allowtheuserweakened cryptography. In order tosign data that imply commitments based on one or more of his roles. C.6.2 Trust Points for Certified Attributes When a signature undersimplify, acertified role is mandated bysingle technique, called Archive validation data, covering all thesignature policy, Attribute Authorities arecases is being usedand need to be validated as partin this document. ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 72] Internet Draft Electronic Signature Formats Archive validation data consists of theoverallComplete validationofdata and the complete certificate and revocation data, time stamped together with the electronic signature. Thetrust points for Attribute Authorities do not need to beArchive validation data is necessary if thesame ashash function and thetrust pointscrypto algorithms that were used toevaluate a certificate from the CA of the signer. Thuscreate thetrust point for verifying roles need notsignature are no longer secure. Also, if it cannot be assumed that thesame as trust pointhash function usedto validateby thecertificate pathTime Stamping Authority is secure, then nested timestamps ofthe user's key. Naming and certification policy constraints may apply to the AA in similar circumstance to when they applyArchived Electronic Signature are required. The potential for Trusted Service Provider (TSP) key compromise should be significantly lower than user keys, because TSP(s) are expected toCA. Constraints on the AAuse stronger cryptography andCA need notbetter key protection. It can beexactly the same. AA(s) mayexpected that new algorithms (or old ones with greater key lengths) will beused whenused. In such asigner is creatingcase, asignature on behalfsequence ofan organization, they cantimestamps will protect against forgery. Each timestamp needs to beparticularly useful whenaffixed before either thesignature represents an organizational role. AA(s) may or may not becompromise of thesame authority as CA(s). Thus,signing key or of theSignature Policy identifies trust points that can be used for Attribute Authorities, either by reference tocracking of thesame trust points asalgorithms usedfor Certification Authorities, or by an independent list. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 102] Internet Draft Electronic Signature Formats C.6.3 Certification Path for Certified Attributes Attribute Authorities may be organized in a tree structure in similar way to CA whereby theAAs areTSA. TSAs (TimeStamping Authorities) should have long keys (e.g. which at theleafstime ofsuch a tree. Naming and other constraints may be required on attribute certificate paths indrafting this document was 2048 bits for the signing RSA algorithm) and/or asimilar manner to other electronic signature certificate paths. Thus,"good" or different algorithm. Nested timestamps will also protect theSignature Policy identify constraintsverifier against key compromise or cracking the algorithm on thefollowing parameters used as inputold electronic signatures. The process will need tothe certificate path processing: * acceptable certificate policies, including requirements for explicit certificate policy indication and whether certificate policy mapping is allowed; * naming constraints in terms of constrainedbe performed andexcluded naming subtrees; * restrictions oniterated before thecertificate path length. C.7 Rulescryptographic algorithms used for generating theUseprevious time stamp are no longer secure. Archive validation data may thus bear multiple embedded time stamps. B.4.8 Reference to Additional Data Using type 1 or 2 ofTimestamping and Timing The following rules should be used when specifying, constraints onTimestamped extended validation data verifiers still needs to keep track of all thecertificate paths for timestamping authorities, constraints oncomponents that were used to validate thetimestamping authority names and general timing constraints. C.7.1 Trust Points and Certificate Paths Signature keys from timestamping authorities will needsignature, in order to besupportedable to retrieve them again later on. These components may be archived by an external source like acertification path.trusted service provider, in which case referenced information that is provided as part of the ES with Complete validation data (ES-C) is adequate. Thecertification path used for timestamping authorities requires a trustpointactual certificates andpossibly path constraintsCRL information reference in thesame way that the certificate pathES-C can be gathered when needed forthe signer's key. C.7.2arbitration. B.4.9 TimestampingAuthority Names Restrictions may need to be placed by the validation policy onfor Mutual Recognition In some business scenarios both thenamed entities that may act a timestamping authorities. C.7.3 Timing Constraints - Caution Period Before an electronic signature may really be valid,signer and the verifierhasneed tobe sure that the holdertimestamp their own copy of theprivate key was really the only one in possession of key atsignature value. Ideally thetime of signing. However, theretwo timestamps should be as close as possible to each other. Example: A contract isan inevitable delay between a compromise or loss of key being noted,signed by two parties A anda report of revocation being distributed. To allow greater confidence inB representing their respective organizations, to timestamp thevaliditysigner and verifier data two approaches are possible: * under the terms ofa signature, a "cautionary period" may be identified before a signaturethe contract pre-defined common "trusted" TSA may besaid to be valid with high confidence. A verifier may revalidate a signature after this cautionary signature, or wait for this period before validating a signature. The validation policy may specify such a cautionary period.used; ETSI TC-SEC,Ross,Pinkas, Ross, Pope Informational RFC [Page103]73] Internet Draft Electronic Signature FormatsC.7.4 Timing Constraints - Timestamp Delay There will be some delay between the time that a signature is created* if both organizations run their own timestamping services, A and B can have thetime the signer's digital signature is timestamped. However, the longer this elapsed period the greater the risk of the signature being invalidated due to compromise or deliberate revocation of its private signing keytransaction timestamped by these two timestamping services. In thesigner. Thuslatter case, the electronic signaturepolicywill only be considered as valid, if both timestamps were obtained in due time (i.e. there shouldspecifynot be amaximum acceptablelong delay between obtaining the two timestamps). Thus, neither A nor B can repudiate the signing timeas claimedindicated bythe signertheir own timestamping service. Therefore, A andthe time included within the timestamp. C.8 Rules for Verification DataB do not need tobe followed By specifying the requirementsagree on a common "trusted" TSA to get a valid transaction. It is important to note that signatures may be generated "off-line" and timestamped at a later time by anyone, e.g. by the signerand verifieror any recipient interested in validating theresponsibilities ofsignature. The timestamp over thetwo partiessignature from the signer can thus beclearly defined to establish all the necessary information. These verification data rules should include: * requirements onprovided by the signerto provide giventogether with the signedattributes; * requirements ondocument, and /or obtained by the verifierto obtain additional certificates, CRLs, resultsfollowing receipt ofon line certificate status checks and to use timestamps (if no already provided bythesigner). C.9 Rules for Algorithm Constraints and Key Lengthssigned document. Thesignature validation policybusiness scenarios mayidentify a set of signing algorithms (hashing, public key, combinations) and minimum key lengthsthus dictate thatmay be used: * by the signer in creating the signature; * in end entity public key Certificates; * CA Certificates; * attribute Certificates; * byone or more of the long- term signature timestampingauthority. C.10 Othermethods describe above be used. This will need to be part of a mutually agreed the Signature Validation PolicyRules Thewith is part of the overall signature policymay specify additional policy rules, for example rules that relateunder which digital signature may be used to support theenvironment used bybusiness relationship between thesigner. These additional rules maytwo parties. B.4.10 TSA Key Compromise TSA servers should bedefinedbuilt incomputer processable and/or human readable form. C.11 Signature Policy Protection When signer or verifier obtainssuch acopyway that once the private signature key is installed, that there is minimal likelihood of compromise over as long as possible period. Thus theSignature Policy from an issuer,validity period for thesourceTSA's keys should beauthenticated (for example by using electronic signatures). When the signer references a signature policyas long as possible. Both theObject Identifier (OID) ofES-T and thepolicy,ES-C contain at least one time stamp over thehash value andsigner's signature. In order to protect against thehash algorithm OIDcompromise of the private signature key used to produce thatpolicy musttimestamp, the Archive validation data can beincluded inused when a different TimeStamping Authority key is involved to produce theElectronic Signature. ETSI TC-SEC, Ross, Pinkas, Pope Informational RFC [Page 104] Internet Draft Electronic Signature Formats Itadditional timestamp. If it isa mandatory requirement of this present documentbelieved that thesignature policy value computes to one, andTSA key used in providing an earlier timestamp may ever be compromised (e.g. outside its validity period), then the ES-A should be used. For extremely long periods this may be applied repeatedly using new TSA keys. B.5 Multiple Signatures Some electronic signatures may only be valid if they bear more than onehash value using the specified hash algorithm.signature. Thismeans that there must be a single binary value ofis theencoded formcase generally when a contract is signed between two parties. The ordering of thesignature policy for the unique hash value tosignatures may or may not becalculated. For example, thereimportant, i.e. one mayexist a particular file type, length and format on whichor may not need to be applied before thehash value is calculated which is fixedother. ETSI TC-SEC, Pinkas, Ross, Pope Informational RFC [Page 74] Internet Draft Electronic Signature Formats Several forms of multiple anddefinitive for a particular signature policy. The hash valuecounter signatures may need to beobtained by:supported, which fall into two basic categories: * independent signatures; * embedded signatures. Independent signatures are parallel signatures where thesigner performing his own computationordering of thehashsignatures is not important. The capability to have more than one independent signature over thesignature policy using his preferred hash algorithm permitted bysame data must be provided. Embedded signatures are applied one after thesignature policy,other and are used where thedefinitive binary encoded form. the signer, having verified the source of the policy, may use both the hash algorithm andorder thehash value includedsignatures are applied is important. The capability to sign over signed data must be provided. These forms are described inthe computer processable formclause 3.13. All other multiple signature schemes, e.g. a signed document with a countersignature, double countersignatures or multiple signatures, can be reduced to one or more occurrence of thepolicy (see section 6.1).above two cases. ETSI TC-SEC,Ross,Pi