I have an issue when signing JS files.
Windows is failing to verify the signature with "This digital signature is not valid".
The same certificate and the signing process works well with PS1 scripts and with DLL/EXE binaries.
The digest algorithm is sha256.
