I\'m going to learn how to handle HTTPS traffic in C# as server-side and as for the first steps I\'ve got some troubles.
Here is some code ( http://pastebin.com/C4ZYr
All is fine, the answer is to use X509Certificate2 class instead of X509Certificate.
X509Certificate2
X509Certificate
And to add to the trust list your created certificate.