Skip to content
Back

SSL Function Custom Domain Challenge Failed

  • 0
  • 3
  • Self Hosted
  • Functions
DPC2709
5 Sep, 2024, 14:14

Hi all. I was trying to deploy my functions in a custom domain, functions.mydomain.com, but it failed when Appwrite was generating an SSL certificate. My app write-worker-certificates is attached. Also, I'm using Nginx Proxy Manager to redirect the request from cloud.mydomain.com to my SERVERIP:5050 when I have installed Appwrite.

TL;DR
The user is having trouble with a SSL challenge for a wildcard domain. They are using Cloudflare as a DNS manager. The solution involves setting up DNS records correctly and ensuring the domain is pointed at the correct server. Additionally, they need to review NPM settings, check Proxy Host or Redirection Host, and ensure they are pointing to the correct IP.
5 Sep, 2024, 15:30

I expect NPM will be intercepting the authentication request (I don’t really know NPM, but I know other reverse proxies do that). If NPM is in front of your Appwrite server, you should have NPM handle the SSL

5 Sep, 2024, 16:11

How can I handle it? Also, I create my CNAME successfully. Do you have a guide to follow or something?

5 Sep, 2024, 16:40

As far as I can tell, all you need to do is go to the SSL Certificates tab and click “Add SSL Certificate”, then fill in the form

5 Sep, 2024, 16:43

I tried, but I don't know where to add the domain because functions.mydomain.com is a wildcard domain

5 Sep, 2024, 16:47

Ah, if you want to use a wildcard domain you’ll have to do a DNS challenge

5 Sep, 2024, 16:47

How easy that’s going to be will depend on your DNS hosting provider

5 Sep, 2024, 16:47

Some will integrate directly with NPM

5 Sep, 2024, 16:48

Others you’ll have to manually create new DNS records every three months

5 Sep, 2024, 16:48

Exactly. But the DNS challenge is failing

5 Sep, 2024, 16:48

I'm using Cloudflare as a DNS manager

5 Sep, 2024, 16:48

Ah, then that should be pretty simple

5 Sep, 2024, 16:50

So, first, I should review the DNS CNAME for my domain.
I create two rules. One for *.functions….and the other for functions….

5 Sep, 2024, 16:51

Well, you don’t actually need functions.. But yeah, make sure you have *.functions. pointed at your server

5 Sep, 2024, 16:52

I'm pointing to cloud….com, it is my domain for Appwrite

5 Sep, 2024, 16:53

Ok, whatever your server is

5 Sep, 2024, 17:23

Done. I have my certificates for the domain with the challenge, but now when I tried to enter to https://66d9122d848a24ba3092.functions.mydomain.com/ I got ERR_SSL_VERSION_OR_CIPHER_MISMATCH. Also, I don't know if in NPM I have to add my domain in Proxy Host or Redirection Host, and point to my IP:APPWRITE_PORT

17 Jan, 2026, 16:38

how to got fixed i have same issue

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