From 9eb51b632fe250d98a18f6452fad3c2f24e9643b Mon Sep 17 00:00:00 2001 From: mcbride <> Date: Tue, 28 Nov 2006 23:44:35 +0000 Subject: [PATCH] Move isakmpd's auto-generated public key, local.pub, into /etc/isakmpd This makes it readable by unprivileged uses, simplifying configuration, and there is no reason for it to be secret. ok msf deraadt hshoexer --- src/etc/rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/rc b/src/etc/rc index 7893094d..c607adc0 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.294 2006/11/16 13:07:11 henning Exp $ +# $OpenBSD: rc,v 1.295 2006/11/28 23:44:35 mcbride Exp $ # System startup script run by init on autoboot # or after single-user. @@ -545,7 +545,7 @@ if [ ! -f /etc/isakmpd/private/local.key ]; then if /usr/sbin/openssl genrsa -out /etc/isakmpd/private/local.key 1024 \ > /dev/null 2>&1; then chmod 600 /etc/isakmpd/private/local.key - openssl rsa -out /etc/isakmpd/private/local.pub \ + openssl rsa -out /etc/isakmpd/local.pub \ -in /etc/isakmpd/private/local.key -pubout > /dev/null 2>&1 echo done. else