phantomjs生成网页快照,有些https 证书不支持问题解决

phantomjs 在生成快照时,有些https 证书不支持,可以加参数  --ignore-ssl-errors=true   --ssl-protocol=any  来解决。  

phantomjs --ignore-ssl-errors=true --ssl-protocol=any /var/www/site/api/library/Screenshots.js https://www.baidu.com /var/www/site/upload/image/baidu.jpg

  

 
原文地址:https://www.cnblogs.com/tdalcn/p/12145386.html