cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

CalDav - FetchError: request failed, reason: self-signed certificate - NextCloud

Open Hielyr opened this issue 2 years ago • 1 comments

Issue Summary

When attempting to connect cal.com to my NextCloud CalDav Calendar, I am greeted with a "Could not add this caldav account" error message and am unable to connect my CalDav account.

Steps to Reproduce

Setup cal.com via Docker and attempt to connect to a NextCloud instance sitting behind a reverse proxy / Cloudflare Argo Tunnel.

Technical details

  • New install of Cal.com using Docker.
  • Running behind NGINX Proxy Manager reverse proxy.
  • NextCloud CalDav
  • Using Cloudflare Argo Tunnels and Cloudflare's Edge Certificate for the SSL cert on NGINX Proxy Manager. This edge certificate works with at least a dozen other services / self-hosted applications. More specifically, I am able to add this CalDav to iOS devices as well as DAVx5 on Android devices. I'm not sure if this is a Cloudflare thing, or if Cal.com is somehow seeing my NextCloud instance's local cert.

Screenshots:

image

image

Logged output of the error:

@calcom/web:start: FetchError: request to https://sky.jotunhe.im/remote.php/dav failed, reason: self-signed certificate
@calcom/web:start:     at ClientRequest.<anonymous> (/calcom/node_modules/next/dist/compiled/node-fetch/index.js:1:65756)
@calcom/web:start:     at ClientRequest.emit (node:events:513:28)
@calcom/web:start:     at TLSSocket.socketErrorListener (node:_http_client:502:9)
@calcom/web:start:     at TLSSocket.emit (node:events:513:28)
@calcom/web:start:     at emitErrorNT (node:internal/streams/destroy:151:8)
@calcom/web:start:     at emitErrorCloseNT (node:internal/streams/destroy:116:3)
@calcom/web:start:     at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
@calcom/web:start:   type: 'system',
@calcom/web:start:   errno: 'DEPTH_ZERO_SELF_SIGNED_CERT',
@calcom/web:start:   code: 'DEPTH_ZERO_SELF_SIGNED_CERT'
@calcom/web:start: }

Hielyr avatar May 03 '23 02:05 Hielyr

@PeerRich I would like to work on this issue

vedant-jain03 avatar May 07 '23 09:05 vedant-jain03

go for it @vedant-jain03

PeerRich avatar May 14 '23 21:05 PeerRich