ssl.get_info using returncertificate and returntype.