1
Reply

A call to SSPI failed, see inner exception.

sumesh np

sumesh np

Mar 12 2015 7:31 AM
2.4k
Hi,
There is an exception when connecting to Epp Server, "A call to SSPI failed, see inner exception." 
 
public void Connect()
{
var client = new TcpClient(EPP_REGISTRY_COM, PORT);
stream = new SslStream(client.GetStream(), false, ValidateServerCertificate)
{
ReadTimeout = READ_TIMEOUT,
WriteTimeout = WRITE_TIMEOUT
};
if (clientCertificate != null)
{
var clientCertificates = new X509CertificateCollection {clientCertificate};
stream.AuthenticateAsClient(EPP_REGISTRY_COM, clientCertificates, SslProtocols.Tls, false);
}
else
{
stream.AuthenticateAsClient(EPP_REGISTRY_COM);
}
}
 
 How to solve this ?
 

Answers (1)