command = (
    """phantomjs --ignore-ssl-errors=true --ssl-client-certificate-file=C:	mp\\clientcert.cer --ssl-client-key-file=C:	mp\\clientcert.key --ssl-client-key-passphrase=1111 /path/to/phantomjs/script.js"""
    )
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE)
try:
    output, errors = process.communicate(timeout=30)
except Exception as e:
    print('\t\tException: %s' % e)
process.kill()
phantom_output = ''
for out_line in output.splitlines():
    phantom_output += out_line.decode('utf-8')
Как установить SSL-сертификат в Python phantomjs?