jscep: fixes #2: improve accuracy of debug logs and error messages