# TLS handshake error - unknown certificate

**URL:** <https://community.traefik.io/t/tls-handshake-error-unknown-certificate/2093>\
**Category:** Traefik v2\
**Tags:** docker-swarm\
**Created:** [October 2, 2019, 8:20am UTC](https://community.traefik.io/t/tls-handshake-error-unknown-certificate/2093 "2019-10-02T08:20:58Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![aleksvujic](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/aleksvujic/32/4885_2.png) [@aleksvujic](https://community.traefik.io/u/aleksvujic)\
**Post date:** [October 2, 2019, 5:10pm UTC](https://community.traefik.io/t/tls-handshake-error-unknown-certificate/2093/5 "2019-10-02T17:10:11Z")

</div>

Yes. As far as I understand, Traefik picks an appropriate certificate based on the domain for which the certificate was issued. So if you have two certificates, one for \*.example.com and another one for \*.website.com and you visit [dashboard.website.com](http://dashboard.website.com), it will automatically pick a certificate for that domain.

---

_[View the full topic](https://community.traefik.io/t/tls-handshake-error-unknown-certificate/2093)._
