Hello,
Please have a look over the ICertificatePolicy Interface, if you need to check wether or not a SSL certificate is valid:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemneticertificatepolicyclasstopic.asp