Secure RemoteCertificateValidationCallback
===

I use a sslstream with self signed certificates. So now when I was done with testing( i tested using a RemoteCertificateValidationCallback which accepts all), i wanted to make it secure.

I found many examples, which are using the sslpolicyerrors parameter, but in my case it always didnt  return sslpolicyerrors.none(thought it had to do sth with the self signed certs). 

Can anyone give me pls a secure code for a RemoteCertificateValidationCallback using self signed certificates????

Thank you