title: Pass private key as header in curl PUT returning error for illegal character
body: <p>I have a <code>.pem</code> file containing my private key that I need to pass as an authorization header.</p>
  <p>I've tried just using the command <code>$(cat $REPO_ROOT/pulsar/tls/broker/broker.key.pem)</code> but I'm getting the response: <code>&lt;h1&gt;Bad Message 400&lt;/h1&gt;&lt;pre&gt;reason: Illegal character LF=\n&lt;/pre&gt;0</code></p>
  <p>Can I not pass the contents of my <code>.pem</code> straight into the header?</p>
  <pre><code>CLUSTER=standalone
  TENANT=sandbox
  NAMESPACE=integration_test
  AUTHORIZATION=$(cat $REPO_ROOT/pulsar/tls/broker/broker.key.pem)
  
  
  # Create tenant
  curl -L -X PUT &quot;http://localhost:$HOST_PULSAR_PORT/admin/v2/tenants/$TENANT&quot; \
      --header &quot;Authorization: Bearer $AUTHORIZATION&quot; \
      --header 'Content-Type: application/json' \
      --data-raw &quot;{\&quot;allowedClusters\&quot;: [\&quot;$CLUSTER\&quot;]}&quot;
  </code></pre>