User Tools

Site Tools


en:p4_cades-a

P4 CAdES-A

General Information

“Long-term and OCSP-based Secure Electronic Signature Policies (Profile P4)” is defined by Information and Communication Technologies Authority (ICTA) in Electronic Signature Usage Profiles which is a guide of signature profiles for Turkey. In this profile, long term compatibility is provided with ES-X LONG and ES-A signature formats. In addition, this profile requires the use of OCSP for end-user certification revocation control. These requirements are provided by the CAdES-A signature format in accordance with the P4 profile.

In ECP Applications, Electronic Seal is in P4 CAdES-A format.

ES-A (Archival Electronic Signature) is the signature format that should be used in cases where signed documents need to be stored longer than the validity period of the certificate authority's root / sub-root, OCSP and timestamp certificates.

Archiving is done when the CA’s certificate is near to the end of the validity period or the certificates are revoked or if announced that the used algorithms become invalid or is changed. There is no inconvenience in making archival before the above situations occur. Archival should be repeated by entering timestamp settings published by a new hierarchy by TSP if the validity of the last archive timestamp in the currently signed archive documents is compromised. On the application side, the relevant infrastructure should be provided.

CADES-A

The following table specifies the signature properties that must be included in the signature file for P4 CAdES-A signature format:

Signature Properties P4 CAdES-A
Signed Attributes Content-type M
Message-digest M
ESS signing-certificate v2 M
Signing-time M
Content-hints O
Mime-type M
Content-reference O
Content-identifier O
Commitment-type-indication O
Signer-location O
Content-time-stamp O
Signature-policy-identifier M
-SigPolicyQualifiers M
-SigPolicyId M
-SigPolicyHash M
-spuri M
-sp-user-notice O
Unsigned Attributes CounterSignature O
Signature-time-stamp M
-SignedData/certificates M
-SignedData/crls M
Complete-certificate-references M
Complete-revocation-references M
Certificate-values M
Revocation-values M
Archive-time-stamp M

M: Must - It is mandatory to provide the specified substance. If the substance is not provided, the e-signature evaluation will result in a negative.

O: Optional – If the substance is not provided, the e-signature assessment will not result in a negative

- : This means that the feature is not in the signature format.

It is recommended not to use optional attributes unless needed.

Procedure

You can access P4 CAdES-A Detached Test Package from here.

You can access P4 CAdES-A Attached Test Package from here.

You can access test root certificates from here.

The following table provides the names and properties of the signature files to be used in the procedures:

M/O Signed Document Name Signed Document Property Validation ResultExplanation
M P4_A1 Valid (Revocation check is available only via OCSP and all signed attributes are added) VALID All signed attributes must be displayed in the validation result
O P4_A2.doc Signature file with a macro inserted content INVALID The signature should not be verified
M P4_A3 Contradictory signature file including “mime-type” attribute with “image/jpeg” value although the actual content type is “Application/pdf” INVALID Signature verification details must be shown.
M P4_A4Signature file with “SigPolicyId” having another value than P4 OID (2.16.792.1.61.0.1.5070.3.3.1) INVALID Signature verification details must be shown.
M P4_A5Signature file with “SigPolicyHash” having another hash value than P4 hash value INVALID Signature verification details must be shown.
M P4_A6Signature file with “SPUserNotice” having P4 user notice VALID P4 user notice must be shown.
M P4_A7Signature file with “ESS-Signing-Certificate” hash algorithm is SHA-1 INVALID Signature verification details must be shown.
M P4_A8Signature file without “SigningTime” INVALID Signature verification details must be shown.
M P4_A9Signature file having three hours earlier “SigningTime” than “SignatureTimeStamp” INVALID “SignatureTimeStamp” must be taken no later than two hours after the signing time. Signature verification details must be shown.
M P4_A10Signature file with qualified certificate revocation value CRL rather than OCSP INVALID Signature verification details must be shown.
O P4_A11Signature file with ”SignatureTimeStamp” which do not have “signatureTimeStamp” root certificate (TS server is TSC1) INVALID The signature must not be verified.
M P4_A12Signature file with ” SignatureTimeStamp” which do not have “signatureTimeStamp” CRL (TS server is TSC1) INVALID Signature verification details must be shown.
M P4_A13 Signature file with a forged “ESS Signing-Certificate-v2” attribute INVALID Signature verification details must be shown.
M P4_A14 Signature file with a forged ”message-digest” attribute INVALID Signature verification details must be shown.
M P4_A15 Signature file in which SHA-1 digest algorithm is used VALID The signature must be archived.
M P4_A16 Signature file with a forged signature INVALID Signature verification details must be shown.
M P4_A17 Signature file signed by a certificate with an omitted “non-repudiation” field in the key usage extension INVALID Signature verification details must be shown.
M P4_A18 Signer certificate with an omitted “UserNotice” text field in the “CertificatePolicies” extension INVALID Signature verification details must be shown.
M P4_A19 Signer certificate with an omitted ETSI OID in “QualifiedCertificateStatements” extension INVALID Signature verification details must be shown.
M P4_A20 Signer certificate with an omitted ICTA OID in “QualifiedCertificateStatements” extension INVALID Signature verification details must be shown.
O P4_A21 Signature file which has a PDF/A-3 content with attachment INVALID The signature should not be verified.
M P4_A22 Signer certificate has expired before signature timestamp INVALID Signature verification details must be shown.
M P4_A23 Signer certificate has a forged signature INVALID Signature verification details must be shown.
M P4_A24Signer certificate has revoked in OCSP before signature timestamp INVALID Signature verification details must be shown.
M P4_A25 Signer certificate revoked in OCSP after signature timestamp VALID
M P4_A26 The validity of signer certificate has to be checked via an expired OCSP response INVALID Signature verification details must be shown.
M P4_A27 The validity of signer certificate has to be checked via an OCSP response having forged signature INVALID Signature verification details must be shown.
M P4_A28 The validity of signer certificate has to be checked via an OCSP response which is signed by an expired OCSP certificate INVALID Signature verification details must be shown.
M P4_A29 The validity of signer certificate has to be checked via an OCSP response which is signed by a signature forged OCSP certificate INVALID Signature verification details must be shown.
M P4_A30 The validity of signer certificate has to be checked via an OCSP response which is signed by a revoked OCSP certificate. The OCSP certificate is revoked before signature timestamp INVALID Signature verification details must be shown.
M P4_A31 The validity of signer certificate has to be checked via an OCSP response which is signed by a revoked OCSP certificate. The OCSP certificate is revoked after signature timestamp VALID
M P4_A32 Signer certificate has a monetary limit which is equal to “0” CHOICE*
O P4_A33 Signer certificate has a usage restriction defined in “QC Statements” extension INVALID The signature should not be verified.
M P4_A34 The validity of signer certificate has to be checked via an OCSP response which is generated for a different certificate INVALID Signature verification details must be shown.
M P4_A35 Signer certificate is issued by an intermediate CA certificate having a forged signature INVALID Signature verification details must be shown.
M P4_A36 The root certificate has a forged signature INVALID Signature verification details must be shown.
M P4_A37 Signature timestamp has a “TSTInfo” with a forged “messageImprint” field (TS server is TSA1) INVALID Signature verification details must be shown.
M P4_A38 Signature timestamp has a forged signature (TS server is TSA2) INVALID Signature verification details must be shown.
M P4_A39 Signature timestamp is signed by an expired certificate (TS server is TSA3) INVALID Signature verification details must be shown.
M P4_A40 Signature timestamp is signed by a certificate with a forged signature (TS server is TSA4) INVALID Signature verification details must be shown.
M P4_A41 Signature timestamp is signed by a revoked certificate. The revocation time is before the signing time (TS server is TSA5) INVALID Signature verification details must be shown.
M P4_A42 Signature timestamp is signed by a revoked certificate. The revocation time is after the signature timestamp (TS server is TSA5) VALID
M P4_A43 Signature timestamp is signed by a certificate whose issuer certificate signature is forged (TS server is TSB) INVALID Signature verification details must be shown.
M P4_A44 Signature timestamp is signed by a valid certificate (TS server is TSC1) VALID
M P4_A45 Signature timestamp is signed by a certificate which references an expired CRL (TS server is TSC2) INVALID Signature verification details must be shown.
M P4_A46 Signature timestamp is signed by a certificate which references a CRL with a forged signature (TS server is TSC3) INVALID Signature verification details must be shown.
M P4_A47Signature file with a ”Complete certificate references” attribute which does not have a root certificate reference INVALID Signature verification details must be shown.
M P4_A48Signature file with a ”Complete certificate references” attribute which has a wrong root certificate reference INVALID Signature verification details must be shown.
M P4_A49Signature file with a ”Complete certificate references” attribute which does not have an intermediate CA certificate reference INVALID Signature verification details must be shown.
M P4_A50Signature file with a ”Complete certificate references” attribute which has a wrong intermediate CA certificate reference INVALID Signature verification details must be shown.
M P4_A51Signature file with a ”Complete revocation references” attribute which does not have a CRL reference for intermediate CA INVALID Signature verification details must be shown.
M P4_A52Signature file with a ”Complete revocation references” attribute which has a wrong CRL reference for intermediate CA INVALID Signature verification details must be shown.
M P4_A53Signature file with a ”Complete revocation references” attribute which does not have an OCSP reference for signer certificate INVALID Signature verification details must be shown.
M P4_A54Signature file with a ”Complete revocation references” attribute which has a wrong OCSP reference for signer certificate INVALID Signature verification details must be shown.
M P4_A55Signature file with a ”Certificate values” attribute which does not have a root certificate value INVALID Signature verification details must be shown.
M P4_A57Signature file with a ”Certificate values” attribute which does not have an intermediate CA certificate value INVALID Signature verification details must be shown.
M P4_A59Signature file with a ”Revocation Values” attribute which does not have a CRL value for intermediate CA certificate INVALID Signature verification details must be shown.
M P4_A61Signature file with ”Revocation values” attribute which does not have an OCSP value for signer certificate INVALID Signature verification details must be shown.
M P4_A75 “archiveTimeStamp” has a “TSTInfo” with a forged “messageImprint” field (TS server is TSA1) INVALID Signature verification details must be shown.
M P4_A76 “archiveTimeStamp” has a forged signature (TS server is TSA2) INVALID Signature verification details must be shown.
M P4_A77 “archiveTimeStamp” is signed by an expired certificate (TS server is TSA3) INVALID Signature verification details must be shown.
M P4_A78 “archiveTimeStamp” is signed by an forged certificate (TS server is TSA4) INVALID Signature verification details must be shown.
M P4_A79 “archiveTimeStamp” is signed by a revoked certificate. The revocation time is before the signing time (TS server is TSA5) INVALID Signature verification details must be shown.
M P4_A80 “archiveTimeStamp” is signed by a revoked certificate. The revocation time is after the signature timestamp (TS server is TSA5) VALID
M P4_A81 “archiveTimeStamp” is signed by a certificate whose issuer certificate is forged (TS server is TSB) INVALID Signature verification details must be shown.
M P4_A82 “archiveTimeStamp” is signed by a valid certificate (TS server is TSC1) VALID
M P4_A83 “archiveTimeStamp” is signed by a certificate which references an expired CRL (TS server is TSC2) INVALID Signature verification details must be shown.
M P4_A84 “archiveTimeStamp” is signed by a certificate which references a CRL with a forged signature (TS server is TSC3) INVALID Signature verification details must be shown.
O P4_A85 Signature file has two “archiveTimeStamp”. First one's root certificate is not added to the signature file (TS server TSC1) INVALID Signature verification details must be shown.
M P4_A86 Signature file has two “archiveTimeStamp”. First one's CRL is not added to the signature file (TS server TSC1) INVALID Signature verification details must be shown.
M P4_A90“archiveTimeStamp” certificate is expired after the signature timestamp VALID The signature must be archived.
M P4_A93_s Counter signature file signed by two signers. Second signer has a valid certificate, but the first signer certificate is revoked in OCSP INVALID Validation result of the each signer must be shown in a hierarchical order similar to the tree structure. Signature verification details must be shown.
M P4_A93_p Parallel signature file signed by two signers. Second signer has a valid certificate, but the first signer is revoked in OCSP INVALID Each signature validation result must be shown in a hierarchical order similar to the tree structure. The details of the error should be reported to the user.
M P4_A94 “archiveTimeStamp” with SHA-1 digest algorithm VALID The signature must be archived.
O P4_A129 Signature file without a “mime-type” attribute INVALID The signature should not be verified.

* One of the following methods must be selected when verifying the signed document if the signer certificate includes a monetary limit:

  • “INVALID Signature” message must be displayed. The description of the error should be reported to the user.
  • The monetary limit of the certificate is compared with the monetary limit of the signed document and if the monetary limit of the certificate is sufficient for the monetary value of the signed document, “VALID Signature” message must be displayed.
  • In the case where the monetary limit of the certificate is not compared with the monetary limit of the signed document, the user should be warned that the signer certificate has a monetary limit and “VALID Signature” message must be displayed.
en/p4_cades-a.txt · Last modified: 2023/07/14 13:11