Implement error handling for the "pki sign-csr" command

refs #7247