title: Azure KeyVault - Sign JWT Token
body: <p>I began using Azure Keyvault to store private keys for my application.  </p>
  
  <p>I have a use case where I need to sign a JWT token with an RSA private key.  </p>
  
  <p>When I had the private key in my application memory, it was easy,
  I would just do that</p>
  
  <pre><code>var token = new JwtSecurityToken(
                  issuer,
                  ...,
                  claims,
                  ...,
                  ...,
                  signingCredentials_PrivateKey);
  </code></pre>
  
  <p>Now that I began to use Azure Keyvault, I want to see if it's possible to sign JWT tokens via the <code>KeyVaultClient.SignAsync</code> method.  </p>
  
  <p>Something along the lines of  </p>
  
  <pre><code>KeyVaultClient client = ...;
  var token = new JwtSecurityToken(
                  issuer,
                  ...,
                  claims,
                  ...,
                  ...);
  var tokenString = client.SignAsync(myKeyIdentifier, token);
  </code></pre>