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”
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:
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.
Please try to open your server’s http page in the browser - what will it show there?
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.