title: Ignoring web browser SSL security alerts in console application
body: <p>I'm creating a console application that is able to remotely capture screenshots of websites. Everything is working except the fact that I can't avoid Certificate errors. Every time I get popup message that I'm unable to pass.</p>
  
  <p>I tried using:</p>
  
  <blockquote>
    <p>ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(ValidateServerCertificate);</p>
  </blockquote>
  
  <p>But it doesn't work.
  Also tried the solution found here:
  <a href="http://www.codeproject.com/Articles/31163/Suppressing-Hosted-WebBrowser-Control-Dialogs" rel="nofollow">http://www.codeproject.com/Articles/31163/Suppressing-Hosted-WebBrowser-Control-Dialogs</a>
  but but it doesnt seem to work for webbrowser invoked from console application.</p>
  
  <p>Any ideas?</p>