copy out the key with the self signed CA cert

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19786 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-01-09 11:45:54 +00:00
parent e2a0b8d623
commit 6b967f571f

View File

@@ -1368,6 +1368,10 @@ hxtool_ca(struct certificate_sign_options *opt, int argc, char **argv)
ret = _hx509_private_key2SPKI(context, private_key, &spki);
if (ret)
errx(1, "_hx509_private_key2SPKI: %d\n", ret);
if (opt->self_signed_flag)
cert_key = private_key;
}
if (opt->req_string) {