Back

[SOLVED] Function custom domains never get the ssl certificate issued

  • 0
  • Self Hosted
  • Functions
gaurav_ch
29 Dec, 2023, 07:16

I am on v1.4.13 self host. The appwrite server is installed on https//backend.atomtalkpvtltd.com and auto generated function domain is https://658e6c1bbb67ee011c8a.backend.atomtalkpvtltd.com/. I want to use https://verify.atomtalkpvtltd.com/ and the CNAME points to https://backend.atomtalkpvtltd.com/ but the ssl is not generated for verify domain. On tapping retry link, I get the following message:

TypeScript

Generation failed

In order to continue, set the following record on your DNS provider. DNS records may take up to 48 hours to propagate. Please retry over the next 48 hours, but if verification still fails, please contact support.

Failed to rename certificate cert.pem. Let's Encrypt log: Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Performing the following challenges:
http-01 challenge for verify.atomtalkpvtltd.com
Using the webroot path /storage/certificates for all unmatched domains.
Waiting for verification...
Cleaning up challenges
 ; Simulating a certificate request for verify.atomtalkpvtltd.com
The dry run was successful.

I can access the function without using https though.

Any help is appreciated.

TL;DR
The user is experiencing an issue with SSL certificate generation for custom domains in their appwrite server. They are on version 1.4.13 and trying to use the domain https://verify.atomtalkpvtltd.com/. The CNAME points to https://backend.atomtalkpvtltd.com/, but the SSL certificate is not generated for the verify domain. They receive an error message when trying to retry the certificate generation. They can access the function without using HTTPS. No solution is provided in the thread.
ideclon
29 Dec, 2023, 07:22

Is your _APP_ENV envvar set to production?

gaurav_ch
29 Dec, 2023, 07:53

no, it is set to development.

gaurav_ch
29 Dec, 2023, 08:00

Ah man, I set it to production and the ssl was generated.

gaurav_ch
29 Dec, 2023, 08:00

[SOLVED] Function custom domains never get the ssl certificate issued

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