title: Using .p8 certificate in Azure Notification Hub
body: <p>I am attempting to configure a <code>Notification Hub</code> for APNS in Azure Portal. There are two options: <code>Certificate</code> and <code>Token</code>. The certificate option is redundant as it only takes p12 certifcates and Apple now only does p8 certificates.</p>
  
  <p>For the Token option, I am presented with the following fields: <code>Key Id</code>, <code>Bundle Id</code>, <code>Team Id</code>, and <code>Token</code>.</p>
  
  <p>I have already created a p8 certificate, and have entered the values for all the above fields except the <code>Token</code> field. Where do I get the token? Is it the <code>private key</code> that is contained in the p8 certificate?</p>
  
  <p><strong>Update</strong></p>
  
  <p>According to Microsoft, Token refers to the key or private key 'obtained from the p.8 file': <a href="https://docs.microsoft.com/en-us/azure/notification-hubs/notification-hubs-push-notification-http2-token-authentification" rel="nofollow noreferrer">source</a></p>