title: Java application access to azure keyvault : steps to generate auth token via client certificate
body: <p>I have referred following guides to setup AD certificate based application to connect to azure keyvault  </p>
  
  <p><a href="https://azure.microsoft.com/en-us/documentation/articles/key-vault-use-from-web-application/" rel="nofollow">https://azure.microsoft.com/en-us/documentation/articles/key-vault-use-from-web-application/</a></p>
  
  <p><a href="http://www.rahulpnath.com/blog/authenticating-a-client-application-with-azure-key-vault/" rel="nofollow">http://www.rahulpnath.com/blog/authenticating-a-client-application-with-azure-key-vault/</a></p>
  
  <p><a href="http://kamranicus.com/blog/2016/02/24/azure-key-vault-config-encryption-azure/" rel="nofollow">http://kamranicus.com/blog/2016/02/24/azure-key-vault-config-encryption-azure/</a></p>
  
  <p>We have a java application running on linux platform , we plan to call up azure keyvault rest api via certificate based authenticate.</p>
  
  <p>Do we have any java based sample snippet to generate token via certificate stream ie certificate will be saved as string and passed on the fly to any token generation api. Examples in above links assume it to be installed in store</p>