can't do --self-signed and --request at the same time.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23345 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-07-14 13:43:50 +00:00
parent 8327309499
commit f1157b67d7

View File

@@ -1683,6 +1683,9 @@ hxtool_ca(struct certificate_sign_options *opt, int argc, char **argv)
if (opt->generate_key_string == NULL
&& opt->ca_private_key_string == NULL)
errx(1, "no signing private key");
if (opt->req_string)
errx(1, "can't be self-signing and have a request at the same time");
} else
errx(1, "missing ca key");