Your question assumes that you actually want to sign your commits. If you don't, the fix is very simple - switch off commit signing:
git config --global commit.gpgsign false
In my case I had inherited some default git config settings which included commit signing.