title: Can I create a kubernetes secret with the kubectl command using a .pfx certificate?
body: <p>command below gives an error: <code>error: flag key is required</code></p>
  <pre><code>kubectl create secret tls k8-secret2 \
      -n ingress-tls-test1 \
      --cert ingress-tls-test1.pfx
  </code></pre>
  <p>I am able to create the secret using .crt and .key file:</p>
  <pre><code>kubectl create secret tls aks-ingress-tls \
      --namespace ingress-basic \
      --key aks-ingress-tls.key \
      --cert aks-ingress-tls.crt
  </code></pre>