# SSL is only working for www. domain

**URL:** <https://forum.ghost.org/t/ssl-is-only-working-for-www-domain/5436>\
**Category:** Installation\
**Created:** [February 3, 2019, 2:34pm UTC](https://forum.ghost.org/t/ssl-is-only-working-for-www-domain/5436 "2019-02-03T14:34:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freighter](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/freighter/32/2500_2.png) [@Freighter](https://forum.ghost.org/u/Freighter)\
**Post date:** [February 3, 2019, 2:34pm UTC](https://forum.ghost.org/t/ssl-is-only-working-for-www-domain/5436/1 "2019-02-03T14:34:52Z")

</div>

Hi,

I just set up ghost using Digital Ocean’s one-click setup. During the setup it asks to setup the domain and also the SSL.

When visiting [[https://www.writingwhilenoodles.com](https://www.writingwhilenoodles.com)] everything is as it should be, however when visiting [[https://writingwhilenoodles.com](https://writingwhilenoodles.com)] (without the [www.]) I get a This connection is not private error. Any idea how to resolve this?

On the Digital Ocean website someone suggested I create a wildcard SLL certificate, but because the process of getting an SSL certificatie is automated at Digital Ocean (you only put in your e-mail address), I’m not sure how to do this.

Could somebody help me get the SSL certificate working on both domains?

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [February 3, 2019, 5:46pm UTC](https://forum.ghost.org/t/ssl-is-only-working-for-www-domain/5436/2 "2019-02-03T17:46:44Z")

</div>

www. and the root domain are two different domains. The process for setting up SSL for a secondary domain with Ghost CLI is documented here:

> **[Ghost-CLI - A fully loaded tool for installation and configuration](https://ghost.org/docs/ghost-cli/#knowledgebase)**
>
> The best way to install, manage, and update your site locally or when self-hosting Ghost. A full guide for our advanced CLI tool.

---

<div class="post-metadata">

**Author:** ![Freighter](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/freighter/32/2500_2.png) [@Freighter](https://forum.ghost.org/u/Freighter)\
**Post date:** [February 3, 2019, 8:30pm UTC](https://forum.ghost.org/t/ssl-is-only-working-for-www-domain/5436/3 "2019-02-03T20:30:03Z")

</div>

Perfect, worked like a charm! Thanks!

---

<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:** [February 17, 2019, 8:30pm UTC](https://forum.ghost.org/t/ssl-is-only-working-for-www-domain/5436/4 "2019-02-17T20:30:04Z")

</div>

Closed on February 17, 2019, 8:30pm UTC

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