nitekram Posted April 30, 2013 Posted April 30, 2013 I have an issue that I want to bypass in Internet Explorer - I know that the correct way would be to have the Cert fixed for the URL, but I do not control that, and in the past is to much of a hassle to get it done. I am working with internal webpages and when I open I get this kind of message: There is a problem with this website's security certificate. The security certificate presented by this website was not issued by a trusted certificate authority. The security certificate presented by this website has expired or is not yet valid. Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server. We recommend that you close this webpage and do not continue to this website. Click here to close this webpage. Continue to this website (not recommended). More information Anyway, I want to auto click the Continue to this website (not recommended) - how would I go about doing that? $WebPage = "Certificate Error: Navigation Blocked - Windows Internet Explorer" If WinExists($WebPage) And 1 = 0 Then MsgBox('','CAUGHT','') WinActivate($WebPage) Local $sMyString = "Continue to this website (not recommended)." ControlClick($WebPage, $sMyString, 'continueToSiteAlign') ;$sMyString) ;'https://neteiss.amer.csc.com/cgi/Explorer.pl') ;Exit EndIf 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator
abberration Posted April 30, 2013 Posted April 30, 2013 I have seen this error before. Is the date/time correct on your computer? More info with a workaround: http://support.microsoft.com/kb/931850 Easy MP3 | Software Installer | Password Manager
DaleHohm Posted April 30, 2013 Posted April 30, 2013 You don't say how you get yourself here, but you may need to turn off LoadWait in the _IEx function you are calling so that your code for dismissing the dialog isn't waiting for the IE function call to complete. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble
nitekram Posted April 30, 2013 Author Posted April 30, 2013 I get to this by a favorite, not by IEcreate(), as I have that working for sites I pull up for via my script...what I am doing is in my while/wend loop, I am looking for this to come up and if it does - auto click the link I want.My computer is fine - with date and time, it has to do with the IIS or whatever they are using internal to the company for Intranet.Sorry, none of the resolutions from here will work, http://support.microsoft.com/kb/931850, as I stated, I have tried to get them to fix it in other companies and they are not willing or unable to fix - most reasons fall on money, as I think I remember that they have to purchase the cert, but in either case, I want a local workaround.I was thinking that I could use IE.au3 UDF to do what I need to do, but need to be able to get an object from an existing webpage, as far as I can tell with the parameters that each function is looking for, ie Object.I can produce the source here:expandcollapse popup<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML DIR="LTR"> <HEAD> <link rel="stylesheet" type="text/css" href="ErrorPageTemplate.css" > <META NAME="MS.LOCALE" CONTENT="EN-US"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes"> <TITLE>Certificate Error: Navigation Blocked</TITLE> <SCRIPT src="errorPageStrings.js" LANGUAGE="javascript" type="text/javascript"> </SCRIPT> <script src="httpErrorPagesScripts.js" language="javascript" type="text/javascript"> </script> <SCRIPT src="invalidcert.js" LANGUAGE="javascript" type="text/javascript"> </SCRIPT> </HEAD> <body onload="BodyLoad(); initMoreInfo('infoBlockID');" class="securityError"> <table width="730" cellpadding="0" cellspacing="0" border="0"> <!-- Main title --> <tr> <td id="shieldIconAlign" width="60" align="left" valign="top" rowspan="3"> <img src="red_shield_48.png" id="shieldIcon" alt="Shield icon"> </td> <td id="mainTitleAlign" valign="middle" align="left" width="*"> <h1 id="mainTitle">There is a problem with this website's security certificate.</h1> </td> </tr> <tr> <td> <h3> <DIV ID="linkdiv" name="linkdiv" ></DIV> </h3> </td> </tr> <tr> <!-- This row is for the the divider--> <td id="errorCodeAlign" class="errorCodeAndDivider" align="right"> <div class="divider"></div> </td> </tr> <!-- Error Body --> <tr> <td></td> <td> <h3> <DIV ID="CertUnknownCA" name="CertUnknownCA" style="display='none'"></DIV> <DIV ID="CertExpired" name="CertExpired" style="display='none'"></DIV> <DIV ID="CertCNMismatch" name="CertCNMismatch" style="display='none'"></DIV> <DIV ID="CertRevoked" name="CertRevoked" style="display='none'"></DIV> <noscript id="securityCert1">The security certificate presented by this website has errors, and should not be trusted. </noscript><br> <ID id="securityCert2">Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server.</ID> </h3> </td> </tr> <!-- Recommendation--> <tr> <td> </td> <td><H2 id="recommendation"><b>We recommend that you close this webpage and do not continue to this website. </b></H2></td> </tr> <!-- close webpage--> <tr> <td > </td> <td id="closeWebpageAlign" align="left" valign="middle"> <h4 id="closeWebpage"> <img src="green_shield.png" border="0" alt="Recommended icon" class="actionIcon"><a href="javascript:closePage()">Click here to close this webpage.</a> </h4> </td> </tr> <!-- continue to site--> <tr> <td > </td> <td id="continueToSiteAlign" align="left" valign="middle"> <h4 id="continueToSite"> <img src="red_shield.png" ID="ImgOverride" border="0" alt="Not recommended icon" class="actionIcon"><A href='' ID="overridelink" NAME="overridelink" >Continue to this website (not recommended).</A> </h4> </td> </tr> <!-- InfoBlock --> <tr> <td id="infoBlockAlign" align="right" valign="top"> </td> <td id="moreInformationAlign" align="left" valign="middle"> <h4> <table> <tr> <td valign="top"> <a href="#" onclick="javascript:expandCollapse('infoBlockID', true); return false;"><img src="down.png" id="infoBlockIDImage" border="0" class="actionIcon" alt="More information"></a> </td> <td valign="top"> <span id="moreInfoContainer"></span> <noscript><ID id="moreInformation">More information</ID></noscript> </td> </tr> </table> </h4> <div id="infoBlockID" class="infoBlock" style="display: none"> <p> <li id="errorExpl1">If you arrived at this page by clicking a link, check the website address in the address bar to be sure that it is the address you were expecting.</li> <li id="errorExpl2">When going to a website with an address such as https://example.com, try adding the 'www' to the address, https://www.example.com.</li> <li id="errorExpl3">If you choose to ignore this error and continue, do not enter private information into the website.</li> </p> <p id="moreInfoSeeHelpPF">For more information, see "Certificate Errors" in Internet Explorer Help.</p> </div> </td> </tr> </table> </body> </html> 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator
DaleHohm Posted April 30, 2013 Posted April 30, 2013 Oh, I see - it is an HTML popup. Attach to it with _IEAttach, DialogBox Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble
MouseSpotter Posted April 30, 2013 Posted April 30, 2013 #include <ie.au3> Local $oIE = _IEAttach("Cert") _IELinkClickByText($oIE, "Continue to this website (not recommended).")
nitekram Posted April 30, 2013 Author Posted April 30, 2013 #include <ie.au3> Local $oIE = _IEAttach("Cert") _IELinkClickByText($oIE, "Continue to this website (not recommended).") WOW, that was really cool - I am so new to IE.au3, and it appears I have a lot more to learn. Thanks for your time! 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator
JohnOne Posted April 30, 2013 Posted April 30, 2013 So this is circumnavigating a security issue then? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
DaleHohm Posted May 1, 2013 Posted May 1, 2013 No, it is not. It is working around a web server config issue. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble
MouseSpotter Posted May 1, 2013 Posted May 1, 2013 So this is circumnavigating a security issue then?Like all code on this site - it is dependent on usage.Reading through nitekram's post, the member usage is doing what a user would be required to do within their organisation.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now