Menu

#3 Bytecode 0x97 in position 0 Exception

1.0
open
nobody
None
2016-01-19
2014-10-13
GSunnic
No

Exception: 'ascii' codec can't decode byte 0x97 in position 0: ordinal not in range(128)

I am getting this error while trying to read an RSA key from a PKCS11 HSM.

It has no problems reading ECC-based keys though.

Discussion

  • Ludovic Rousseau

    Can you provide a full Python backtrace?

    It looks like PyKCS11 tried to convert from byte to ASCII a value that is not possible in ASCII.

     
  • Ludovic Rousseau

    How do you get this error?
    Please provide a full error dump.

     

Log in to post a comment.