Back

Appwrite and SSL

  • 0
  • Self Hosted
  • Tools
toine
22 Oct, 2023, 13:06

I install appwrite 1.4.5 on my server and I had some troubles to generate SSL certificate. My domain is from Hostinger. So I found a solution, appwrite creates SSL cerificate... and I have to copy/paste my SSL private key and certificate to hostinger for my domain. But my question is when my certificate will expire and appwrite will generate a new one, does I have to copy paste again my new private key and certificate ? If yes, do you have a solution to do automatically the copy/paste ? Because I'm sure I'll forget to copy/paste the new certificate in hostinger!!! Thank you !!

TL;DR
The user had trouble generating an SSL certificate for their Appwrite installation with Hostinger. They were able to find a solution by copying and pasting their SSL private key and certificate to Hostinger. They are concerned about having to repeat this process when the certificate expires and asked if there is an automatic solution to handle the copy/paste. The solution is not provided in the support thread.
Drake
22 Oct, 2023, 14:41

Uh you shouldn't have to copy and paste...can you explain more about how your stuff is set up?

toine
22 Oct, 2023, 14:48

@Steven I have a vps where I install appwrite. I have a domain created with hostinger. But hostinger create automatically a SSL certificate for this domain. So I remove it. I configured DNS and a 'A' for this domain. I start Appwrite creation certificate and it works on Appwrite side. But on Hostinger side, the domain doesn't have an SSL. So I copy/paste the key and the certificate.

Drake
22 Oct, 2023, 14:50

Uhhh so typically if there's a reverse proxy in front of Appwrite that has an SSL certificate ready, you don't really need one on Appwrite.

I'm not really sure how/what the SSL certificate from hostinger works...

toine
22 Oct, 2023, 14:52

@Steven No there's no reverse proxy.

Drake
22 Oct, 2023, 14:52

Then I don't think you need to copy any SSL certificate to hostinger

toine
22 Oct, 2023, 14:57

Thank you, but I don't understand. In an appwrite installation, Appwrite create an SSL certificate with the domain you set at the beginning of the installation ? So after who this certificate is send to the domain ? For hostinger or others ? It's just to understand because I'm sure to understand the cycle.

Drake
22 Oct, 2023, 14:58

So when you browse to the domain, the request gets routed to the appwrite server (via that A record you set up). Appwrite will then serve that SSL certificate

toine
22 Oct, 2023, 15:02

Yes I understand this. But what I don't understand it's on the installation. Appwrite didn't need to create an SSL certificate if the domain has a certificate ? Thank you for your quick answer.

Drake
22 Oct, 2023, 15:03

Yes, if there's something else in front handling the http request, it will serve the SSL certificate

toine
24 Oct, 2023, 14:00

Thank you @Steven I found the solution.

Drake
24 Oct, 2023, 14:52

what was your solution?

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