def raise_self_signed(certificate):

    message = 'Server certificate verification failed - certificate is self-signed'
    raise TLSVerificationError(message, certificate)
Raises a TLSVerificationError due to a self-signed certificate
dataset/ETHPy150Open wbond/oscrypto/oscrypto/_tls.py/raise_self_signed