Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XAdES : SPDocSpecification signature policy qualifier is not supported #17

Open
bsanchezb opened this issue Jun 10, 2021 · 2 comments
Open

Comments

@bsanchezb
Copy link

Hello Juan Carlos,

When I validate a signature containing a xades141:SPDocSpecification qualifier, the following error is returned:

Children order and number DO NOT MATCH 
specificationSpecification: (xadesv132:SPURI \|\| xadesv132:SPUserNotice)+
Elements found: xadesv141:SPDocSpecification
Error indication (^ appears at the end of the last correct child): ^xadesv141:SPDocSpecification

This particular qualifier has been introduced in EN 319 132-1 (maybe earlier, but nevertheless it was not there in old versions), however the relative XAdESCC still does not support it.

The SPDocSpecification shall identify the technical specification that defines the syntax used for producing the signature policy document.
The SPDocSpecification shall be defined as in XML Schema file "XAdES01903v141-201601.xsd", whose location is detailed in clause C.2, and is copied below for information.

<xsd:element name="SPDocSpecification" type="xades:ObjectIdentifierType"/> 

Moreover, I think the problem is more global, because XAdESCC restricts other qualifiers, except the SPURI and SPUserNotice, when from the specification and schema it is clear that any custom qualifier should be allowed:

<xsd:complexType name="SigPolicyQualifiersListType">
   <xsd:sequence>
       <xsd:element name="SigPolicyQualifier" type="AnyType" maxOccurs="unbounded"/>
   </xsd:sequence>
</xsd:complexType>

Could you please add a support for other qualifiers?

Best regards,
Aleksandr.

@bsanchezb
Copy link
Author

bsanchezb commented Jun 10, 2021

The file from the test (archived)

sigPolicy-with-SPDocSpecification.zip

@jccruellas
Copy link
Collaborator

Thanks for this ALeksandr,
I have a number of issues to close and indeed this one is added to the pile. I am now fixing some issues on PAdESCC

Regards
Juan Carlos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants