Electronic Signatures and Infrastructures (ESI); CAdES digital signatures - Testing Conformance and Interoperability; Part 4: Testing Conformance of CAdES baseline signatures

DTS/ESI-0019124-4

General Information

Status
Published
Publication Date
23-Jun-2016
Current Stage
12 - Completion
Due Date
06-Jul-2016
Completion Date
24-Jun-2016
Mandate
Ref Project

Buy Standard

Standard
ETSI TS 119 124-4 V1.1.1 (2016-06) - Electronic Signatures and Infrastructures (ESI); CAdES digital signatures - Testing Conformance and Interoperability; Part 4: Testing Conformance of CAdES baseline signatures
English language
32 pages
sale 15% off
Preview
sale 15% off
Preview

Standards Content (Sample)

ETSI TS 119 124-4 V1.1.1 (2016-06)






TECHNICAL SPECIFICATION
Electronic Signatures and Infrastructures (ESI);
CAdES digital signatures -
Testing Conformance and Interoperability;
Part 4: Testing conformance of CAdES baseline signatures

---------------------- Page: 1 ----------------------
2 ETSI TS 119 124-4 V1.1.1 (2016-06)



Reference
DTS/ESI-0019124-4
Keywords
CAdES, conformance, e-commerce, electronic
signature, profile, security, testing
ETSI
650 Route des Lucioles
F-06921 Sophia Antipolis Cedex - FRANCE

Tel.: +33 4 92 94 42 00  Fax: +33 4 93 65 47 16

Siret N° 348 623 562 00017 - NAF 742 C
Association à but non lucratif enregistrée à la
Sous-Préfecture de Grasse (06) N° 7803/88

Important notice
The present document can be downloaded from:
http://www.etsi.org/standards-search
The present document may be made available in electronic versions and/or in print. The content of any electronic and/or
print versions of the present document shall not be modified without the prior written authorization of ETSI. In case of any
existing or perceived difference in contents between such versions and/or in print, the only prevailing document is the
print of the Portable Document Format (PDF) version kept on a specific network drive within ETSI Secretariat.
Users of the present document should be aware that the document may be subject to revision or change of status.
Information on the current status of this and other ETSI documents is available at
https://portal.etsi.org/TB/ETSIDeliverableStatus.aspx
If you find errors in the present document, please send your comment to one of the following services:
https://portal.etsi.org/People/CommiteeSupportStaff.aspx
Copyright Notification
No part may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying
and microfilm except as authorized by written permission of ETSI.
The content of the PDF version shall not be modified without the written authorization of ETSI.
The copyright and the foregoing restriction extend to reproduction in all media.

© European Telecommunications Standards Institute 2016.
All rights reserved.

TM TM TM
DECT , PLUGTESTS , UMTS and the ETSI logo are Trade Marks of ETSI registered for the benefit of its Members.
TM
3GPP and LTE™ are Trade Marks of ETSI registered for the benefit of its Members and
of the 3GPP Organizational Partners.
GSM® and the GSM logo are Trade Marks registered and owned by the GSM Association.
ETSI

---------------------- Page: 2 ----------------------
3 ETSI TS 119 124-4 V1.1.1 (2016-06)
Contents
Intellectual Property Rights . 5
Foreword . 5
Modal verbs terminology . 5
1 Scope . 6
2 References . 6
2.1 Normative references . 6
2.2 Informative references . 6
3 Definitions and abbreviations . 7
3.1 Definitions . 7
3.2 Abbreviations . 7
4 Overview . 7
5 Testing conformance to CAdES-B-B signatures . 8
5.1 Introduction . 8
5.2 Testing CMS Signature elements . 8
5.2.1 Testing algorithm requirements . 8
5.2.2 Testing content-type . 8
5.2.2.1 General . 8
5.2.2.2 Test assertions common to CAdES baseline and extended signatures . 8
5.2.2.3 Test assertions specific to CAdES baseline signatures . 9
5.2.3 Testing message-digest . 9
5.2.4 Testing CMSversion . 9
5.2.5 Testing DigestAlgorithmIdentifiers . 9
5.2.6 Testing EncapsulatedContentInfo . 9
5.2.7 Testing SignedData.certificates . 10
5.2.7.1 General . 10
5.2.7.2 Test assertions common to CAdES baseline and extended signatures . 10
5.2.7.3 Test assertions specific to CAdES baseline signatures . 10
5.2.8 Testing SignedData.crls . 10
5.2.9 Testing SignerInfos . 11
5.3 Testing basic attributes for CAdES signatures . 11
5.3.1 Testing signing-time . 11
5.3.1.1 General . 11
5.3.1.2 Test assertions common to CAdES baseline and extended signatures . 11
5.3.1.3 Test assertions specific to CAdES baseline signatures . 11
5.3.2 Testing Enhanced Security Services (ESS) . 11
5.3.2.1 General . 11
5.3.2.2 Test assertions common to CAdES baseline and extended signatures . 11
5.3.2.3 Test assertions specific to CAdES baseline signatures . 12
5.3.3 Testing countersignature . 12
5.3.4 Testing content-reference . 12
5.3.5 Testing content-identifier . 12
5.3.6 Testing content-hints. 13
5.3.7 Testing commitment-type-indication . 13
5.3.8 Testing signer-location . 13
5.3.9 Testing signer-attributes-v2 . 13
5.3.10 Testing content-time-stamp . 13
5.3.11 Testing mime-type . 14
5.3.12 Testing signature-policy-identifier . 14
5.3.13 Testing signature-policy-store . 14
6 Testing conformance to CAdES-B-T signatures . 14
6.1 General . 14
6.2 Testing CAdES attributes . 14
6.2.1 Testing SignatureTimeStamp. 14
ETSI

---------------------- Page: 3 ----------------------
4 ETSI TS 119 124-4 V1.1.1 (2016-06)
7 Testing conformance to CAdES-B-LT signatures . 15
7.1 General . 15
7.2 Testing CAdES attributes . 15
7.2.1 Testing Certificate and Revocation references and values . 15
7.2.2 Testing time-stamp attributes . 16
7.2.3 Testing SignedData.certificates attribute . 16
7.2.4 Testing revocation values . 16
8 Testing conformance to CAdES-B-LTA signatures . 16
8.1 General . 16
8.2 Testing CAdES attributes . 17
8.2.1 Testing ArchiveTimeStampV3 . 17
8.2.2 Testing time-stamp attributes . 17
Annex A (normative): Test assertions derived from attributes definition . 18
A.1 General . 18
A.2 Testing CMS defined attributes . 18
A.2.1 Testing content-type attribute . 18
A.2.2 Testing data content-type . 18
A.2.3 Testing signed-data content-type . 18
A.2.4 Testing message-digest attribute . 18
A.2.5 Testing CMSVersion . 19
A.2.6 Testing DigestAlgorithmIdentifiers . 19
A.2.7 Testing SignatureAlgorithmIdentifiers . 19
A.2.8 Testing EncapsulatedContentInfo . 19
A.2.9 Testing SignedData.certificates . 19
A.2.10 Testing SignedData.crls . 20
A.2.11 Testing SignerInfo attribute . 20
A.2.12 Testing AlgorithmIdentifier. 20
A.3 Testing basic attributes for CAdES signatures . 20
A.3.1 Testing signing-time attribute. 20
A.3.2 Testing ESS signing-certificate . 21
A.3.3 Testing ESS signing-certificate-v2 . 21
A.3.4 Testing countersignature . 22
A.3.5 Testing content-reference . 22
A.3.6 Testing content-identifier . 22
A.3.7 Testing content-hints . 23
A.3.8 Testing commitment-type-indication . 23
A.3.9 Testing signer-location . 23
A.3.10 Testing signer-attributes-v2 . 24
A.3.11 Testing content-time-stamp . 25
A.3.12 Testing mime-type . 25
A.3.13 Testing signature-policy-identifier . 25
A.3.14 Testing signature-policy-store . 26
A.3.15 Testing signature-time-stamp . 27
A.3.16 Testing complete-certificate-references . 27
A.3.17 Testing complete-revocatio n-r eference s . 28
A.3.18 Testing certificate-values . 29
A.3.19 Testing revocation-values . 29
A.3.20 Testing CAdES-C-time-stamp. 29
A.3.21 Testing time-stamped-certs-crls-references . 30
A.3.22 Testing ArchiveTimeStampV3 . 30
A.3.23 Testing ats-hash-index-v3 . 30
A.3.24 Testing long-term-validation . 31
A.3.25 Testing ArchiveTimeStampV2 . 31
History . 32


ETSI

---------------------- Page: 4 ----------------------
5 ETSI TS 119 124-4 V1.1.1 (2016-06)
Intellectual Property Rights
IPRs essential or potentially essential to the present document may have been declared to ETSI. The information
pertaining to these essential IPRs, if any, is publicly available for ETSI members and non-members, and can be found
in ETSI SR 000 314: "Intellectual Property Rights (IPRs); Essential, or potentially Essential, IPRs notified to ETSI in
respect of ETSI standards", which is available from the ETSI Secretariat. Latest updates are available on the ETSI Web
server (https://ipr.etsi.org/).
Pursuant to the ETSI IPR Policy, no investigation, including IPR searches, has been carried out by ETSI. No guarantee
can be given as to the existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web
server) which are, or may be, or may become, essential to the present document.
Foreword
This Technical Specification (TS) has been produced by ETSI Technical Committee Electronic Signatures and
Infrastructures (ESI).
The present document is part 4 of a multi-part deliverable covering CAdES digital signatures - Testing Conformance
and Interoperability. Full details of the entire series can be found in part 1 [i.1].
A tool implementing the present document has been developed and is accessible at http://signatures-conformance-
checker.etsi.org/.
Modal verbs terminology
In the present document "shall", "shall not", "should", "should not", "may", "need not", "will", "will not", "can" and
"cannot" are to be interpreted as described in clause 3.2 of the ETSI Drafting Rules (Verbal forms for the expression of
provisions).
"must" and "must not" are NOT allowed in ETSI deliverables except when used in direct citation.
ETSI

---------------------- Page: 5 ----------------------
6 ETSI TS 119 124-4 V1.1.1 (2016-06)
1 Scope
The present document defines the set of checks to be performed for testing conformance of CAdES signatures against
CAdES baseline signatures as specified in ETSI EN 319 122-1 [1].
The present document does not specify checks leading to conclude whether a signature is technically valid or not (for
instance, it does not specify checks for determining whether the cryptographic material present in the signature may be
considered valid or not). In consequence, no conclusion may be inferred regarding the technical validity of a signature
that has been successfully tested by any tool conformant to the present document.
Checks specified by the present document are exclusively constrained to elements specified by CAdES [1].
Regarding CAdES attributes, the present document explicitly differentiates between structural requirements that are
defined on building blocks, and the requirements specified for CAdES baseline signatures conformance.
The present document is intentionally not linked to any software development technology and is also intentionally
agnostic on implementation strategies. This is one of the reasons why the test assertions set specified in the present
document includes tests on the correctness of the structure of all the elements specified by CAdES [1].
2 References
2.1 Normative references
References are either specific (identified by date of publication and/or edition number or version number) or
non-specific. For specific references,only the cited version applies. For non-specific references, the latest version of the
referenced document (including any amendments) applies.
Referenced documents which are not found to be publicly available in the expected location might be found at
http://docbox.etsi.org/Reference.
NOTE: While any hyperlinks included in this clause were valid at the time of publication, ETSI cannot guarantee
their long term validity.
The following referenced documents are necessary for the application of the present document.
[1] ETSI EN 319 122-1: "Electronic Signatures and Infrastructures (ESI); CAdES digital signatures;
Part 1: Building blocks and CAdES baseline signatures".
[2] ETSI EN 319 122-2: "Electronic Signatures and Infrastructures (ESI); CAdES digital signatures;
Part 2: Extended CAdES signatures".
[3] IETF RFC 5652 (09-2009): "Cryptographic Message Syntax (CMS)".
2.2 Informative references
References are either specific (identified by date of publication and/or edition number or version number) or
non-specific. For specific references,only the cited version applies. For non-specific references, the latest version of the
referenced document (including any amendments) applies.
NOTE: While any hyperlinks included in this clause were valid at the time of publication, ETSI cannot guarantee
their long term validity.
The following referenced documents are not necessary for the application of the present document but they assist the
user with regard to a particular subject area.
[i.1] ETSI TR 119 124-1: "Electronic Signatures and Infrastructures (ESI); CAdES digital signatures -
Testing Conformance and Interoperability; Part 1: Overview".
[i.2] ETSI TR 119 001: "Electronic Signatures and Infrastructures (ESI); The framework for
standardization of signatures; Definitions and abbreviations".
ETSI

---------------------- Page: 6 ----------------------
7 ETSI TS 119 124-4 V1.1.1 (2016-06)
[i.3] OASIS Committee Notes: "Test Assertions Guidelines Version 1.0" Committee Note 02,
19 June 2013.
3 Definitions and abbreviations
3.1 Definitions
For the purposes of the present document, the terms and definitions given in ETSI TR 119 001 [i.2] apply.
3.2 Abbreviations
For the purposes of the present document, the abbreviations given in ETSI TR 119 001 [i.2] apply.
4 Overview
The present clause describes the main aspects of the technical approach used for specifying the whole set of checks to
be performed for testing conformance to ETSI EN 319 122-1 [1].
ETSI EN 319 122-1 [1] defines requirements for building blocks and CAdES baseline signatures. For the purpose of
identifying the whole set of test assertions required for testing conformance against CAdES baseline signatures as
specified in ETSI EN 319 122-1 [1], the present document classifies the whole set of requirements specified in ETSI
EN 319 122-1 [1] in two groups as follows:
1) Requirements "CAdES_BS" (after "CAdES baseline signatures"): requirements defined in clauses 5 and 6 of
ETSI EN 319 122-1 [1]. These are requirements specific to CAdES baseline signatures.
2) Requirements "CAdES_BB" (after "CAdES building blocks"): requirements defined in clauses 4, 5 and
annex A of ETSI EN 319 122-1 [1] that have to be satisfied by both CAdES baseline signatures as specified in
ETSI EN 319 122-1 [1] and extended CAdES signatures as specified in ETSI EN 319 122-2 [2].
a) In order to test conformance against the aforementioned specification, several types of tests are identified, namely:
1) Tests on the signature structure.
2) Tests on values of specific elements and/or attributes.
3) Tests on interrelationship between different elements present in the signature.
4) Tests on computations reflected in the contents of the signatures (message imprints for a time-stamping
service, computed by digesting the concatenation of a number of elements of the signature, for instance).
b) No tests are included testing actual validity of the cryptographic material that might be present at the signature or to
be used for its verification (status of certificates for instance).
c) Tests are defined as test assertions following the work produced by OASIS in "Test Assertions Guidelines
Version 1.0" [i.3]. Each test assertion includes:
1) Unique identifier for further referencing. The identifiers of the assertions defined within the present documents
start with "CAdES_BS", after "CAdES baseline signatures" and "CAdES_BB", after "CAdES building
blocks".
2) Reference to the Normative source for the test.
3) The Target of the assertion. In the normative part, this field identifies one of the four CAdES baseline
signatures [1] levels.
ETSI

---------------------- Page: 7 ----------------------
8 ETSI TS 119 124-4 V1.1.1 (2016-06)
4) Prerequisite (optional) is, according to [i.3], "a logical expression (similar to a Predicate) which further
qualifies the Target for undergoing the core test (expressed by the Predicate) that addresses the Normative
Statement". It is used for building test assertions corresponding to requirements that are imposed under certain
conditions.
5) Predicate fully and unambiguously defining the assertion.
6) Prescription level. Three levels are defined: mandatory, recommended and permitted, whose semantics is to
be interpreted as described in clause 3.1.2 of [i.3].
7) Tag: information on the element tested by the assertion.
5 Testing conformance to CAdES-B-B signatures
5.1 Introduction
The present clause specifies the set of assertions to be tested on applications claiming conformance to CAdES-B-B
signatures as specified in ETSI EN 319 122-1 [1].
Clause 5.2 specifies assertions for testing those constraints imposed by the CAdES baseline signatures specification [1]
to the CMS Signature elements.
Clause 5.3 specifies assertions for testing those constraints imposed or permitted by the CAdES signatures
specifications [1] or [2] to the CMS Signature elements.
5.2 Testing CMS Signature elements
5.2.1 Testing algorithm requirements
This clause defines the test assertion for algorithm used as digest algorithm.
TA id: CAdES_BS/ALG/1
Normative source: [1] – Clause 6.2.1
Target: CAdES signature generator claiming conformance to CAdES signatures as specified in [1]
Predicate: For new signatures, applications do not use MD5 algorithm as digest algorithm.
Prescription level: mandatory
Tag: CAdES baseline signatures.

5.2.2 Testing content-type
5.2.2.1 General
The following clauses define the test assertions for content-type attribute presence in CMS signature.
5.2.2.2 Test assertions common to CAdES baseline and extended signatures
TA id: CAdES_BB/CTY/1
Normative source: [1] – Clause 5.1.1
Target: CAdES signature generator claiming conformance to CAdES signatures as specified in [1] or in
[2]
Predicate: For new signatures, applications include ContentT
...

Questions, Comments and Discussion

Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.