SSLStream Certification RRS feed

  • Question

  • I want to ask a couple of clear questions

    1- I have implemented my create certification Algo is it safe to use my self-signed certifications ?

    2- in an MSDN example of SSL

    this code snippet

            private static bool OnCertificateValidation(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
                // This sample returns true always so that you can see how
                // it works.  You should change logic in the validator to only
                // return true if you've inspected the certificate and approve it.
                return true;

    And as i understand it is used to verify that server certification (making sure that this is the trusted server )

    So how could i use it ?

    Best wishes and i really love to hear from you soon [iam in a hurry] please

    • Edited by Healian Wednesday, August 22, 2012 1:11 AM
    Wednesday, August 22, 2012 1:07 AM

All replies

  • 78 views 0 answers !

    4 Days and no answer idk why there is no one helps in SSL ?!!

    • Edited by Healian Saturday, August 25, 2012 1:44 AM
    Wednesday, August 22, 2012 10:23 PM
  • So Would i give up ? i want to validate client certification !
    • Edited by Healian Thursday, August 23, 2012 11:28 PM
    Thursday, August 23, 2012 11:26 PM
  • HELP PLEASE!!! Why that ignore !
    Friday, August 24, 2012 10:32 PM
    Friday, August 24, 2012 10:45 PM
  • You'd be better asking in a security/cryptography forum for details on this subject.

    As a network programmer...  I would use the OnCertificateValidation function to check the Thumprint property is as I expect. You'd need to ask the security guys how safe that it; what your requirements are and what attacks are possible.

    http://www.alanjmcf.me.uk/ Please follow-up in the newsgroup. If I help, please vote and/or mark the question answered. Available for contract programming.

    Monday, August 27, 2012 1:38 PM