Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8706243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:34:06+00:00 2026-06-13T03:34:06+00:00

I am using WebBrowser control to programmatically access a single website, but whenever I

  • 0

I am using WebBrowser control to programmatically access a single website, but whenever I login, I receive this certificate security alert:

enter image description here

Since I trust that website and since I need to programmatically automate the login as well, this dialog box gets in the way.

I searched SO for a solution and found a question similar to mine, but the accepted answer does not work!

I defined a static member in the form that contains the WebControl:

public static bool ValidateServerCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
{
  return true;
}

In my form’s constructor I added:

ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(ValidateServerCertificate);

But that didn’t get rid of the certificate security alert.

I also, clicked the View Certificate button, then clicked the Install Certificate button in the dialog that followed, but that didn’t seem to help either.

Is there any way to get rid of this warning?

Is there an IE equivalent to Firefox’s Add Security Exception‌​?

Note: The owner’s certificate works perfectly fine (without exhibiting this security alert) with standalone browsers (IE, FF, Chrome, Safari). It only exhibits the problem with the WebBroswer control.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:34:07+00:00Added an answer on June 13, 2026 at 3:34 am

    The best idea is to sort out the broken certificate. Browsers guard these warnings for a reason. What you’re doing is trying to circumvent the user’s safety.

    If you must do this using the webbrowser control, then set ScriptErrorsSuppressed to true.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Webbrowser control to login to HTTPS site. but I get popup Security
I'm using Webbrowser control to login to HTTPS site with untrusted certificate. but I
Possible Duplicate: How to disable “Security Alert” window in Webbrowser control I'm currently using
I'm automating form login in a certain site using the WebBrowser control. Having the
I'm using webBrowser.Navigate(url) control to display page. I noticed this action steals focus from
i m using webbrowser control in my c# application but the document_completed fun is
I coded a very small website bot in C# using the default WebBrowser control.
I'm using WebBrowser control to navigate through a login page and download a file.
I am using a webbrowser control in windows phone 7 application (7.1 OS), but
I am using WPF WebBrowser control and I want to acces some of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.