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#">
         <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">
                   <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
                   <Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
              <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
   <SignatureValue>IhXNhbdL1F9UGb2ydVc5v/gTB/y6r0KIFaf5evUi1i ...</SignatureValue>
           <X509Certificate>MIIFazCCBFOgAwIBAgIQaHEfNaxSeOEvZGlVDANB ... </X509Certificate>


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!




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.