# SSL\_connect teruggekeerd=1 errno=0 peeraddr=162.243.189.2:443 state=error: certificaat verificatie mislukt (Hostnaam niet overeenkomend)

**URL:** https://meta.discourse.org/t/ssl-connect-returned-1-errno-0-peeraddr-162-243-189-2-443-state-error-certificate-verify-failed-hostname-mismatch/269824
**Category:** Self-hosting
**Tags:** s3
**Created:** [27 juni 2023 om 21:30 UTC](https://meta.discourse.org/t/ssl-connect-returned-1-errno-0-peeraddr-162-243-189-2-443-state-error-certificate-verify-failed-hostname-mismatch/269824 "2023-06-27T21:30:25Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![DavidO](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@DavidO](https://meta.discourse.org/u/DavidO)
#### Post date: [27 juni 2023 om 22:45 UTC](https://meta.discourse.org/t/ssl-connect-returned-1-errno-0-peeraddr-162-243-189-2-443-state-error-certificate-verify-failed-hostname-mismatch/269824/5 "2023-06-27T22:45:17Z")

</div>

Thank you.

I don’t see a section in app.yml for DISCOURSE\_S3 settings. Do I just create a line for each? Or is that what the sudo commands do?

> [@Configure an S3 compatible object storage provider for uploads](https://meta.discourse.org/t/configure-an-s3-compatible-object-storage-provider-for-uploads/148916/1):
>
> ```plaintext
> after_assets_precompile:
> - exec:
> cd: $home
> cmd:
> - sudo -E -u discourse bundle exec rake s3:upload_assets
> - sudo -E -u discourse bundle exec rake s3:expire_missing_assets
> 
> ```

I’m not entirely clear on where I run or put those sudo commands. Not clear if it’s a one-time command line item to add it or if it’s something that has to go into app.yml so that it’s always accounted for.

Do the sudo commands go in the app.yml area or just the DISCOURSE\_S3 setting lines?

* * *

Do I just leave this blank with DO Spaces? DISCOURSE\_S3\_REGION:

* * *

Do I have to have a CDN? We have very low traffic. Small group. I’m really trying to limit the moving parts if possible.

---

_[View the full topic](https://meta.discourse.org/t/ssl-connect-returned-1-errno-0-peeraddr-162-243-189-2-443-state-error-certificate-verify-failed-hostname-mismatch/269824)._
