2

I'm getting an onResourceError related to SSL with PhantomJS on CentOS 6.5, PhantomJS version 1.9.1:

Error code: 99, description: Error creating ssl context ()

My script works fine on my windows dev environment, but stops on my production server running CentOS.

I've tried both popular answers on this StackOverflow question by setting --ignore-ssl-errors=true and --ssl-protocol=any (I've tried both of these options separately and combined). I've also tried setting --web-security=false (I'm only using this script to access one page, which I trust very much). I've tried all combinations of combining these options, with no luck.

I've even gone so far as to follow a recommended solution by bgever@ on this page (Apr 29, 2015)to create an SHA256 security certificate by following these directions (which worked surprisingly smoothly) and use the --ssl-certificate-path=<path> option, but I'm still getting the same error here. I've exhausted my resources and knowledge here, and I've made no progress. Any help would be really appreciated.

Community
  • 1
  • 1
aikorei
  • 570
  • 1
  • 7
  • 23
  • PhantomJS 1.9.1 is really old. Have you tried upgrading to 1.9.8 or 2.0.0? – Artjom B. Jul 27 '15 at 13:16
  • They don't have a stable 2.0.0 Linux build yet, so I just used the version I could find from another site. I'll poke around for 1.9.8, though - thanks for the suggestion. – aikorei Jul 27 '15 at 13:42
  • It might help if you provide the URL of this site (if public) or a packet capture so one can analyze what's going on with wireshark. – Steffen Ullrich Jul 27 '15 at 14:05
  • @ArtjomB. upgrading my phantom version to 1.9.8 solved the problem. If you post as an answer, I'd be happy to accept. Thanks! – aikorei Jul 27 '15 at 14:23
  • @aikorei Sure, I could post the answer, but I have no idea why this is solved. – Artjom B. Jul 27 '15 at 14:24
  • Me neither - I'm just glad it's working now. Up to you. And thanks regardless. – aikorei Jul 27 '15 at 14:25

0 Answers0