def _fixsig(self, cert):
        subject = 'CN=' + subject_from_certificate(cert)

        if subject in FIXSIG:  # Set unused bits in signature to 0
            der = cert.public_bytes(Encoding.DER)
            der = der[:-257] + b'\x00' + der[-256:]
            cert = certificate_from_der(der)
        return cert
dataset/ETHPy150Open Yubico/python-u2flib-server/u2flib_server/u2f_v2.py/RawRegistrationResponse._fixsig/original