From 04491ac5aca2176adcbfc773906050e78cc8f8ee Mon Sep 17 00:00:00 2001 From: Krouty Date: Sat, 13 Feb 2021 17:13:00 +0100 Subject: [PATCH] This is supposed to make self signed certs work with the calendar module Many people use Own-/Nextcloud together witht he https protocol. This is supposed to make self-signed certificates work with the calendar module and fix the issue #466. --- modules/default/calendar/calendarfetcher.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/default/calendar/calendarfetcher.js b/modules/default/calendar/calendarfetcher.js index 6c268c46..d4aa7b02 100644 --- a/modules/default/calendar/calendarfetcher.js +++ b/modules/default/calendar/calendarfetcher.js @@ -50,6 +50,13 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn }, gzip: true }; + + if (selfSignedCert) { + var agentOptions = { + rejectUnauthorized: false + }; + opts.agentOptions = agentOptions; + } if (auth) { if (auth.method === "bearer") {