SSL (Secure Socket Layer) Extensions

There are several Silk Performer configuration options for replaying scripts in a secure environment. These include the following:

  • Replaying scripts using SSL

  • Replaying scripts using client certificates

Example

use "WebAPI.bdh" 

const
  USERS := 5;

 dcluser
  user
    WebUser(USERS)
  transactions
    TWeb : 1; 

dcltrans
  transaction TWeb
  var
    sClientCert: string(1000);
  begin
    WebParseResponseData(sClientCert, 1000, "<BR>SUBJECTCN:", "<BR>");
    WebUrl("https://bowie/clientcert.asp", 0.0);
    WebThreadWait();

    if strlen(sClientCert) > 0 then
      write("The server got a client certificate from: ");
      write(sClientCert); writeln;
    else
      write("Error using client certificate number :");
      write(GetRuntimeID()); writeln;
    end;

     Print(sClientCert, 1, TEXT_MAGENTA);
  end TWeb;