Security Certificate error in Webbrowser

Asked

Viewed 205 times

1

I’m working on a winforms program that basically uses the WebBrowser to access the website of the federal revenue using the digital certificate.

My problem is the following, first of all, I got this project ready and I’m hammering it as needed, it needs to be accessed by IE (no matter the version), access is done from time to time and can be idle for a long time.

It turns out that after staying long idle it falls into error Security Certificate of IE and does not come out more.

I tried to close the case, but always ends up skipping some popup IE and needing user intervention (to give the OK in the message).

Obs.: I’ve already added the site to the trust, I’ve added the site certificate, I’m already using the ScriptErrorsSuppressed = true and I’ve tried to force navigation to another page, but the program crashes. It’s configured in the IE to use the digital certificate without having to request.

1 answer

1

Certified sites are complicated to use with webbrowser. When I came across this problem, initially I decided to make a thread to monitor when the certificate window appears and throw a ENTER on the key. this works only when you have 1 certificate, however the window cannot lose focus.

The ideal serial solution to use httpwebrequest.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.