catch PyAsn1Error for encoding signature as well
2 files changed