Ghost on Localhost with SSL/ HTTPS

How do you get local ghost (localhost) working with SSL? Acme.sh doesn’t generate localhost certs, so the ghost cli definitely can’t either, because it just uses acme. I need https so that I can access ghost headless through gatsby. One of the benefits of JAMstack is I don’t need a backend and just a static website hosting. I get that ghost is trying to push GhostPro.

On the config page, there is an SSL section, but it refers to using the CLI, which doesn’t generate SSL certs for localhost successfully. Has anyone manage to generate a SSL certs for local ghost installation?

I’ve been learning and trying ghost for a while now, but I’m abit dissapointed. Documentation is pretty good in other areas, but just lacking in this area.

You can use mkcert To generate self signed SSL certificates :relaxed:

I usually develop locally without SSL - Gatsby should not need SSL either - you should just need to configure the host to point to localhost and the correct port. If you’re using our gatsby-ghost-starter these are set in .ghost.json

I’m interested in why you need to run on https to use Gatsby :thinking:

1 Like

Thank you @egg for this suggestion. I’ve installed mkcert and set it up correctly, as per instructions, but I am still not able to get the local Ghost to run on https. If it’s not bothering you, could you please share the part of your Ghost config file where SSL was set up? Or any other file that I’m obviously missing.

Thank you for your time and effort.

Cheers.