# \[HOWTO\] Running Nextcloud over self-signed HTTPS (SSL/TLS) in docker

**URL:** <https://help.nextcloud.com/t/howto-running-nextcloud-over-self-signed-https-ssl-tls-in-docker/101973>\
**Category:** 📑 How to\
**Tags:** docker, tls, self-signed-certificate, docker-compose\
**Created:** [December 21, 2020, 8:50pm UTC](https://help.nextcloud.com/t/howto-running-nextcloud-over-self-signed-https-ssl-tls-in-docker/101973 "2020-12-21T20:50:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Fran\_Aramayo](https://help.nextcloud.com/user_avatar/help.nextcloud.com/fran_aramayo/32/55555_2.png) [@Fran\_Aramayo](https://help.nextcloud.com/u/Fran_Aramayo)\
**Post date:** [October 27, 2023, 5:19pm UTC](https://help.nextcloud.com/t/howto-running-nextcloud-over-self-signed-https-ssl-tls-in-docker/101973/5 "2023-10-27T17:19:27Z")

</div>

Hi

Thanks for the tutorial. I have followed and I noticed that there is an error in the Dockerfile. I had to modify the RUN command puting the command sh and I also put the header #!bin/bash in the first line of the setssl.sh just in case.

After that, it worked like a charm

```auto
RUN sh /usr/local/bin/setssl.sh admin@domain.tld nextcloud.domain.tld

```

```auto
#!bin/bash
# setssl.sh
# USAGE: setssl.sh <email> <domain>

echo 'SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
...

```

---

_[View the full topic](https://help.nextcloud.com/t/howto-running-nextcloud-over-self-signed-https-ssl-tls-in-docker/101973)._
