Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Dec 2018 01:54:08 +1100
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        Matthew Seaman <matthew@FreeBSD.org>, Paul Macdonald <paul@ifdnrg.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: certbot lost certificates , and registration data
Message-ID:  <22ee5a0e-3093-15a2-4943-8e94ea449d1c@FreeBSD.org>
In-Reply-To: <830576a4-78b8-6d74-8a40-19bf09ee6bdd@FreeBSD.org>
References:  <4290f82e-ce3a-0ce3-aab7-df21a9c636e6@ifdnrg.com> <fb8d0574-dcae-a7f9-d417-5b3af57a5284@ifdnrg.com> <830576a4-78b8-6d74-8a40-19bf09ee6bdd@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/12/2018 1:43 am, Matthew Seaman wrote:
> On 10/12/2018 14:10, Paul Macdonald via freebsd-ports wrote:
>>
>> On 10/12/2018 13:15, Paul Macdonald via freebsd-questions wrote:
>>>
>>> Is anyone else seeing py-certbot having lost all installed certs, and 
>>> the initial registation data?
>>>
>>> There was an update on the 7th
>>>
>>> Upgrade of py27-certbot-0.28.0_1,1 to py27-certbot-0.29.1_1,1
>>>
>>> and on 3 boxes tested so far, which all had certs, i now see no certs 
>>> listed and a request to redo the initial registation on attempts to 
>>> install a new cert.
>>>
>>> i don't see any issues upstream here: 
>>> https://github.com/letsencrypt/boulder/issues/ so not sure if this is 
>>> FBSD thing or not.
>>>
>>> Paul.
>>
>>
>> passing --config-dir /usr/local/etc/letsencrypt shows expected output, 
>> i suspect something has happend with that flag on the upgrade ( i see 
>> /etc/letsencrypt directories on affected servers)
>>
>>
>>>
>>>
> 
> This upstream commit:
> 
> https://github.com/certbot/certbot/commit/a23d76beb0e2c9539670766045314a5d50f582a2#diff-64ccdc74e8a07f9b039a6254093f1d0d 
> 
> 
> breaks the post-patch target in the security/certbot port Makefile:
> 
> post-patch:
>          @${REINPLACE_CMD} \
>                  -e 's|/etc/|${LOCALBASE}/etc/|' \
>                  -e 's|/var/lib|/var/db|' \
>                  ${WRKSRC}/${PORTNAME}/constants.py
> 
> Looks like the REINPLACE_CMD should be applied to 
> ${WRKSRC}/${PORTNAME}/compat.py now.
> 
> Or compat.py should be patched to grok FREEBSD_DEFAULT_FOLDERS
> 
>      Cheers,
> 
>      Matthew
> 

Nice find Matthew.

Prefer the latter (and sent upstream). Can one of you create a bugzilla 
issue for this and cc me please.

If you'd like to give a representative/attempted patch a go, please do.

./koobs



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?22ee5a0e-3093-15a2-4943-8e94ea449d1c>