

def getpeercert(self, binary_form=False):
    x509 = self.connection.get_peer_certificate()
    if (not x509):
        return x509
    if binary_form:
        return OpenSSL.crypto.dump_certificate(OpenSSL.crypto.FILETYPE_ASN1, x509)
    return {
        'subject': ((('commonName', x509.get_subject().CN),),),
        'subjectAltName': [('DNS', value) for value in get_subj_alt_name(value)],
    }

dataset/ETHPy150Open Bolton-and-Menk-GIS/restapi/restapi/requests/packages/urllib3/contrib/pyopenssl.py WrappedSocket.getpeercert/VarMisuse@95/136 `x509`->`value`