digitalbazaar / forge

A native implementation of TLS in Javascript and tools to write crypto-based and network-heavy webapps
https://digitalbazaar.com/
Other
5.01k stars 767 forks source link

PKCS12 File Password with ISO-8859-9 Encoding #1073

Open yasemindeki opened 4 months ago

yasemindeki commented 4 months ago

Firstly thanks for your valuable node-forge module. I've created two p12 file which one has reqular password and other one has ISO-8859-9 (turkish) characters. I've run the code below with regular password (not including special/locale characters) and there is no error. But when I run with password that contains ISO-8859-9 characters, I've taken "invalid password" error.

forge.pkcs12.pkcs12FromAsn1(p12Asn1, 'Bcs'); // with reqular characters
forge.pkcs12.pkcs12FromAsn1(p12Asn1, 'Bçş'); // with turkish characters

Is there your support ISO-8859-9 encoding for the function pkcs12FromAsn1?

Best regards,