Skip to content

SimpleSigner.load_pkcs12() passphrase utf-8 character error #434

Answered by MatthiasValvekens
akicsike asked this question in Q&A
Discussion options

You must be logged in to vote

This almost certainly means the PKCS#12 MAC did not validate and/or your payload decrypted to bogus data, i.e. the password is wrong, or you chose the wrong encoding. PKCS#12 passwords are binary data, not strings. So especially with non-ASCII passwords you have to be very careful to pick the same encoding as the one that was used to create the PKCS#12 file.

You seem to be on Windows, which is not exactly known for its sane defaults when it comes to encodings... Assuming you generated the file yourself: the "correct" encoding is probably not UTF-8, but some old 8-bit codepage from the 80s or 90s that Microsoft doesn't dare to change because they don't want to break compatibility for peopl…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@akicsike
Comment options

Answer selected by MatthiasValvekens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #432 on May 21, 2024 22:26.