I'm working on a winforms program that basically uses WebBrowser
to access the federal revenue site using the digital certificate.
My problem is as follows, 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 made from time to time and can be idle for a long time.
It turns out that after a lot of idle time it crashes IE Security Certificate error and no longer leaves.
I have tried to close the instance, but always end up skipping some popup from IE and needing user intervention (to give OK in the message).
Obs : I already added the site to the trust, I already added the site's certificate, I'm already using ScriptErrorsSuppressed = true
and already tried to force navigation to another page , but the program hangs. It is configured in IE to use the digital certificate without having to request it.