summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormcbride <mcbride@openbsd.org>2006-11-28 23:44:35 +0000
committermcbride <mcbride@openbsd.org>2006-11-28 23:44:35 +0000
commit80b79673aba3741a54eaf300640a26be9f366ef4 (patch)
treee5ac55aea9fcc3c4de09b3cb612929b1cbed4eb6
parentidentify the chipset. (diff)
downloadwireguard-openbsd-80b79673aba3741a54eaf300640a26be9f366ef4.tar.xz
wireguard-openbsd-80b79673aba3741a54eaf300640a26be9f366ef4.zip
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
-rw-r--r--etc/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index 7893094d591..c607adc08a1 100644
--- a/etc/rc
+++ b/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