Docker Community Forums

Share and learn in the Docker community.

Mount Windows Hosts Certificate store in Containers

Expected behavior

I want to have the certificates installed in my host’s Certificate store inside my containers

Actual behavior

No Certificates available

Information

I have a certifiate installed in y Windows server host and would need to use them inside the containers, however I do not have access to export the private key of the certifiates.
Is there a way I could share or mount my hosts Certificate Store into my containers?

Steps to reproduce the behavior

Create a Container
Navigate to Certificate store (using powerhsell, for example)
Query available certificates

There is way to export certificate which is not exportable (https://stackoverflow.com/questions/3914882/how-to-export-non-exportable-private-key-from-store). But no you can not pull stuff out of host OS like you asking.

Exporting it with a tool is not the kind of solution that suites to me, thanks anyway!