Highlighted
Absent Member.
Absent Member.
2806 views

web_set_certificate_ex


Hi, I am recording https URL in which following function is getting recorded but it will showing error while replaying.

function:
web_set_certificate_ex("CertFilePath=WinINetCert1.pem",
"CertFormat=PEM", "KeyFilePath=WinINetCert1.pem",
"KeyFormat=PEM",
"Password=4b0f7abf",
"CertIndex=1",
LAST);

error:
Cannot set Certificate File "WinINetCert1.pem". File format is probably invalid (should be ASN1 or PEM)
Tags (1)
0 Likes
4 Replies
Highlighted
Established Member..
Established Member..

Re: web_set_certificate_ex

Hi Gajanan,

Make sure the certificate file which you have place should be PEM or ASN1 format. Else your code will not work as it recognize only those formats.


Thanks,
Champ
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: web_set_certificate_ex

Where will be the certificate (PEM or ASN1 format) file available ?

 

Thanks

Susilendra Nittur

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: web_set_certificate_ex

may i see your WinINetCert1.​pem?
0 Likes
Highlighted
New Member.

Re: web_set_certificate_ex

Hi Ajay, I am trying to add this funtion as well to my script. I got the certificate from dev team which is in .cer format but I am not able to figure out what goes in the password section. Any idea???

 

I have tried using 1234 etc but I am getting Excess memory violation exception. Any idea would be appreciated.

 

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.