diff --git a/certidude/builder/common.sh b/certidude/builder/common.sh index e2f5068..f07e43d 100644 --- a/certidude/builder/common.sh +++ b/certidude/builder/common.sh @@ -81,7 +81,7 @@ config setup ca $AUTHORITY auto=add cacert=/etc/certidude/authority/$AUTHORITY/ca_cert.pem - ocspuri = http://$AUTHORITY/api/ocsp/ + # OCSP and CRL URL-s embedded in certificates conn %default keyingtries=%forever @@ -94,7 +94,7 @@ conn %default leftca="$AUTHORITY_CERTIFICATE_DISTINGUISHED_NAME" rightca="$AUTHORITY_CERTIFICATE_DISTINGUISHED_NAME" -conn client-to-site +conn c2s auto=start right="$ROUTER" rightsubnet="$SUBNETS" @@ -103,7 +103,4 @@ conn client-to-site EOF -cat << EOF > $OVERLAY/etc/uci-defaults/99-uhttpd-disable-https -uci delete uhttpd.main.listen_https -uci delete uhttpd.main.redirect_https -EOF +# Note that auto=route is not supported at the moment with libipsec diff --git a/certidude/builder/overlay/etc/uci-defaults/40-hostname b/certidude/builder/overlay/etc/uci-defaults/40-hostname old mode 100644 new mode 100755 diff --git a/certidude/builder/overlay/etc/uci-defaults/60-cron b/certidude/builder/overlay/etc/uci-defaults/60-cron old mode 100644 new mode 100755 index 43ed67c..58dfa14 --- a/certidude/builder/overlay/etc/uci-defaults/60-cron +++ b/certidude/builder/overlay/etc/uci-defaults/60-cron @@ -1,5 +1,7 @@ #!/bin/sh +/etc/init.d/ipsec enable + # Randomize restart time OFFSET=$(awk -v min=1 -v max=59 'BEGIN{srand(); print int(min+rand()*(max-min+1))}') @@ -14,3 +16,4 @@ chmod 0600 /etc/crontabs/root /etc/init.d/cron enable +exit 0 diff --git a/certidude/builder/overlay/etc/uci-defaults/90-certidude-sysupgrade b/certidude/builder/overlay/etc/uci-defaults/90-certidude-sysupgrade old mode 100644 new mode 100755 diff --git a/certidude/builder/overlay/etc/uci-defaults/99-uhttpd-disable-https b/certidude/builder/overlay/etc/uci-defaults/99-uhttpd-disable-https new file mode 100755 index 0000000..78f4dce --- /dev/null +++ b/certidude/builder/overlay/etc/uci-defaults/99-uhttpd-disable-https @@ -0,0 +1,3 @@ +uci delete uhttpd.main.listen_https +uci delete uhttpd.main.redirect_https +exit 0 diff --git a/certidude/builder/overlay/usr/bin/certidude-enroll b/certidude/builder/overlay/usr/bin/certidude-enroll index ea1b620..68c8004 100755 --- a/certidude/builder/overlay/usr/bin/certidude-enroll +++ b/certidude/builder/overlay/usr/bin/certidude-enroll @@ -126,5 +126,4 @@ mv $CERTIFICATE_PATH.part $CERTIFICATE_PATH # Start services logger -t certidude -s "Starting IPSec IKEv2 daemon..." -/etc/init.d/ipsec enable /etc/init.d/ipsec restart diff --git a/certidude/static/index.html b/certidude/static/index.html index 3f8a85e..31d12f8 100644 --- a/certidude/static/index.html +++ b/certidude/static/index.html @@ -26,9 +26,9 @@ Log -