Unable to "install" letsencrypt certificate

Hey guys,

The problem I face is that I can’t get my letsencrypt SSL certificate to update. I just did a renewal of the certificate with certbot (certbot renew), and now it says that it is still valid for 89 days.

However, I when I enter the domain name of my server into “ssllabs.com”, it still says that my certificate has expired. Is there some way of telling nextcloud that the certificate actually has been updated, because it does not seem to recognize it. Hope someone can help me out here.

Clearing browser cache…?

ssllabs.com says this when I scan my server:


So the problem is not with my browser cache.

Certbot says the following:
2

Check that configuration pointing to valid Certificate. E.g. if you are using Apache2:

Check that Certificates are linked correctly:

ls -la /etc/letsencrypt/live/cloudleon.ddns.net/

Also check this out for good secure config.

Try to restart webserver :slight_smile:

sudo service apache2 restart
1 Like

That worked!!
Thank you very much!

1 Like

I have this in my cron daily to clean the Apache2 cache:

cat /etc/cron.daily/apache2
#!/bin/sh

# run htcacheclean if set to 'cron' mode

set -e
set -u

type htcacheclean > /dev/null 2>&1 || exit 0
[ -e /etc/default/apache-htcacheclean ] || exit 0


# edit /etc/default/apache-htcacheclean to change this
HTCACHECLEAN_MODE=daemon
HTCACHECLEAN_RUN=auto
HTCACHECLEAN_SIZE=300M
HTCACHECLEAN_PATH=/var/cache/apache2/mod_cache_disk
HTCACHECLEAN_OPTIONS=""

. /etc/default/apache-htcacheclean

[ "$HTCACHECLEAN_MODE" = "cron" ] || exit 0

htcacheclean ${HTCACHECLEAN_OPTIONS}	\
		-p${HTCACHECLEAN_PATH}	\
		-l${HTCACHECLEAN_SIZE}

and

cat /etc/default/apache-htcacheclean
# This file must only contain KEY=VALUE lines. Do not use advanced
# shell script constructs!

## run mode: cron, daemon
## run in daemon mode or as daily cron job
## default: daemon
HTCACHECLEAN_MODE=daemon

## cache size
HTCACHECLEAN_SIZE=300M

## interval: if in daemon mode, clean cache every x minutes
HTCACHECLEAN_DAEMON_INTERVAL=120

## path to cache
## must be the same as in CacheRoot directive
#HTCACHECLEAN_PATH=/var/cache/apache2/mod_cache_disk

## additional options:
## -n : be nice
## -t : remove empty directories
HTCACHECLEAN_OPTIONS="-n"