# Erro SSL ao personalizar nginx: O certificado não é confiável em todos os navegadores da web

**URL:** <https://meta.discourse.org/t/ssl-error-when-customizing-nginx-the-certificate-is-not-trusted-in-all-web-browsers/203164>\
**Category:** Self-hosting\
**Created:** [10 Setembro , 2021 14:14 UTC](https://meta.discourse.org/t/ssl-error-when-customizing-nginx-the-certificate-is-not-trusted-in-all-web-browsers/203164 "2021-09-10T14:14:08Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Bcat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bcat/32/163148_2.png) [@Bcat](https://meta.discourse.org/u/Bcat)\
**Post date:** [10 Setembro , 2021 14:14 UTC](https://meta.discourse.org/t/ssl-error-when-customizing-nginx-the-certificate-is-not-trusted-in-all-web-browsers/203164/1 "2021-09-10T14:14:09Z")

</div>

**Mudei algumas configurações para atender a outros trabalhos no mesmo servidor Discourse.**

Alguns navegadores exibem notificação SSL ao acessar o site (página em branco)

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/a/3a1d02279120716ea58ff47e8c987c97812670f2.jpeg)

**Arquivo:** `/var/discourse/containers/app.yml`

```plaintext
templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"
## Descomente essas duas linhas se desejar adicionar o Lets Encrypt (https)
  # - "templates/web.ssl.template.yml"
  # - "templates/web.letsencrypt.ssl.template.yml"
  - "templates/web.socketed.template.yml"

```

A função de geração automática de SSL não é executada em mudanças como a acima, então eu faço manualmente assim:

```plaintext
cd /var/discourse
./launcher enter app
"/shared/letsencrypt"/acme.sh --cron --home "/shared/letsencrypt" --force
exit

```

Em seguida, execute `systemctl restart nginx`

Esta é a minha configuração do nginx:

```plaintext
server {
    listen 443 ssl http2;

    ssl on;

    ssl_certificate /var/discourse/shared/standalone/letsencrypt/thuvienmuasam.com/thuvienmuasam.com.cer;
    ssl_certificate_key /var/discourse/shared/standalone/letsencrypt/thuvienmuasam.com/thuvienmuasam.com.key;

```

Da última vez funcionou bem, mas desta vez ocorreu o erro como mostrado acima.

Poderia me dizer se fiz tudo corretamente?

---

_[View the full topic](https://meta.discourse.org/t/ssl-error-when-customizing-nginx-the-certificate-is-not-trusted-in-all-web-browsers/203164)._
