After a bit of digging through the code, i found out that it happens, when the tool tries to find the publisher subject of the certificate file (Specifically the "_getCertificateSubjectByFile" method in sign_tool.dart).
Unfortunately, I don't know how to fix the encoding problem but I found out through the documentation that you can also provide the publisher as a value in the pubspec config. This however did not completely fix my problem yet, because even if you provide this value in the config, the tool still runs into the same exception because it still tries to find the value first before using the config value as a fallback.
My proposed change is supposed to prevent the tool from attempting to find the publisher value, when it is already provided in the config.
I encountered an Issue (same as #159) when trying to build a MSIX package with my certificate file.
After a bit of digging through the code, i found out that it happens, when the tool tries to find the publisher subject of the certificate file (Specifically the "_getCertificateSubjectByFile" method in sign_tool.dart).
Unfortunately, I don't know how to fix the encoding problem but I found out through the documentation that you can also provide the publisher as a value in the pubspec config. This however did not completely fix my problem yet, because even if you provide this value in the config, the tool still runs into the same exception because it still tries to find the value first before using the config value as a fallback.
My proposed change is supposed to prevent the tool from attempting to find the publisher value, when it is already provided in the config.