Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have an app with a a WebBroswer control. That browser loads a page that gives you the SSL Security error and it pops up as a Security Alert when the program launches giving you the Yes/No/Details buttons. The issue with the page is that it has the
ERR_SSL_WEAK_SERVER_EPHEMERAL_DH_KEY
- error I get when loading it in Chrome. IE loads but gives you a prompt to dismiss the error and proceed.

Is there a way to make my program accept the exception for the cert rather than prompt the user to do it? Multiple threads online say just get the server admin to fix it. Can't really do that since it's an external tool I have access to and have no idea who manages it.

What I have tried:

SendKeys.Send("LEFT") or "ENTER" not working - I guess those are for the form itself and the alert is a separate thing. Tried to use System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate {return true; }; didn't work either - still getting Security Alert
Posted
Updated 9-Feb-16 23:15pm
v2
Comments
Sinisa Hajnal 10-Feb-16 6:16am    
Find out who the admin is and have them resolve it. If you have access you should be able to find out who manages it.
[no name] 10-Feb-16 6:52am    
The situation is that this is an accessible intranet site at my work. I'm making a program for myself and others that can manage it better. The site just shows a big table of data which I'm sorting. There's no "Contact Us" button, so I can't contact the admin plus even if I do they won't care enough to fix it. That's why I'm looking for an alternative solution to see what other ways there is to go around the problem rather than do the completely obvious and just "Find out who the admin is"
EliteBrain 10-Feb-16 7:03am    
Give complete path of the Certicate in the URL this will prevent popup.
Usualy it happens when certificate is not installed on rooot.
[no name] 10-Feb-16 18:42pm    
Yeah it says "This CA Root cert is not trusted." Gives an option to install it but after installing it still gives pop up. How do I get the cert path? In the Cert Path tab it just says like "randomtext.domain.ad" so where would I add it to the URL?
Nathan Minier 11-Feb-16 10:27am    
Lazy.

You're not going to be able to gracefully bind to that. The people who run the server would need to do use an SSL cert that specifies the base address of the site. You can't work around that as a client.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900