Setup Let's encrypt SSL without using builtin integration

Ghost: v2.38.1
Ubuntu 18.04.4 LTS
Apache2 2.4.29-1ubuntu4.13
MySQL 5.7.29-0ubuntu0.18.04.1
Node v10.19.0

Hello there, I’m running a Ghost blog on the server of a sysadmin friend and he added a Let’s encrypt certificate for my blog but we didn’t use the builtin integration.
It worked pretty well at first but I still had some http calls due to the fact that my blog url was still with http protocol, I guess.

Anyway I updated the url with the command ghost config url but since then I can’t even restart the blog, ghost keeps asking me the sudo password for pretty much any commands I put. But I don’t have sudo privilege, neither have the ghost user.

What do you think is happening and how do we fix this?

NB: reverting the url to http doesn’t change anything.

Ok finally got it.

Updating url value with ghost-cli doesn’t only change the url value but also the port and most importantly the process.

Manually reverting the port and the process fixed all the issues.