App Server - Specifying Certificate makes app unreachable

I’m specifying the path to my certificate and key in my config file. I’ve tried several ways of specifying the paths. Whenever I use my own certificate the app becomes unreachable.

Any ideas? Here is the relevant section from my config:

manual-cert-file: "certificate.crt"
manual-cert-key-file: "private.key"

Solved my own issue. The certificates were fine. I just needed to bind the URL to port 443 in the origin a la:

origin: 'https://awesome-app.com:443'

1 Like

Hi @robert , would you mind advising where to take to certificate? Thanks so much. I tried several ways without success.

I ended up using the Let’s Encrypt certificates. It’s a good idea to test it out with staging first so you don’t get rate limit blocked.

Let’s Encrypt is free. I used a paid SSL certificate for about a month but determined there really wasn’t any benefit to it.

Thanks so much @robert, what exactly do you put the file? In the /.anvil-data or in the app folder downloaded from git?

You can specify the path in the config file. I had to fiddle with it for a few times to get the certificate recognized. I put the certificate and key in the folder one level up from the app if I remember right.

It took me many many tries to get my config working fully.

Here are the relevant arguments from the GitHub Repo.

manual-cert-file
manual-cert-key-file
1 Like

Thanks so much, I actually give up, it takes so much time without results.

1 Like