'Dump X509 certificate.'

def _dump_ssl_info(self, cert, cert_der, cipher):

    res = '\n==    Certificate    information    ==\n'
    res += pformat(cert)
    res += ('\n\n==    Used    cipher    ==\n' + pformat(cipher))
    res += ('\n\n==    Certificate    dump    ==\n' + ssl.DER_cert_to_PEM_cert(cert_der))
    res = res.replace('\n', '\n                ')
    res = ('                ' + res)
    return res
