Back

[SOLVED] Sudden Error "ERR_CERT_DATE_INVALID"

  • 0
  • Self Hosted
  • Flutter
Kevins35
5 Dec, 2023, 21:52

Thank you for your assistance

TL;DR
There was an error "ERR_CERT_DATE_INVALID" and the issue was resolved. The solution involved adding a custom domain and using the endpoint from a subdomain. If accessing the server through a domain, there's no need to add a custom domain. When adding a custom domain, a CNAME record should be added.
Kevins35
5 Dec, 2023, 21:58

If you could assist me with another quick Question i would be really happy: When adding a custom domain it asks me to add a cname record but i dont think im able to add a cname record pointing to an ip 🤔 Is there something im missing or do i need to add an A record?

D5
5 Dec, 2023, 21:58

Just saw it now. Sorry for not being able to reply before

D5
5 Dec, 2023, 21:59

You mean if you add a domain to a project in your appwrite console?

Kevins35
5 Dec, 2023, 21:59

yes

D5
5 Dec, 2023, 22:00

You can use your instance domain. I think it should work the same way

D5
5 Dec, 2023, 22:00

As the CNAME record, I mean

Kevins35
5 Dec, 2023, 22:00

what do you mean by instance domain?

D5
5 Dec, 2023, 22:01

The domain you use to access your appwrite installation/console

D5
5 Dec, 2023, 22:01

You're accessing through a domain, true?

Kevins35
5 Dec, 2023, 22:03

yes. Im accessing it through a "custom" domain

Kevins35
5 Dec, 2023, 22:04

This is the digital Ocean dashboard where my domain lays. What should i enter into the alias?

D5
5 Dec, 2023, 22:05

Such custom main domain. For example, if it's appwrite.mydomain.com, such domain

Kevins35
5 Dec, 2023, 22:07

When i enter db.+++.de i get the error that a cname may not reference itself

D5
5 Dec, 2023, 22:09

If this is your domain, you don't need to add it because it has been added already

D5
5 Dec, 2023, 22:10

The feature is to add another domain.

For example: project1.mydomain.com

Kevins35
5 Dec, 2023, 22:10

ah i see... Thank you 🙂

Kevins35
5 Dec, 2023, 22:11

That means i dont need to add a custom domain when accesing the server throug said domain right?

D5
5 Dec, 2023, 22:14

That's it, unless you want to have a different domain for each specific project or if you have a completely different domain (not sub domain) for the project. For example, if the appwrite instance uses the domain:

  • cloud.appwrite.com And the app
  • app.appwrite.com

It's fine

However if it's

  • cloud.appwrite.com

But the app is

  • myapp.com

Then you should add the domain and use the endpoint from a subdomain:

  • backend.myapp.com
D5
5 Dec, 2023, 22:15

That's mainly to prevent third party cookies issues

Kevins35
5 Dec, 2023, 22:15

okay thanks. that cleared things up for me

Kevins35
5 Dec, 2023, 22:15

I wish you a good day or night depending on where you are xD

D5
5 Dec, 2023, 22:16

Night in my case. Same to you 😄

D5
5 Dec, 2023, 22:18
D5
5 Dec, 2023, 22:18

[SOLVED] Sudden Error "ERR_CERT_DATE_INVALID"

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more