Skip to content

[Question] - How i can signed XML with object #168

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

Closed
chayakornjj opened this issue Jan 11, 2021 · 1 comment
Closed

[Question] - How i can signed XML with object #168

chayakornjj opened this issue Jan 11, 2021 · 1 comment

Comments

@chayakornjj
Copy link

Question now i'm try to sign XML with signxml package. Everything looking good, However following my requirement seem like i need Object as well which provide detail like Cert, IssuerSerial, CertDiggest, Not sure is that way signxml can provide any configuration to support this.

Best.

<ds:Object>
    <xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Id="QualifyingProperties_be070938-4409-11eb-9539-8c8590207bec_14" Target="#Signature_be070938-4409-11eb-9539-8c8590207bec_4e">
      <xades:SignedProperties Id="SignedProperties_be070938-4409-11eb-9539-8c8590207bec_19">
        <xades:SignedSignatureProperties Id="SignedSignatureProperties_be070938-4409-11eb-9539-8c8590207bec_5d">
          <xades:SigningTime>2020-12-22T03:56:59Z</xades:SigningTime>
          <xades:SigningCertificate>
            <xades:Cert>
              <xades:CertDigest>
                <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512" />
                <ds:DigestValue>+odc6nIQ8gF9aKcSSkf1d0zGEw+xCuye5+OASJMHNEowHMtfNQvomWcmm7ZN3gxW2qpoB6hrleR7kV8AyrLaxA==</ds:DigestValue>
              </xades:CertDigest>
              <xades:IssuerSerial>
                <ds:X509IssuerName>CN=TH</ds:X509IssuerName>
                <ds:X509SerialNumber>6710929</ds:X509SerialNumber>
              </xades:IssuerSerial>
            </xades:Cert>
          </xades:SigningCertificate>
        </xades:SignedSignatureProperties>
      </xades:SignedProperties>
    </xades:QualifyingProperties>
  </ds:Object>
@kislyuk
Copy link
Member

kislyuk commented Jan 11, 2021

Hello, thank you for your interest in SignXML. It appears from the code that you pasted that you're looking to generate a XAdES signature, which SignXML does not support. If you wish to see XAdES support in this project, you can sponsor the project using the Sponsor button at the top of this page, and track progress in this PR #139.

@kislyuk kislyuk closed this as completed Jan 11, 2021
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