<p>How can i upload Binary file like cert file as Config-map</p>

<p>I am trying to upload Cert file like .p12 as config map but it's failing every time. After upload i do not see the file just entry.</p>

<p>Command that i used:</p>

<pre><code>oc create configmap mmx-cert --from-file=xyz.p12
</code></pre>

<p>Failed.</p>

<p>Also used: </p>

<pre><code>oc create configmap mmx-cert--from-file=game-special-key=example-files/xyz.p12
</code></pre>

<p>Also failed.</p>

Kul Bhushan Prasad
<p>You cannot, ConfigMaps cannot contain binary data on their own. You will need to encode it yourself and decode it on the other side, usually base64. Or just a Secret instead, which can handle binary data.</p>
