Check for archiving and sign errors in repo cmd.

Check return values of RSA_sign and archive_write functions
and deny creating repositories with either write errors or
signing errors.