支持在phantomjs

支持在phantomjs

问题描述:

SSL客户端身份验证此承诺:support for SSL Client Authentication ......告诉我们有一个证书国旗...支持在phantomjs

我尝试玩:

phantomjs main.js \ 
    --ssl-protocol=any \ 
    --ssl-client-certificate-file=/tmp/joppli/data/certificate/certificado.crt \ 
    --ssl-client-key-file=/tmp/joppli/data/certificate/certificado.key \ 
    --ssl-client-key-passphrase=foobar \ 
    --web-security=false 

我试着然而什么都,我无法访问该页面。我得到:

page.onLoadFinished 
arguments[0] = "fail" 

上述命令是否正确?它为什么会失败?我怎样才能调试出了什么问题? (该消息fail叶多渴望)

我想访问的页面是:https://www.sedecatastro.gob.es/
用了SSL:http://www.sedecatastro.gob.es/它工作得很好,虽然。

我却无法访问该网页的某些部分用了一个特殊的证书:

该网站的HTTPS版本不提供其整个TLS证书链,导致phantomjs在不受信任的证书上失败。尝试将--ignore-ssl-errors=true添加到您的命令行中,并查看是否有效。如果是这样,正确的解决方案将是下载中间CA的证书,然后告诉phantomjs与--ssl-certificates-path=/path/to/ca.pem信任它。

您所需要的证书可在https://ssl-tools.net/certificates/ec503507b215c4956219e2a89a5b42992c4c2c20.pem,进一步诊断可在https://www.ssllabs.com/ssltest/analyze.html?d=sedecatastro.gob.es