title: Add SSL Certificate to Windows Docker Container
body: <p>How can I add a <em>.cer</em>-Certificate inside a Docker container? It has to be done via powershell since the container has no interface to open <code>mms.exe</code>.</p>
  
  <p><a href="http://colmprunty1.azurewebsites.net/2017/06/07/import-and-bind-an-ssl-cert-in-windows-container/" rel="noreferrer">This</a> is a good tutorial for <em>.pfx</em>-Certificates. Since I have a <em>.cer</em>-file without private key, I have to adapt it slightly.
  The powershell command from the <a href="https://technet.microsoft.com/de-de/library/hh848630.aspx" rel="noreferrer">documentation</a>
  <code>Import-Certificate -FilePath C:\myCertificateToAdd.cert -CertStoreLocation Cert:\CurrentUser\Root\</code> gets stuck whenever called.</p>