summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-02-17 15:34:57 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-02-17 15:34:57 +0000
commitddd9d151efbd96e37eaf8688431be2605b901f89 (patch)
tree933d6af14e4ae28081ff2194e6bbee2af436103b
parent6ef99f0b5832d2f3e57d78bc3a46a7a2877d96cd (diff)
Generate public keys for newly generated local private keys.
-rw-r--r--regress/sbin/iked/live/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/regress/sbin/iked/live/Makefile b/regress/sbin/iked/live/Makefile
index 10cf4690ba7..e96ddbb27ff 100644
--- a/regress/sbin/iked/live/Makefile
+++ b/regress/sbin/iked/live/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.7 2020/01/17 10:01:18 tobhe Exp $
+# $OpenBSD: Makefile,v 1.8 2020/02/17 15:34:56 tobhe Exp $
# Copyright (c) 2020 Tobias Heider <tobhe@openbsd.org>
#
@@ -140,7 +140,9 @@ setup_certs: ca-both.crt left-from-ca-both.crt left.key right-from-ca-both.crt \
put right-from-ca-left.crt certs\n \
put right.key private/local.key\n \
put ca-right.crt ca\n \
- put ca-both.crt ca\n" | sftp ${RIGHT_SSH} -q
+ put ca-both.crt ca\n" | sftp ${RIGHT_SSH} -q; \
+ ssh ${LEFT_SSH} "openssl rsa -in /etc/iked/private/local.key -pubout > /etc/iked/local.pub"; \
+ ssh ${RIGHT_SSH} "openssl rsa -in /etc/iked/private/local.key -pubout > /etc/iked/local.pub"
.PHONY: setup_certs