# Default certification authority

**URL:** <https://community.traefik.io/t/default-certification-authority/2034>\
**Category:** Traefik v2\
**Tags:** file, docker\
**Created:** [September 30, 2019, 8:35am UTC](https://community.traefik.io/t/default-certification-authority/2034 "2019-09-30T08:35:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bgranvea](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@bgranvea](https://community.traefik.io/u/bgranvea)\
**Post date:** [September 30, 2019, 8:35am UTC](https://community.traefik.io/t/default-certification-authority/2034/1 "2019-09-30T08:35:59Z")

</div>

Is it possible to let Traefik generate self-signed certificates using a provided certification authority?

Thanks.

---

<div class="post-metadata">

**Author:** ![trajano](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/trajano/32/247_2.png) [@trajano](https://community.traefik.io/u/trajano)\
**Post date:** [September 30, 2019, 1:02pm UTC](https://community.traefik.io/t/default-certification-authority/2034/2 "2019-09-30T13:02:31Z")

</div>

No, self-signed certificates are their own CA by definition.

I think what you're looking for is whether you can put in your own certificate with your own CA. In that case, that is allowed using the file provider with the settings specified in [https://docs.traefik.io/v2.0/https/tls/#user-defined](https://docs.traefik.io/v2.0/https/tls/#user-defined)

---

<div class="post-metadata">

**Author:** ![bgranvea](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@bgranvea](https://community.traefik.io/u/bgranvea)\
**Post date:** [September 30, 2019, 2:04pm UTC](https://community.traefik.io/t/default-certification-authority/2034/3 "2019-09-30T14:04:19Z")

</div>

I would be happy with Traefik self-generated certificate except that it seems that it changes every 15s (provider docker with swarmMode=true), so it is pointless to put it in trusted store:

> time="2019-09-30T13:54:52Z" level=debug msg="No default certificate, generating one"  
> time="2019-09-30T13:55:07Z" level=debug msg="No default certificate, generating one"  
> time="2019-09-30T13:55:22Z" level=debug msg="No default certificate, generating one"

Is that the expected behavior?

As a workaround, I'm using a custom CA that I put in Windows trusted CA store and a wildcard server certificate configured in stores.default.defaultCertificate. The goal is that every developer doesn't have to generate its own certificate when he deploys to a new dev machine. I'm not very comfortable with this wildcard certificate solution, thus my initial question.

---

<div class="post-metadata">

**Author:** ![zespri](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/zespri/32/310_2.png) [@zespri](https://community.traefik.io/u/zespri)\
**Post date:** [September 30, 2019, 6:40pm UTC](https://community.traefik.io/t/default-certification-authority/2034/4 "2019-09-30T18:40:25Z")

</div>

Not sure about every 15 seconds, but it certainly would be re-generated when a container is re-created. It's safer to provide your own.

I'm not aware of any other cert resolver for traefik apart from acme one. I'd say that generating it's own certs with custom CA would be a neat feature.
