# Script Error Enabling Let's Encrypt on new Discourse instance

**URL:** <https://meta.discourse.org/t/script-error-enabling-lets-encrypt-on-new-discourse-instance/104791>\
**Category:** Self-hosting\
**Created:** [December 20, 2018, 8:54pm UTC](https://meta.discourse.org/t/script-error-enabling-lets-encrypt-on-new-discourse-instance/104791 "2018-12-20T20:54:17Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![L30110](https://avatars.discourse-cdn.com/v4/letter/l/eb9ed0/32.png) [@L30110](https://meta.discourse.org/u/L30110)\
**Post date:** [December 20, 2018, 10:07pm UTC](https://meta.discourse.org/t/script-error-enabling-lets-encrypt-on-new-discourse-instance/104791/3 "2018-12-20T22:07:33Z")

</div>

I got ssl up by using this config:

```
  DISCOURSE_SMTP_ADDRESS: xxx
  DISCOURSE_SMTP_PORT: 25
  DISCOURSE_SMTP_AUTHENTICATION: none
  DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: none
  DISCOURSE_SMTP_USER_NAME: foo
  DISCOURSE_SMTP_PASSWORD: bar

```

They key is to comment out the USER\_NAME and PASSWORD again (so that SMTP will work properly) without breaking the Let’s Encrypt section on a rebuild. I’m not sure I’m understanding your instructions on the correct sequence for doing this. Thanks!

---

_[View the full topic](https://meta.discourse.org/t/script-error-enabling-lets-encrypt-on-new-discourse-instance/104791)._
