1. Eduardo Adriano
  2. PowerBuilder
  3. Tuesday, 24 November 2020 12:32 PM UTC

Hi All!

How sign a xml file with a certificate x.509?

Here we use many many xml files to exchange information between companies and we need sign with certificate x.509 (A1, A3...) these files to guarantee the security...

Is there a resource in PB that does that?

 

This is an example:

<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
   <SignedInfo>
         <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
         <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
         <Reference URI="#NFe31060243816719000108550000000010001234567897">
              <Transforms>
                   <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
                   <Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
              </Transforms>
              <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
              <DigestValue>vFL68WETQ+mvj1aJAMDx+oVi928=</DigestValue>
         </Reference>
   </SignedInfo>
   <SignatureValue>IhXNhbdL1F9UGb2ydVc5v/gTB/y6r0KIFaf5evUi1i ...</SignatureValue>
   <KeyInfo>
      <X509Data>
           <X509Certificate>MIIFazCCBFOgAwIBAgIQaHEfNaxSeOEvZGlVDANB ... </X509Certificate>
   </X509Data>
   </KeyInfo>
</Signature>


Thanks!

Eduardo Adriano

 

Govinda Lopez @Appeon Accepted Answer Pending Moderation
  1. Friday, 18 December 2020 22:05 PM UTC
  2. PowerBuilder
  3. # 1

Hi Eduardo,

 

Following is an idea of how you can accomplish this with PB:

 

 

I hope this helps!

 

 

Regards,

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.