Is it possible to use docker secrets with traefik for ssl certificates?

I want to use docker secret for ssl certificates with traefik. Is it possible?

figured it out.
below gist also covers use custom tls certs for domain A and letsencrypt cert for domain B
gist link: https://gist.github.com/prayagsingh/ee85e81dd03191f14c459b6d38b4af15