Ghost setup ssl not working

So I am trying to setup ssl my ghost blog. The problem is that I keep getting an error. I’m using ghost 2.9. I type the command ghost setup ssl

? Enter your email (For SSL Certificate) christopher@example.com

  • sudo /etc/letsencrypt/acme.sh --issue --home /etc/letsencrypt --domain example.com --webroot /var/www/ghost/system/nginx-root --reloadcmd “nginx -s reload” --accountemail christopher@example.com
    ? Sudo Password [hidden]
    :heavy_multiplication_x: Setting up SSL
    A ProcessError occurred.

Message: Command failed: /bin/sh -c sudo -S -p ‘#node-sudo-passwd#’ /etc/letsencrypt/acme.sh --issue --home /etc/letsencrypt --domain example.com --webroot /var/www/ghost/system/nginx-root --reloadcmd “nginx -s reload” --accountemail christopher@example.com
#node-sudo-passwd#[Wed Jan 2 16:54:54 UTC 2019] example.com:Verify error:Invalid response from http://example.com/.well-known/acme-challenge/9-OrW4mu_QCaG1ZZdYBr-apA-NKCBGDOnEb-Rb00O_E:
[Wed Jan 2 16:54:54 UTC 2019] Please add ‘–debug’ or ‘–log’ to check more details.
[Wed Jan 2 16:54:54 UTC 2019] See: How to debug acme.sh · acmesh-official/acme.sh Wiki · GitHub

[Wed Jan 2 16:54:49 UTC 2019] Single domain=‘example.com
[Wed Jan 2 16:54:49 UTC 2019] Getting domain auth token for each domain
[Wed Jan 2 16:54:49 UTC 2019] Getting webroot for domain=‘example.com
[Wed Jan 2 16:54:49 UTC 2019] Getting new-authz for domain=‘example.com
[Wed Jan 2 16:54:51 UTC 2019] The new-authz request is ok.
[Wed Jan 2 16:54:51 UTC 2019] Verifying:example.com

Exit code: 1

Debug Information:
OS: Ubuntu, v16.04
Node Version: v8.9.1
Ghost-CLI Version: 1.9.8
Environment: production
Command: ‘ghost setup ssl’

Some additional information on the setup:
I already own https://exmaple.com website. I have a redirect rule in my wsgi file that redirects to this new environment that I am creating specifically for the blog. in my ghost config.production.json file I have the url setup as https://example.com/blog/

Some other related follow up questions:
Does ghost setup ssl command automatically update the related nginx files?
Does ghost setup ssl command add any new files or make any other modifications that I would not necessarily know about?

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.