OPNsense Forum

English Forums => General Discussion => Topic started by: joshgreyz on May 23, 2025, 07:52:16 PM

Title: [solved] OPNsense config backup to Nextcloud does not like self-signed SSL cert
Post by: joshgreyz on May 23, 2025, 07:52:16 PM
Version running: OPNsense 25.1.7_4-amd64

I have searched around the web and around this forum, but I am still unable to find a solution.

I previously had this working with a Nextcloud server that just used http on port 80 and it worked well. Unfortunately, that Nexcloud crashed so I had to setup a new one and used a self-signed SSL cert for more protection on my local network. This Nextcloud server is internal, so it does not have a FQDN and therefore is not able to use Let's Encrypt for SSL certs.

I know "You have to create an app password and use that instead of the password of your username" as this thread also indicates https://forum.opnsense.org/index.php?msg=149140

I came across this old Issue on Github for "nextcloud-backup: option to accept self-signed certificates" (https://github.com/opnsense/plugins/issues/3405), but it was closed by the OPNsense-bot many years ago.

What am I missing?
Title: Re: OPNsense config backup to Nextcloud does not like self-signed SSL cert
Post by: Patrick M. Hausen on May 23, 2025, 08:26:19 PM
You could try to create a CA either manually with OpenSSL or directly on OPNsense, then create a cert for your Nextcloud with that CA. If the CA is on OPNsense, anyway, that should do it. If you run it externally, then import the CA cert to OPNsense.

Never done that, but in theory that is how it is supposed to work.
Title: Re: OPNsense config backup to Nextcloud does not like self-signed SSL cert
Post by: joshgreyz on May 23, 2025, 09:20:32 PM
Thank you very much! What you suggested worked and now everything appears to be functioning again. The help is much appreciated.