Letsencrypt SSL certificate not working properly

Nextcloud version (eg, 20.0.5): 22.2.3
Operating system and version (eg, Ubuntu 20.04): Debian 5.10.70.
Apache or nginx version (eg, Apache 2.4.25): nginx/1.18.0
PHP version (eg, 7.4): 7.4

The issue you are facing:
I’ve just installed Nextcloud following this tutorial: nextcloud and certificate with certbot. I installed the calendar, tasks and News. I then tried to connect nextcloud to the calendar, reminder and rss apps and applications on my various devices. Calendar on my IPhone works perfectly but thats the only thing thats really working as the following things aren’t working:

  • Sync of Reminders
  • Calendar on Linux Calcurse
  • RSS with Newsboat
  • RSS with NextNews on IPhone

I suspect that the ssl certificate is the problem.

Firefox on my IPhone also says that my certificate is expired.
I’ve read that using a self signed certificate can lead to those errors but I am using a lets encrypt certificate deployed by certbot.

Is this the first time you’ve seen this error? (Y/N): Yea

Steps to replicate it:

  1. Install Nexcloud following the landchad tutorial and using cerbot to create certificate
  2. Install News or Tasks
  3. Sync with IPhone Reminders, Calcurse or Newsboat

config.php

<?php
$CONFIG = array (
  'instanceid' => 'ocyik27mnf07',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => 'nextcloud.example.com',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '22.2.3.0',
  'overwrite.cli.url' => 'https://nextcloud.example.com/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'updater.secret' => '',
  'updater.release.channel' => 'stable',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

Check-out the Let’s encrypt certificate chain to make sure that you’re using the correct root and intermediate certificate. In September one of their certificates has been expired as described here:

https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/

the command “sudo update-ca-certificates” from command line will help in many cases.

Thanks to @j-ed answer I was able to resolve the problem:

I just reinstalled the certbot certificate because my certificates root was the one which expired.

1 Like