Connect to server with ssl

Hi,

I have a custom server (delphi) which uses SSL for client connections.
I have installed the certificate on the client machine. The client application is written in .net. When I try to connect to the server I get this error: “A call to SSPI failed, see inner exception.” and the inner exception is “The message received was unexpected or badly formatted”

Any idea what the problem may be?

In general this means that there is a certificate issue (usually at the server side). Still it would be good to see the exception’s stacktrace (both of them).

Please try these 2 things:

  1. Remove all the certificate loading code, add the code needed to accept all and any certificates sent from the server and try to connect to the server ( https://docs.remotingsdk.com/Clients/Tasks/HandlingSelfSignedCertificates/NET/ ). That is required to check if the server-side certificate is configured properly.

  2. Please try to open your server’s http page in the browser - what will it show there?

Thanks for the answer,

We need to validate the certificate sent by the client on the server.

In the browser there is popup with a certificate chooser. After selecting the certificate the page loads normally.

Hello

Oh, right, you use the client certificate authentication. Could you send a mail to support@ ? I’d need to ask you to try a custom-built client to connect to your server.

Once we’ll find a solution to the issue I’ll post it in this thread too for further reference.

Thanks in advance