I'm pretty far down the path of incorporating SlimerJS into my web scrapers and I've come across an issue. One site I am working on just had their SSL certificate go invalid. Upon looking at Slimer's SSL documentation, it appears that they do not support PhantomJS's ignore-ssl-errors option. Is there a way around this? The SSL certificate error page that appears in the browser does not have any sort of continue button that I can make Slimer click. As an FYI, I am using CasperJS as a wrapper for SlimerJS.
SlimerJS ignore SSL errors
2.6k Views Asked by Sam At
1
There are 1 best solutions below
Related Questions in SSL
- How to Fix TLS CBC Incorrect Padding Abuse Vulnerability on Windows 2003 Server
- SSL: Error parsing the certificate: Ok
- PHP mysqlnd sha256_password plugin "Access denied", user works from cli mysql
- CFNetwork SSLHandshake failed iOS 9
- Java does not accept 2 methods with same name
- Expected Compatibility Issues with upcoming TLS/SSL Cipher Suite update on Azure WebApps?
- python requests SSLError
- Connecting via mutual SSL fails reading incoming changeCipherSpec
- HTTP to HTTPS mapping using proxy servers
- Ruby on Windows XP: How to change directory of SSL certificates
- KeyStore file is not found in jar, although present in jar
- How do I accept a self-signed SSL certificate using iOS 7's NSURLSession
- Chef remote_file from https site with self signed certificate
- Meteor force-ssl on a staging system without ssl cert?
- Use python SSL to download google.com.au page
Related Questions in CASPERJS
- I dont know how to add Proxy to my Phantomjs script
- CasperJs Catch Timeout and Restart Process
- CasperJS click on buttons is not working
- Download file with Casperjs
- Unable to fill the login credentials from commandline in casperjs
- How to set test case fail and pass messages in Casper js?
- Why can't I connect to a local server using phantomjs / casperjs
- CasperJS waitForResource again
- CasperJS is not clicking my XPath item
- Child Process Node.js with CasperJs: Cannot find module 'casper'; require statement
- how can I click a link using CasperJS without knowing the css selector
- Casperjs visible() returns true while jquery is(':visible') returns false for the same selector
- PhantomJS connects to URL but CasperJS times out
- Child Process - Node.js with CasperJs: How to include arguments?
- Web scraping with casperjs returns error
Related Questions in SLIMERJS
- Slimerjs with exec linux centos 6
- Opening local html file with SlimerJS
- Using CasperJs + SlimerJS for testing 3rd party tracking. Calls don't go out
- How to inject external input into a SlimerJS script dynamically?
- SlimerJS ignore SSL errors
- How to setup SlimerJS with CasperJS on Windows?
- Gecko/Firefox 33.0 crashes on YouTube IFrame API ytPlayer.seekTo(seconds, allowSeekAhead)
- How to print text of all loc tags using casperjs
- With Casper.js, is it possible to accept browser permission prompts?
- Changing navigator data in iframe with SlimerJS (or PhantomJS)
- Handle download dialog box in SlimerJS
- Get URL redirects with slimerJS and take screenshot of final URL
- CasperJS not confirming dialog
- How to execute Casper JS TestSuite with some delay between each TestCase?
- Schedule SlimerJS task on Ubuntu
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
My blog entry (pasted in below) explains how (and it shows the Casper instructions too):
SlimerJS (as of 0.8.3) lacks the commandline options of PhantomJS to say "relax about bad certificates". Unfortunately the self-signed SSL certificate, that developers typically use during development, counts as a bad certificate.
Here are the steps needed to handle this:
slimerjs --createprofile AllowSSLMake a note of the directory it has created. (You can call your new profile anything, "AllowSSL" is just for example.)Go to normal desktop Firefox, browse to the URL in question, see the complaint, add it as a security exception. Chances are, if you have been testing your website already, that you've already done this and you can skip this step.
Go to your Firefox profile, and look for the file called "cert_override.txt". Copy that to the directory you created in step 1.
Have a look at the copy you just made of "cert_override.txt". If it only has the entry you added in step 2, you are done. Otherwise, remove the entries you don't want. (The file format is easy: one certificate per line.)
Now when you need to run slimerjs you must run it with the "-P AllowSSL" commandline parameter. E.g.
slimerjs -P AllowSSL httpstest.jsIf you are using SlimerJS with CasperJS (requires CasperJS 1.1 or later), do the same, e.g.
Troubleshooting Ideas
Use
export SLIMERJSLAUNCHER=/usr/bin/firefoxto have SlimerJS use your local copy of Firefox, rather than its internal Gecko engine. This should definitely work, because in step 2 above you added the security exception to that version of Firefox. (The rest of the instructions above are just for getting it to work with the internal Gecko engine that comes with SlimerJS.)