Issue with sign systa for Mac

I tried to sign systa with:

codesign -s "Developer ID Application: Developer ID" /path to/systa

and

codesign -s "Developer ID Application: Developer ID" --force --deep   /path to/systa

but I am getting error:  internal error in Code Signing subsystem

So what I should do with this, how I should sign this?