SslSetClientCert Function

Action

Sets the client certificate that Silk Performer presents the secure server in behalf on the real client's certificate. To use a client certificate, it must be exported from the Web browser and imported into the Silk Performer certificate store first.

Include file

WebAPI.bdh

Syntax

SslSetClientCert( in sCertFile : string ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
sCertFile Certificate file (.pem) located in the Silk Performer user data directory. To copy a client certificate into the user data directory, it has to be exported from the Web browser.

Example

dcltrans
  transaction TSecureHTTP
  begin
    SslSetEncryption(SSL_VERSION_SSL3, SSL_CIPHERS_SSLv3);
    SslSetClientCert("Sunny.pem");
    WebUrl("https://www.company.com");
  end TSecureHTTP;

Sample scripts

WebSecure01.bdf, WebSecure02.bdf