1. Rajkumar Koyale
  2. PowerBuilder
  3. Monday, 10 July 2023 10:17 AM UTC

Hi All,

We are trying to call rest API. In order to authenticate that API we need to add *.pfx certificate to HTTPClient object per mentioned in link below.

SetClientCert - - PowerScript Reference (appeon.com)

But our PB 2019 R3 Build 2670 version is showing that SetClientCert function of HTTPClient is not available.

Please help us on how to set the *.pfx certificate for authentication of API URL using PB 2019 R3 Build 2670 version.

Thanks

 

 

 

René Ullrich Accepted Answer Pending Moderation
  1. Monday, 10 July 2023 10:55 AM UTC
  2. PowerBuilder
  3. # 1

SetClientCert is a new function in PB2022: https://docs.appeon.com/pb/whats_new/Supports_two-way_SSL_authentication.html

So it is not available in PB 2019 R3. The only workaround I know is to use external components for HTTP requests.

Comment
  1. Rajkumar Koyale
  2. Monday, 10 July 2023 14:23 PM UTC
Can you please give one example of how to use external components for HTTP requests, thanks
  1. Helpful
  1. René Ullrich
  2. Tuesday, 11 July 2023 05:30 AM UTC
You could try it with ActiveX Msxml2.ServerXMLHTTP.6.0 but I never used it with Client Certificates.

But maybe this will help you:

Documentation: https://learn.microsoft.com/en-us/previous-versions/windows/desktop/ms764730(v=vs.85)

A very easy example to start: https://community.appeon.com/index.php/qna/q-a/problems-with-power-builder-11-5-or-power-builder-2017-and-end-support-microsoft-internet-explorer?limitstart=0#reply-35162 (this example uses Msxml2.XMLHTTP instead of Msxml2.ServerXMLHTTP.6.0)

Question about ClientCertificate: https://stackoverflow.com/questions/57919942/msxml2-serverxmlhttp-clientcertificate

  1. Helpful 1
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.