Highlighted
Frequent Contributor.
Frequent Contributor.
120 views

Cannot set Key File for certificate in Vugen

 

Have got "testenv.cer" certificate from technical team. Converted this to ".PEM" format using open ssl (command: openssl x509 -in testenv.cer -out testenv.pem). Copied this ".pem" file to script folder and added in Extra Files from Vugen. 

Used below function to use the certificate: (no password given)

web_set_certificate_ex("CertFilePath=testenv.pem",
        "CertFormat=PEM",
        "KeyFilePath=testenv.pem",
        "KeyFormat=PEM",
        "Password=",
        LAST);.

While executing  the HTTP request, I get below error. Please help!

Error -27766: Cannot set Key File for certificate "testenv.pem". Please check file format (should be PEM), password correctness, and matching to the certificate file. [MsgId: MERR-27766]

 

0 Likes
0 Replies
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.