1. Roland Smith
  2. PowerBuilder
  3. Monday, 5 June 2023 21:06 PM UTC

PB 2022 1872

I'm working on changing our app to use HttpClient instead of WinHttp.WinHttpRequest for web api calls.

My question has to do with client side certificates. Our current code has this:

io_winhttpRequest.SetClientCertificate(is_certificate)

The HttpClient function is quite different:

SetClientCert(string p12cert, string password)

p12cert - The client's private key and public key p12 or PFX certificate file path.
password - Password of p12 or PFX certificate.

SetClientCert(string storeName, string certIssue, string certSN)

storeName - A string that specifies the name of the certificate store. Valid values are: MY, Root, Trust, CA.
certIssue - A string that identifies the entity that has signed and issued the certificate.
certSN The serial number of the certificate.

 

What we are passing to SetClientCertificate is a registry key. Whether any customers are using this feature, I don't know. The web api is usually one of our  servers on the same network.

Any ideas would be helpful.

Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 6 June 2023 10:32 AM UTC
  2. PowerBuilder
  3. # 1

Hi Roland,

Passing to SetClientCertificate using a registry key is not supported.

Could you use SetClientCert(string storeName, string certIssue, string certSN) to workaround it?

Regards, Logan

 

Comment
  1. Roland Smith
  2. Wednesday, 7 June 2023 12:35 PM UTC
SetClientCertificate is the WinHttpRequest function being used currently. It looks like I might have to change the app window to collect storeName, certIssue, and certSN instead of just certificate location.
  1. Helpful
  1. Logan Liu @Appeon
  2. Thursday, 8 June 2023 15:27 PM UTC
Hi Roland, you are also welcome to submit an enhancement requirement via our support ticketing system to ensure it is being properly tracked at: https://www.appeon.com/standardsupport/

Regards, Logan
  1. Helpful
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.