Hi @martin9,
This this Knowledge Article will help you with troubleshooting the issue:
I would advise you to insert trustServerCertificate: true
inside of the options for the connection.
If you have any other questions feel free to ask.
Have a good one,
Vlad