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
- Django's previous settings prevent connecting to localhost
- SSL error when redirecting from one lightsail subdomain to lightsail subdomain on different account
- HTTP Requests from SSL Secured(HTTPS) Domain Failing
- Reversed TLS re-connection issue
- Nginx configuration file and SSL certificate errors in Docker
- IBM DB2 console doesn't work after SSL certificate update
- mTLS not working with FastAPI and Uvicorn
- WSO2 change localhost - ERR_CERT_AUTHORITY_INVALID
- KeyCloak Handshake causing timeout
- Python SSL Error , Server side - Client certificate verify failing with Intermediate cert - self-signed certificate in certificate chain (_ssl.c:1007)
- Apps migrated from IIS server1 to another IIS server2 stopped communicating with an App on IIS server 1 via SSL (HTTPS)
- Let Artifactory use HTTPS settings
- Even though I added my SSL certificate, I get the "not secure" error
- CST 0001 ERRO [comm.tls] ClientHandshake -> Client TLS handshake failed after 173.725µs with error EOF remoteaddress=127.0.0.1:7051
- ERR_SSL_PROTOCOL_ERROR generated using X509 certificate with Kestrel hosting in .NET 8 on Linux
Related Questions in CASPERJS
- Is there any Playwright equivalent for waitForResource in CasperJS?
- Cookies popup stops login to Amazon with CasperJS
- Ghost email subscribe is giving “Failed to sign up, please try again” error
- searchParams not working when called from inside CasperJS code
- Casper JS returns only first row of a table
- Trying to fill table element by id with casperjs
- function this.click dont work on casperjs
- Difficulties installing casperjs on Mac
- Casperjs persisting cookies
- casperjs failed to access certain websites that even wget can
- CasperJS not scraping paginated data except first
- I am new in web scraping using casperjs try to run some example problem but doesn't get the result
- C# WebClient - Getting an HTML from URI instead of CSV from OBIEE
- Insert stripe credit card number using casperjs in magento2
- How to download image from link direct to save or download button click with CasperJS?
Related Questions in SLIMERJS
- How to set a proxy when creating an instance of phantomjs
- How to allow access to the browsers geolocation API using slimerJS?
- shell - Pass command line arguments to bash script does not work
- How to open slimerjs without display?
- how to integrate the slimerjs file with the help of php
- Cant open https web using Slimerjs, casperjs, phantomjs
- Tools to create a browser game host bot (Headless/WebRTC)
- What is phantomjs --wd command alternative for slimerjs?
- How strong are CasperJS's interoperability goals?
- CasperJS not confirming dialog
- Get URL redirects with slimerJS and take screenshot of final URL
- Headless browsers not honouring view port in matchMedia queries
- Sinon with PhantomXHR - Window.sinon is undefined
- Open pdf by link and make capture
- Download resource image files using casperjs
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.)