Skip to content

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

Closed
@chayakornjj

Description

@chayakornjj

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions