Highlighted
Absent Member.
Absent Member.
3221 views

Certificate Index missing or Invalid

Hi All Experts

 

I am scritping using Single Sign on  here at UBS Swiss bank.

I have sorted out all access to the Certificates , both .PFX and .10 and each of my 600 Users have

access granted.

 

I can record scripts suing LR v11, however on Playback i get the following error :-

 

"Certificate Index Missing or Invalid"

 

I have also changed the following on the Runtime settime settings :-

 

1) Runnig as a Process not Thread

2) Winilet reply instead of Sockets

3) Simulate new user & clear cache

4) Clear cookie

 

5) in the script also use the Web set Certificate .....

 

so now what  am i doing wrong??

Has anyone had this issue and a resolution????

 

Frustrated and need help asap please??

Tags (1)
0 Likes
7 Replies
Highlighted
Honored Contributor.
Honored Contributor.

Which protocol are you using?
Regards,
Gagandeep Malviya

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution
0 Likes
Highlighted
Established Member..
Established Member..

Hi Raj,

 

Go to Run-Time Settings > Internet Protocol > Preferences > Advanced > Uncheck WinInet replay instead of socket (Windows Only)

 

This would resolve the problem.

 

Good Luck!!!

 

Thanks,

Champ

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

I am having the same issue. If I turn Wininet Replay OFF I get these errors:

X509 certificate error 19: self signed certificate in certificate chain
Warning -27778: SSL protocol error when attempting to connect with host

 

If I turn Wininet Replay ON then I get this error:

Error -27490: Certificate index missing or invalid

 

I am using:

    web_set_certificate_ex (statement)

    web_set_sockets_option("LOAD_VERIFY_FILE","Name.pem​");
    web_set_sockets_option("SSL_VERSION", "TLS");
    web_set_sockets_option("TRACE_SSL_IO", "1");
    web_set_sockets_option("PRINT_SSL_INFO", "1"); 
    web_cache_cleanup();
    web_cleanup_cookies();

 

Thanks in advance for any help.

 

0 Likes
Highlighted
Established Member..
Established Member..

It has to be the way the certificate was created. The self signed certificates are not being accepted via loadrunner. Given they only accept PEM, it is odd it is not working. I have a few hundred certs setup and they work fine (handed down via certificate authority in company) and they are split into a .CER and .KEY this is the only way I could get them to work.

 

SO ...

 

When I created self signed SSL certs, I have to get them approved via the CA (check with your sys admins)

I couldn't use just .PEM and instead had to specify KEY & CER path

0 Likes
Highlighted
New Member.

Hi Nicholas,

can you pls let me know how to specify the KEY and CER path and where to specify it?

0 Likes
Highlighted
New Member..
New Member..

Try this and re-record the scrip.

Client-Side certificates with LoadRunner

 

Many applications make use of the SSL extension to the HTTP protocol that adds an encryption layer to the HTTP stack. If the performance test tool can't handle SSL then you won't be able to record any transactions.

One way of increasing security is to make use of client certificates, which can be installed into the application client before access is permitted to an application. The certificates are provided in a number of formats (typically pfx or p12) and must be made available to your performance testing tool for successful capture and replay.

Please follow the steps below to import, export the certificate in the format

image001 (2).png

image002.png

0 Likes
Highlighted
Super Contributor.
Super Contributor.

You may consider not revealing the client name here. Good luck 🙂
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.