TScSslClient.IsSecure failure

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
wheathoff
Posts: 14
Joined: Thu 08 Feb 2018 18:39

TScSslClient.IsSecure failure

Post by wheathoff » Wed 21 Mar 2018 15:53

According to the documentation at https://www.devart.com/sbridge/docs/ssl ... ration.htm, the last step in setting up a secure client connection is "To make the connection secure, turn the IsSecure property to True."

In my code, I am doing this in the component's AfterConnect event.

Code: Select all

  MySslClient.IsSecure := True;

  try
    RequestResult := MySslClient.WriteBuffer(ReqBuff, 0, Length(ReqBuff));

    SetLength(RespBuff, 1024*1024);
    Len := MySslClient.ReadBuffer(RespBuff, 0, Length(RespBuff));
    if Len = 0 then
      Raise('Zero length response from host');
    SetLength(RespBuff, Len);
    ResponseStr := ResponseStr + AsciiBytesToStr(RespBuff);

    ShowMessage(ResponseStr);
  finally
    MySslClient.Disconnect;
  end;

However, when MySslClient.IsSecure is called, we are getting an alert from THandshakeLayer.ProcessAlert:
"The other side has sent a failure alert: [40]"

Why would this happen when we try to set IsSecure?

Thanks!

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: TScSslClient.IsSecure failure

Post by ViktorV » Thu 22 Mar 2018 09:32

Unfortunately, we cannot reproduce the issue on the latest version SecureBridge 8.1.3.
Please check whether the problem occurs on the latest version SecureBridge 8.1.3 and if yes, to investigate the specified SecureBridge behavior, please compose a small sample demonstrating the issue of test access to your server and send it to us via e-support form: https://www.devart.com/company/contactform.html

Post Reply