I have a problem with SSL Renewal
Certificate status in mailinabox admin is:
Signed & valid. The certificate expires in 13 days on 04/27/20
However, if I SSH into the box and run:
certbot renew
I get:
/etc/letsencrypt/live/box.xxxxxxxxx.xxx/fullchain.pem expires on 2020-06-01 (skipped)
I also tried to renew using the management/ssl_certificates.py tool and got the following:
error: box.xxxx.xxx and lots of other subdomains:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator manual, Installer None
Performing the following challenges:
dns-01 challenge for box.xxx.xxx
Cleaning up challenges
Encountered exception during recovery:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 75, in handle_authorizations
resp = self._solve_challenges(aauthzrs)
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 139, in _solve_challenges
resp = self.auth.perform(all_achalls)
File “/usr/lib/python3/dist-packages/certbot/plugins/manual.py”, line 155, in perform
self._verify_ip_logging_ok()
File “/usr/lib/python3/dist-packages/certbot/plugins/manual.py”, line 182, in _verify_ip_logging_ok
if display.yesno(msg, cli_flag=cli_flag, force_interactive=True):
File “/usr/lib/python3/dist-packages/certbot/display/util.py”, line 542, in yesno
self._interaction_fail(message, cli_flag)
File “/usr/lib/python3/dist-packages/certbot/display/util.py”, line 469, in _interaction_fail
raise errors.MissingCommandlineFlag(msg)
certbot.errors.MissingCommandlineFlag: Missing command line flag or config entry for this setting:
NOTE: The IP of this machine will be publicly logged as having requested this certificate. If you’re running certbot in manual mode on a machine that is not your server, please ensure you’re okay with that.
Are you OK with your IP being logged?
(You can set this with the --manual-public-ip-logging-ok flag)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/certbot/error_handler.py”, line 108, in _call_registered
self.funcs-1
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 323, in _cleanup_challenges
self.auth.cleanup(achalls)
File “/usr/lib/python3/dist-packages/certbot/plugins/manual.py”, line 242, in cleanup
env = self.env.pop(achall)
KeyError: KeyAuthorizationAnnotatedChallenge(challb=ChallengeBody(chall=DNS01(token=b’\x18\x9b\xa0.\x07\x08\xb0\x87k\x96O\x16\xbc\xa1\xfd>\xedT\x9b\xd2\xbb\xdd-S#\xed~@\xa0\xc1\xa6\x92’), uri=‘some acme address’, _url=‘https://acme-v02.api.letsencrypt.org/acme/chall-v3/3926075353/rGfcuA’, status=Status(pending), validated=None, error=None), domain=‘xxx.xxxxx.xxx’, account_key=JWKRSA(key=<ComparableRSAKey(<cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object at 0x7f5eb30a52e8>)>))
Missing command line flag or config entry for this setting:
NOTE: The IP of this machine will be publicly logged as having requested this certificate. If you’re running certbot in manual mode on a machine that is not your server, please ensure you’re okay with that.
Are you OK with your IP being logged?
(You can set this with the --manual-public-ip-logging-ok flag)