# Error when setup ssl

**URL:** <https://forum.ghost.org/t/error-when-setup-ssl/5683>\
**Category:** Developer help\
**Created:** [February 16, 2019, 2:55am UTC](https://forum.ghost.org/t/error-when-setup-ssl/5683 "2019-02-16T02:55:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![keung\_yuen](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/keung_yuen/32/2148_2.png) [@keung\_yuen](https://forum.ghost.org/u/keung_yuen)\
**Post date:** [February 16, 2019, 2:55am UTC](https://forum.ghost.org/t/error-when-setup-ssl/5683/1 "2019-02-16T02:55:01Z")

</div>

? Do you wish to set up SSL? Yes  
? Enter your email (For SSL Certificate) [yueng@hotmail.com](mailto:yueng@hotmail.com)

- sudo mkdir -p /etc/letsencrypt
- sudo ./acme.sh --install --home /etc/letsencrypt
- sudo /etc/letsencrypt/acme.sh --issue --home /etc/letsencrypt --domain [aptfund.com](http://aptfund.com) --webroot /var/www/ghost/system/nginx-root --reloadcmd “nginx -s reload” --accountemail [yuenpingkeung@hotmail.com](mailto:yuenpingkeung@hotmail.com)  
✖ 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 [aptfund.com](http://aptfund.com) --webroot /var/www/ghost/system/nginx-root --reloadcmd “nginx -s reload” --accountemail [yuenpingkeung@hotmail.com](mailto:yuenpingkeung@hotmail.com)  
[Sat Feb 16 10:51:43 CST 2019] [aptfund.com](http://aptfund.com):Verify error:Invalid response from [http://aptfund.com/.well-known/acme-challenge/aKT090tXEGkHQRkJSuhAzeV9T\_VamA\_Xbz\_5NtZC3Pg](http://aptfund.com/.well-known/acme-challenge/aKT090tXEGkHQRkJSuhAzeV9T_VamA_Xbz_5NtZC3Pg) [204.237.243.106]: 502  
[Sat Feb 16 10:51:43 CST 2019] Please add ‘–debug’ or ‘–log’ to check more details.  
[Sat Feb 16 10:51:43 CST 2019] See: [How to debug acme.sh · acmesh-official/acme.sh Wiki · GitHub](https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh)

[Sat Feb 16 10:51:34 CST 2019] Registering account  
[Sat Feb 16 10:51:35 CST 2019] Registered  
[Sat Feb 16 10:51:35 CST 2019] ACCOUNT\_THUMBPRINT=‘puwHiY6BJOz4ul0K1hL8PyEAfchqZqUPo4MVetz5WfE’  
[Sat Feb 16 10:51:35 CST 2019] Creating domain key  
[Sat Feb 16 10:51:35 CST 2019] The domain key is here: /etc/letsencrypt/aptfund.com/aptfund.com.key  
[Sat Feb 16 10:51:35 CST 2019] Single domain=‘[aptfund.com](http://aptfund.com)’  
[Sat Feb 16 10:51:36 CST 2019] Getting domain auth token for each domain  
[Sat Feb 16 10:51:36 CST 2019] Getting webroot for domain=‘[aptfund.com](http://aptfund.com)’  
[Sat Feb 16 10:51:36 CST 2019] Getting new-authz for domain=‘[aptfund.com](http://aptfund.com)’  
[Sat Feb 16 10:51:37 CST 2019] The new-authz request is ok.  
[Sat Feb 16 10:51:37 CST 2019] Verifying: [aptfund.com](http://aptfund.com)  
[Sat Feb 16 10:51:40 CST 2019] Pending

Exit code: 1

Debug Information:  
OS: Ubuntu, v18.04  
Node Version: v8.15.0  
Ghost-CLI Version: 1.9.9  
Environment: production  
Command: ‘ghost install’

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [March 2, 2019, 2:55am UTC](https://forum.ghost.org/t/error-when-setup-ssl/5683/2 "2019-03-02T02:55:02Z")

</div>

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