I have written my own webserver in C#.
And I always established SSL certificates for my sites in new IP on port 443. And always it works fine.
But this time I get this error:
Secure Connection Failed
An error occurred during a connection to www.sayehrooshan-co.com. SSL received a record that exceeded the maximum permissible length. Error code:
SSL_ERROR_RX_RECORD_TOO_LONG
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified. Please contact the website owners to inform them of this problem.
this is page address:
https://www.sayehrooshan-co.com
this is my code always worked with .pfx file for other sites:
sslstream = new SslStream(new NetworkStream(mySocket, false), false); //commented for nedaye arzhang X509Certificate2 serverCertificate = new X509Certificate2(Path, Password); //X509Certificate2 serverCertificate = new X509Certificate2("www_nedaye-arzhang_com.cer"); sslstream.AuthenticateAsServer(serverCertificate, false, System.Security.Authentication.SslProtocols.Tls, true); searched alot but didn't get any solution Anyone get any idea?


