From 6b967f571fc4905383efcab308b717b7ac7e34c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 9 Jan 2007 11:45:54 +0000 Subject: [PATCH] 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 --- lib/hx509/hxtool.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/hx509/hxtool.c b/lib/hx509/hxtool.c index 9d010aab8..f6efe6717 100644 --- a/lib/hx509/hxtool.c +++ b/lib/hx509/hxtool.c @@ -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) {