Loadrunner Error -27775: No certificate file type

Есть скрипт

Action2()
{
web_set_sockets_option("TRACE_SSL_IO","1");   
web_set_sockets_option("PRINT_SSL_INFO","1");

web_set_certificate_ex(
"CertFilePath=-2.pem",
"CertFormat=PEM",
LAST );

web_set_max_html_param_len("10000");
web_set_sockets_option("SSL_VERSION", "TLS");       //determine SSL version
web_set_sockets_option("MAX_CONNECTIONS_PER_HOST","1"); //determine a number of connections for a session
web_set_timeout("CONNECT","180");   //adjusting timeout
web_set_timeout("RECEIVE","180");
web_set_timeout("STEP","180");

 

web_custom_request("192.168.0.106:8506",
        "URL={NewParam_16}",
        "Method=POST",
        "Resource=0",
        "RecContentType=text/xml",
        "Referer=",
        "Snapshot=t1.inf",
        "Mode=HTML",
        "EncType=text/xml; charset=UTF-8",
        "BodyBinary=<?xml version=\"1.0\" encoding=\"US-ASCII\"?><request version=\"1.0\"><merchant_id>-2</merchant_id><xmlsign></xmlsign><language>LT</language><datetime>{NewParam}</datetime><transaction type=\"stations\" id=\"{NewParam_1}{NewParam_11}\"><name>{NewParam_5}</name></transaction></request>",
        LAST);

return 0;
}

В режиме sockets при 1 итерации все нормально если поставить итерацию больше чем одну то ошибка

Error -27775: No certificate file type

 

В режиме WinInet все нормально но нет доступа к сертификату

 

Вот лог

Virtual User Script started at : 2012-09-19 15:15:29
Starting action vuser_init.
Web Turbo Replay of LoadRunner 11.0.0 for Windows 7; build 8859 (Aug 18 2010 20:14:31)      [MsgId: MMSG-27143]
Run Mode: HTML      [MsgId: MMSG-26000]
Run-Time Settings file: "D:\LoadRunnerscripts\test2_2\\default.cfg"      [MsgId: MMSG-27141]
Vuser directory: "D:\LoadRunnerscripts\test2_2"      [MsgId: MMSG-27052]
Vuser output directory: "D:\LoadRunnerscripts\test2_2"      [MsgId: MMSG-27050]
Operating system's current working directory: "D:\LoadRunnerscripts\test2_2"      [MsgId: MMSG-27048]
UTC (GMT) start date/time   : 2012-09-19 12:15:29      [MsgId: MMSG-26000]
LOCAL start date/time       : 2012-09-19 15:15:29      [MsgId: MMSG-26000]
Local daylight-Savings-Time : Yes      [MsgId: MMSG-26000]
Some of the Run-Time Settings:      [MsgId: MMSG-27142]
    Download non-HTML resources: Yes      [MsgId: MMSG-26845]
    Verification checks: No      [MsgId: MMSG-26845]
    Convert from/to UTF-8: Yes      [MsgId: MMSG-26845]
    Simulate a new user each iteration: Yes      [MsgId: MMSG-26845]
    Non-critical item errors as warnings: Yes      [MsgId: MMSG-26845]
    HTTP errors as warnings: No      [MsgId: MMSG-26845]
    WinInet replay instead of Sockets: No      [MsgId: MMSG-26845]
    HTTP version: 1.1      [MsgId: MMSG-26845]
    Keep-Alive HTTP connections: No      [MsgId: MMSG-26845]
    Max self Meta refresh updates: 2      [MsgId: MMSG-26844]
    No proxy is used (direct connection to the Internet)      [MsgId: MMSG-27171]
    DNS caching: Yes      [MsgId: MMSG-26845]
    Simulate browser cache: Yes      [MsgId: MMSG-26845]
        Cache URLs requiring content (e.g., HTMLs): Yes      [MsgId: MMSG-26845]
            Additional URLs requiring content: None      [MsgId: MMSG-26845]
        Check for newer versions every visit to the page: No      [MsgId: MMSG-26845]
    Page download timeout (sec): 120      [MsgId: MMSG-26844]
    Resource Page Timeout is a Warning: No      [MsgId: MMSG-26845]
    ContentCheck enabled: Yes      [MsgId: MMSG-26845]
    ContentCheck script-level file: "D:\LoadRunnerscripts\test2_2\LrwiAedScript.xml"      [MsgId: MMSG-26842]
    Enable Web Page Breakdown: No      [MsgId: MMSG-26845]
    Enable connection data points: Yes      [MsgId: MMSG-26845]
    Process socket after reschedule: Yes      [MsgId: MMSG-26845]
    Snapshot on error: No      [MsgId: MMSG-26845]
    Define each step as a transaction: No      [MsgId: MMSG-26845]
    Read beyond Content-Length: No      [MsgId: MMSG-26845]
    Parse HTML Content-Type: TEXT      [MsgId: MMSG-26845]
    Graph hits per second and HTTP status codes: Yes      [MsgId: MMSG-26845]
    Graph response bytes per second: Yes      [MsgId: MMSG-26845]
    Graph pages per second: No      [MsgId: MMSG-26845]
    Web recorder version ID: 8      [MsgId: MMSG-26844]
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action2.
Action2.c(5): web_set_sockets_option started      [MsgId: MMSG-26355]
Action2.c(5): web_set_sockets_option was successful      [MsgId: MMSG-26392]
Action2.c(6): web_set_sockets_option started      [MsgId: MMSG-26355]
Action2.c(6): web_set_sockets_option was successful      [MsgId: MMSG-26392]
Action2.c(8): web_set_certificate_ex started      [MsgId: MMSG-26355]
Action2.c(8): web_set_certificate_ex was successful      [MsgId: MMSG-26392]
Action2.c(20): web_set_max_html_param_len started      [MsgId: MMSG-26355]
Action2.c(20): web_set_max_html_param_len was successful      [MsgId: MMSG-26392]
Action2.c(21): web_set_sockets_option started      [MsgId: MMSG-26355]
Action2.c(21): web_set_sockets_option was successful      [MsgId: MMSG-26392]
Action2.c(22): web_set_sockets_option started      [MsgId: MMSG-26355]
Action2.c(22): web_set_sockets_option was successful      [MsgId: MMSG-26392]
Action2.c(23): web_set_timeout started      [MsgId: MMSG-26355]
Action2.c(23): web_set_timeout was successful      [MsgId: MMSG-26392]
Action2.c(24): web_set_timeout started      [MsgId: MMSG-26355]
Action2.c(24): web_set_timeout was successful      [MsgId: MMSG-26392]
Action2.c(25): web_set_timeout started      [MsgId: MMSG-26355]
Action2.c(25): web_set_timeout was successful      [MsgId: MMSG-26392]
Action2.c(69): web_custom_request("192.168.0.106:8506") started      [MsgId: MMSG-26355]
Action2.c(69): Notify: Parameter Substitution: parameter "NewParam_16" =  "https://192.168.0.106:8506/"
Action2.c(69): Notify: Parameter Substitution: parameter "NewParam" =  "2012-09-19 15:15:30"
Action2.c(69): Notify: Parameter Substitution: parameter "NewParam_1" =  "20120919151530"
Action2.c(69): Notify: Parameter Substitution: parameter "NewParam_11" =  "1727349"
Action2.c(69): Notify: Parameter Substitution: parameter "NewParam_5" =  "Odesa"
Action2.c(69): t=1362ms: Connecting [0] to host 192.168.0.106:8506      [MsgId: MMSG-26000]
Action2.c(69): t=1375ms: Connected socket [0] from 192.168.0.56:6077 to 192.168.0.106:8506 in 8 ms      [MsgId: MMSG-26000]
Action2.c(69): [SSL:] New SSL, socket=026B895C [0], connection=192.168.0.106:8506, SSL=026E0BD0, ctx=026E0608, not reused, no session      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:write(1804,64) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:write return 64
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:ctrl(6) - socket
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:ctrl return 0
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read(1804,5) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read return 5
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read(1804,74) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read return 74
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read(1804,5) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read return 5
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read(1804,607) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read return 607
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read(1804,5) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read return 5
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read(1804,4) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read return 4
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:write(1804,118) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:write return 118
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:ctrl(11) - socket
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:ctrl return 1
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read(1804,5) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read return 5
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read(1804,1) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read return 1
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read(1804,5) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read return 5
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read(1804,32) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read return 32
      [MsgId: MMSG-26000]
Action2.c(69): [SSL:] Handshake complete, connection=192.168.0.106:8506, SSL=026E0BD0, ctx=026E0608, not reused, session address=026F5830, ID (length 32): 96408736972185CE781E39096B90D91CAD0553E1FA4F00DDEFFD2D7657ECB1C8      [MsgId: MMSG-26000]
Action2.c(69): [SSL:] Considering establishing the above as a new global SSL session: bSslRessionReuseGlobal=1, _ptSSL=026E0BD0, bSslRessionReuseGlobal=026F5830, ptConnectedSslSession=00000000. Global session (_ptGlobalSslSession=00000000): no session      [MsgId: MMSG-26000]
Action2.c(69): [SSL:] Established a global SSL session      [MsgId: MMSG-26000]
Action2.c(69):
[SSL:] Connection information:
    new session
    version :                        3.01
    cipher  : RC4-MD5 (ver. 2b32c330) 128 bits
    Server certificate:
        name      : /C=UA/ST=Kiivska/L=Kyiv/O=UNIT/OU=IT/CN=UNIT/Email=gamazin_d@uni-tech.com.ua
        version   : 00.02
        public key: 512 bits
    Session information:
        master key: (length 48): F2E8A4EB2693D964C1472C92000F3F066A2D764C84466D263A2A89339AD4CC6985D1BAD388CE1C3805757DC35C06E342
        session id: (length 32): 96408736972185CE781E39096B90D91CAD0553E1FA4F00DDEFFD2D7657ECB1C8
        sess ctx  : (length 0):
      [MsgId: MMSG-26000]
Action2.c(69): t=1692ms: 254-byte request headers for "https://192.168.0.106:8506/" (RelFrameId=1, Internal ID=1)
Action2.c(69):     POST / HTTP/1.1\r\n
Action2.c(69):     Content-Type: text/xml; charset=UTF-8\r\n
Action2.c(69):     Cache-Control: no-cache\r\n
Action2.c(69):     User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT)\r\n
Action2.c(69):     Accept-Encoding: gzip, deflate\r\n
Action2.c(69):     Accept: */*\r\n
Action2.c(69):     Connection: close\r\n
Action2.c(69):     Host: 192.168.0.106:8506\r\n
Action2.c(69):     Content-Length: 273\r\n
Action2.c(69):     \r\n
Action2.c(69): t=1822ms: 273-byte request body for "https://192.168.0.106:8506/" (RelFrameId=1, Internal ID=1)
Action2.c(69):     <?xml version="1.0" encoding="US-ASCII"?><request version="1.0"><merchant_id>-2</merchant_
Action2.c(69):     id><xmlsign></xmlsign><language>LT</language><datetime>2012-09-19 15:15:30</datetime><tran
Action2.c(69):     saction type="stations" id="201209191515301727349"><name>Odesa</name></transaction></reque
Action2.c(69):     st>
Action2.c(69): BIO[026E1080]:write(1804,548) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:write return 548
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read(1804,5) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read return -1
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read(1804,5) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read return 5
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read(1804,115) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read return 115
      [MsgId: MMSG-26000]
Action2.c(69): t=2750ms: 99-byte response headers for "https://192.168.0.106:8506/" (RelFrameId=1, Internal ID=1)
Action2.c(69):     HTTP/1.1 200 OK\r\n
Action2.c(69):     Connection: close\r\n
Action2.c(69):     Content-Type: text/xml; charset=utf-8\r\n
Action2.c(69):     Content-Length: 1188\r\n
Action2.c(69):     \r\n
Action2.c(69): BIO[026E1080]:read(1804,5) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read return 5
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read(1804,1204) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:read return 1204
      [MsgId: MMSG-26000]
Action2.c(69): t=2879ms: 1188-byte response body for "https://192.168.0.106:8506/" (RelFrameId=1, Internal ID=1)
Action2.c(69):     <?xml version="1.0"?><response><transaction><station><code>2208323</code><name>ODESA PERES
Action2.c(69):     YP</name><railway code="40">ODS</railway></station><station><code>0022221</code><name>ODES
Action2.c(69):     A PORT</name><railway code="40">ODS</railway></station><station><code>2208002</code><name>
Action2.c(69):     ODESA SKHIDNA</name><railway code="40">ODS</railway></station><station><code>2208001</code
Action2.c(69):     ><name>ODESA-HOLOVNA</name><railway code="40">ODS</railway></station><station><code>220934
Action2.c(69):     5</code><name>ODESA-MALA</name><railway code="40">ODS</railway></station><station><code>22
Action2.c(69):     08449</code><name>ODESA-POYIZNA</name><railway code="40">ODS</railway></station><station><
Action2.c(69):     code>2208478</code><name>ODESA-SORTUVALNA</name><railway code="40">ODS</railway></station>
Action2.c(69):     <station><code>2208479</code><name>ODESA-ZAKHIDNA</name><railway code="40">ODS</railway></
Action2.c(69):     station><station><code>2208451</code><name>ODESA-ZASTAVA 1</name><railway code="40">ODS</r
Action2.c(69):     ailway></station><station><code>2209355</code><name>ODESA-ZASTAVA 2</name><railway code="4
Action2.c(69):     0">ODS</railway></station></transaction><datetime>2012-09-19 15:15:27</datetime><xmlsign>l
Action2.c(69):     UU40/2hGNEgszKtiICOPvPmRAjtumMazAlfV4pOCuEW1VKTUFD8Eh2BsodtOU2MRgo/E41Eb04ztkH4e7Q/0Q==</x
Action2.c(69):     mlsign></response>
Action2.c(69): t=3004ms: Closing connection [0] to server 192.168.0.106 - server indicated that the connection should be closed      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:write(1804,23) - socket fd=1804
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:write return 23
      [MsgId: MMSG-26000]
Action2.c(69): BIO[026E1080]:Free - socket
      [MsgId: MMSG-26000]
Action2.c(69): t=3021ms: Closed connection [0] to 192.168.0.106:8506 after completing 1 request      [MsgId: MMSG-26000]
Action2.c(69): t=3026ms: Request done "https://192.168.0.106:8506/"      [MsgId: MMSG-26000]
Action2.c(69): web_custom_request("192.168.0.106:8506") was successful, 1188 body bytes, 99 header bytes      [MsgId: MMSG-26386]
Ending action Action2.
Ending iteration 1.
Starting iteration 2.
Resetting all proxy auto-configuration information      [MsgId: MMSG-26000]
Notify: Next row for parameter NewParam_15 = 1 [table  = NewParam_15].
Notify: Getting new value for parameter 'NewParam_15': table = 'code_station_to.dat' column = '0' row = '1'.
Notify: Next row for parameter NewParam_14 = 1 [table  = NewParam_14].
Notify: Getting new value for parameter 'NewParam_14': table = 'code_station_from.dat' column = '0' row = '1'.
Notify: Next row for parameter NewParam_17 = 1 [table  = NewParam_17].
Notify: Getting new value for parameter 'NewParam_17': table = 'RequestUrl.dat' column = '0' row = '1'.
Notify: Next row for parameter NewParam_16 = 1 [table  = NewParam_16].
Notify: Getting new value for parameter 'NewParam_16': table = 'url.dat' column = '0' row = '1'.
Notify: Next row for parameter NewParam_10 = 2 [table  = NewParam_10].
Notify: Getting new value for parameter 'NewParam_10': table = 'type_pay.dat' column = '0' row = '2'.
Notify: Next row for parameter NewParam_5 = 1 [table  = NewParam_5].
Notify: Getting new value for parameter 'NewParam_5': table = 'station.dat' column = '0' row = '1'.
Notify: Next row for parameter NewParam_19 = 2 [table  = NewParam_19].
Notify: Getting new value for parameter 'NewParam_19': table = 'language.dat' column = '0' row = '2'.
Notify: Next row for parameter NewParam_7 = 1 [table  = NewParam_7].
Notify: Getting new value for parameter 'NewParam_7': table = 'kind .dat' column = '0' row = '1'.
Notify: Next row for parameter NewParam_2 = 1 [table  = NewParam_2].
Notify: Getting new value for parameter 'NewParam_2': table = 'vagon_type.dat' column = '0' row = '1'.
Notify: Next row for parameter NewParam_3 = 1 [table  = NewParam_3].
Notify: Getting new value for parameter 'NewParam_3': table = 'train_number.dat' column = '0' row = '1'.
Notify: Next row for parameter NewParam_8 = 2 [table  = NewParam_8].
Notify: Getting new value for parameter 'NewParam_8': table = 'dates.dat' column = '0' row = '2'.
Starting action Action2.
Action2.c(5): web_set_sockets_option started      [MsgId: MMSG-26355]
Action2.c(5): web_set_sockets_option was successful      [MsgId: MMSG-26392]
Action2.c(6): web_set_sockets_option started      [MsgId: MMSG-26355]
Action2.c(6): web_set_sockets_option was successful      [MsgId: MMSG-26392]
Action2.c(8): web_set_certificate_ex started      [MsgId: MMSG-26355]
Action2.c(8): Error -27775: No certificate file type      [MsgId: MERR-27775]
Action2.c(8): web_set_certificate_ex highest severity level was "ERROR"      [MsgId: MMSG-26391]
Ending action Action2.
Ending iteration 2.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.

 

 

Скажу сразу -- я не в теме :)

Возможно, этот пост может чем-то помочь:

 

Client Side certificates with LoadRunner

 

В свое время тоже навозился с этими сертификатами, но не для целей лоад теста. 

Отпишитесь пожалуйста если эта ссылка хоть чем то помогла