Back

[Solved] Invalid SSL Certificate

  • 0
  • Self Hosted
  • Functions
fafa
17 Nov, 2023, 23:25

Thanks! Will try :)

TL;DR
User had an issue with an invalid SSL certificate. Another user suggested using Cloudflare's advanced TLS and provided the necessary steps to set it up. The user tried the solution and confirmed that it worked. They also discussed using different subdomains for the console and functions. There was a suggestion to use a CNAME record, but it was clarified that an A-record was needed. It was mentioned that Appwrite doesn't allow mixing cookies from the function and the console. The user tried setting `_APP_DOMAIN_FUNCTIONS` as a subdomain but still encountered issues. They thanked the helpful user and mentioned they would try their suggestion.
fafa
17 Nov, 2023, 23:35

I'm still getting this issue, where all 3 env's are on example.com

Drake
18 Nov, 2023, 02:55

would you please try making _APP_DOMAIN_FUNCTIONS some subdomain like functions.example.com?

fafa
18 Nov, 2023, 03:04

This will make the functions link change to https://6558296e844b0a70c549.functions.example.com

fafa
18 Nov, 2023, 03:05

which is pretty far apart, i'd rather have example.com be the dashboard and xxx.example.com for everything else

Drake
18 Nov, 2023, 03:12

We don't allow it because it mixes cookies from the function and the Appwrite console

fafa
18 Nov, 2023, 03:15

I'll need this as an A-Record then, yes?

Drake
18 Nov, 2023, 03:16

No, CNAME

fafa
18 Nov, 2023, 03:19

ah, alright

fafa
18 Nov, 2023, 03:41

would for example dash.example.com on

TypeScript
_APP_DOMAIN
_APP_DOMAIN_TARGET

work, and for functions just example.com?

Because that's how I got it at the moment and that seems to work!

fafa
18 Nov, 2023, 03:41

because CF doesn't like multi level subdomains that much: https://developers.cloudflare.com/ssl/troubleshooting/version-cipher-mismatch/

Drake
18 Nov, 2023, 03:52

No

Drake
18 Nov, 2023, 03:53

Aren't you going to be using a custom function domain?

fafa
18 Nov, 2023, 03:56

I could, seems a little overkill just for functions, lol

fafa
18 Nov, 2023, 03:56

So you want me to use example.net as the console and example.com as the functions, yeah?

Drake
18 Nov, 2023, 03:57

It depends on if you were already planning on doing that

Drake
18 Nov, 2023, 03:58

That would be fine on the Appwrite side

fafa
18 Nov, 2023, 03:58

alright, i'll try that

fafa
18 Nov, 2023, 04:26

Well I got myself an advanced tls from CF, using *.functions.example.com as my functions domain and dash.example.com as my console, works as a charm :)

fafa
18 Nov, 2023, 04:27

Thanks for the help!

fafa
18 Nov, 2023, 04:27

[Solved] Invalid SSL Certificate

Drake
18 Nov, 2023, 04:27

Is that something you have to pay for?

fafa
18 Nov, 2023, 04:31

Yeah, $10, but mainly because the universal certificate only applies to *.domain.com and domain.com

fafa
18 Nov, 2023, 04:32

but it's fine because it's super useful, can add up to 50 hostnames for additional certificates to support c:

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