Comments (7)
Adding NODE_TLS_REJECT_UNAUTHORIZED=0
as environment variable deactivates the certificate validation.
Howewer this is strongly discouraged (reference)!
from manage-my-damn-life-nextjs.
Hey, are you having trouble with Self signed certificates on your CalDAV servers, or on the server which hosts MMDL?
from manage-my-damn-life-nextjs.
Hey, sorry for not beeing precise enough. When trying to connect a new caldav account through the webinterface it gives an error. When looking at the command line you can see, that its an error because of the self signed certificate of my caldav server. I can post the error message later in the day if you want.
from manage-my-damn-life-nextjs.
Will investigate this, and definitely fix this in the next release.
from manage-my-damn-life-nextjs.
Hey,
just wanted to give you a bit more information on what's the actual error. Maybe it'll help:
=====================
Executing (default): SELECT `users_id`, `username`, `email`, `password`, `created`, `level`, `userhash`, `mobile`, `id`, `expires`, `session_token`, `name`, `email_verified`, `image` FROM `users` AS `users` WHERE `users`.`userhash` = 'b6dfceffee9032f0de79c2a49f5d30fb453529f379ff6e455b087c996688505cf7539412110ed04c9ef3f9bbb12c75796c96288195fea292c09af681151c8fbe' LIMIT 1;
=====================
FetchError: request to https://mminl.de:5232/ failed, reason: self-signed certificate
at ClientRequest.<anonymous> (/home/mrmine/.programs/manage-my-damn-life-nextjs/node_modules/node-fetch/lib/index.js:1501:11)
at ClientRequest.emit (node:events:519:28)
at TLSSocket.socketErrorListener (node:_http_client:495:9)
at TLSSocket.emit (node:events:519:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'DEPTH_ZERO_SELF_SIGNED_CERT',
code: 'DEPTH_ZERO_SELF_SIGNED_CERT'
}
api/caldav/register client:
=====================
from manage-my-damn-life-nextjs.
As @CRGer mentioned, NODE_TLS_REJECT_UNAUTHORIZED=0
is an option, but it is insecure and not recommended at all. You may try to use it on your local/dev environment, if both MMDL and your caldav servers are on your local machine.
If you own the CalDAV server, the best option is just to get a free SSL certificate from Let's encrypt. It's easy and has integration with most server proxies like Apache, Nginx, and others..
The rejection of the certificate happens in fetch calls of tsdav, a library which is used to read and write data to the CalDAV server. I am looking into it and see if there's a way to add rejectUnauthorized: false,
option to fetch calls of tsdav.
from manage-my-damn-life-nextjs.
Hey, thanks for the help! I got it working with both the environment variable and now got the ssl certificate working too. I think an option to still accept the certificate would still be nice, so I hope you'll succeed on that.
from manage-my-damn-life-nextjs.
Related Issues (15)
- not populating tasks from Radicale server calendars HOT 2
- Docker image HOT 11
- Incorrect field input placeholder value in add caldav account page HOT 1
- Possible enhancements HOT 3
- Choose default view from Home / Task / Calendar.
- Choose default calendar view from day / week / month.
- Add TZ variable, if required.
- Being able to type start / end hour and not clicking the arrows.
- Error when adding Vikunja as CalDav source HOT 2
- Hit "enter" to login.
- Possibility to show / hide specific calendars in a caldav on the go. HOT 1
- Possible issue with docker installation HOT 16
- Not really and issue HOT 4
- client does not support authentication protocol requested by server, consider upgrading mysql client HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manage-my-damn-life-nextjs.