# Giving Certificate to Containers

**URL:** <https://forums.suse.com/t/giving-certificate-to-containers/7803>\
**Category:** Rancher 1.x\
**Created:** [November 16, 2017, 1:52am UTC](https://forums.suse.com/t/giving-certificate-to-containers/7803 "2017-11-16T01:52:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andyhuang](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/andyhuang/32/3048_2.png) [@andyhuang](https://forums.suse.com/u/andyhuang)\
**Post date:** [November 16, 2017, 1:52am UTC](https://forums.suse.com/t/giving-certificate-to-containers/7803/1 "2017-11-16T01:52:56Z")

</div>

I have letsencrypt deployed via the community catalog. It has since created a few certificates for me in the Rancer Infrastructure \> Certificate section for me; hooray. Except, now, how do I give this certificate to a container that’d need its own certificate (e.g.: [Docker Registry](https://hub.docker.com/_/registry/))? In this particular case, the container is looking for the certificate and key files as files inside the container. How would I share that information with the container?

One approach that comes to mind is to tie the certificate to Rancher’s Secrets service, which would then enable me to surface that information into `/run/secrets/key` and `/run/secrets/cert`, but I cannot find a way to do that.

Any tips would be greatly appreciated.

Thanks in advance!
