From owner-freebsd-ports@freebsd.org Tue Nov 8 13:39:33 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D88DC365F0 for ; Tue, 8 Nov 2016 13:39:33 +0000 (UTC) (envelope-from kremels@kreme.com) Received: from mail.covisp.net (mail.covisp.net [65.121.55.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1A56328B for ; Tue, 8 Nov 2016 13:39:32 +0000 (UTC) (envelope-from kremels@kreme.com) Received: from mail.covisp.net (localhost [127.0.0.1]) by mail.covisp.net (Postfix) with ESMTP id 3tCr5B1yvdzvpJ7; Tue, 8 Nov 2016 06:39:26 -0700 (MST) X-Virus-Scanned: amavisd-new at covisp.net Received: from mail.covisp.net ([127.0.0.1]) by mail.covisp.net (mail.covisp.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6Tk_CVIiQHeo; Tue, 8 Nov 2016 06:39:24 -0700 (MST) From: "@lbutlr" Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Reply-To: freebsd-ports@freebsd.org Subject: Dehydrated setup Message-Id: <4B08621B-BA0C-4C3F-A017-353D8903A1E0@kreme.com> Date: Tue, 8 Nov 2016 06:39:24 -0700 To: freebsd-ports@freebsd.org X-Mailer: Apple Mail (2.3253) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2016 13:39:33 -0000 I=E2=80=99m having issues getting dehydrated to work after installing = it, and there seems to be no documentation installed with it that I can = find. The package is installed, but I am unable to get the web side of things = working and have found conflicting information. I tried creating a directory in my webroot named .well-known with = permissions of 770 and owned by www:_dehydrated. I then linked it to = /usr/local/etc/dehydrated Now, if I run # su -m _dehydrated -c 'bash /usr/local/bin/dehydrated =E2=80=94cron' I get: ERROR: Challenge is invalid! (returned: invalid) (result: { "type": "http-01", "status": "invalid", "error": { "type": "urn:acme:error:unauthorized", "detail": "Invalid response from = http://covisp.net/.well-known/acme-challenge/=E2=80=A6. So I create the acme-challenge directory with the same permissions. Same error. # ls -lsRa /www/.well-known/ total 24 8 drwxrwxrwx 3 www _dehydrated 512 Nov 8 05:40 . 8 drwxr-xr-x 30 root wheel 1024 Nov 8 05:32 .. 8 drwxrwx--- 2 www _dehydrated 512 Nov 8 05:37 acme-challenge 0 -rw-r--r-- 1 root _dehydrated 0 Nov 8 05:11 index.html /www/.well-known/acme-challenge: total 16 8 drwxrwx--- 2 www _dehydrated 512 Nov 8 05:37 . 8 drwxrwxrwx 3 www _dehydrated 512 Nov 8 05:40 .. 0 -rw-r--r-- 1 root _dehydrated 0 Nov 8 05:26 index.html I can load http://covisp.net/.well-known and = http://covisp.net/.well-known/acme-challenge/ (they show a blank page = because I put a blank index.html file there). I even tried setting both directories to 777 permissions, but to no = avail. the http error log just shows the file that is trying to be accessed is = not there: [client 66.133.109.36:50250] AH00128: File does not exist: = /usr/local/www/.well-known/acme-challenge/bXxlfu=E2=80=A6=20 Certs are being created in /usr/local/etc/dehydrated/certs each time I = try to run the script. _______________________________________________ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"=