title: Firebase: Cannot upload production APNs certificate
body: <p>I am currently testing an app in TestFlight and need a production APNs certificate in order to test Notifications in Firebase.</p>
  
  <p>I have followed all of the steps in this video and successfully configured the development APNs certificate:
  <a href="https://www.youtube.com/watch?v=LBw5tuTvKd4" rel="noreferrer">https://www.youtube.com/watch?v=LBw5tuTvKd4</a></p>
  
  <p>I've also checked that my steps following the Firebase support guide. Although I note that the Apple Developer site has changed slightly since this guide was written:
  <a href="https://firebase.google.com/docs/cloud-messaging/ios/certs#configure_an_app_id_for_push_notifications" rel="noreferrer">https://firebase.google.com/docs/cloud-messaging/ios/certs#configure_an_app_id_for_push_notifications</a></p>
  
  <p>I have generated a production APNs certificate at developer.apple.com using the same method as the development certificate but when I try to upload the .p12 file to Firebase, it gives me the following error:</p>
  
  <p>"The certificate environment did not match. Ensure that you got the right development or production APNS certificate."</p>
  
  <p>I'm definitely uploading a .p12 generated from a production APNS certificate, is there something else I need to do for a production certificate?</p>