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.5k Views Asked by Sam At
1
There are 1 best solutions below
Related Questions in SSL
- Meteor: How to save files with 'submit form' instead of 'change' events
- Meteor MapReduce Package Error: A method named is already defined
- how to resolve the 'unknown provider' angular injectr error when adding third party angular directives to angular-meteor app
- Meteor: get template name in spacebars
- What are the benefits of using the fields option when querying in Meteor
- Why are numbers being inserted into MongoDB incorrectly?
- iron:router check if route loaded with history.back
- How to get auto-completion for meteor API working on Visual Studio?
- Is there a manual way of telling Spiderable to consider the page “ready”?
- android sdk install error EPIPE
Related Questions in CASPERJS
- Meteor: How to save files with 'submit form' instead of 'change' events
- Meteor MapReduce Package Error: A method named is already defined
- how to resolve the 'unknown provider' angular injectr error when adding third party angular directives to angular-meteor app
- Meteor: get template name in spacebars
- What are the benefits of using the fields option when querying in Meteor
- Why are numbers being inserted into MongoDB incorrectly?
- iron:router check if route loaded with history.back
- How to get auto-completion for meteor API working on Visual Studio?
- Is there a manual way of telling Spiderable to consider the page “ready”?
- android sdk install error EPIPE
Related Questions in SLIMERJS
- Meteor: How to save files with 'submit form' instead of 'change' events
- Meteor MapReduce Package Error: A method named is already defined
- how to resolve the 'unknown provider' angular injectr error when adding third party angular directives to angular-meteor app
- Meteor: get template name in spacebars
- What are the benefits of using the fields option when querying in Meteor
- Why are numbers being inserted into MongoDB incorrectly?
- iron:router check if route loaded with history.back
- How to get auto-completion for meteor API working on Visual Studio?
- Is there a manual way of telling Spiderable to consider the page “ready”?
- android sdk install error EPIPE
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 # Hahtags
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.)