I'm getting an InternalServerError when uploading a .p12 certificate to the APNS in the Azure Portal - azure-notificationhub

So this morning I created 2 apple certificates (dev and prod), and exported them to .p12 files to upload them to the Azure Portal in the APNS notification hub.
This morning I was able to upload successfully the production cert, but in the afternoon I tried uploading the dev .p12 cert and I'm getting an:
{"error":{"message":"Object reference not set to an instance of an object.","code":"InternalServerError"}}
Is it just that the server is having issues?
Thanks.

This issue has been fixed. Could you retry this operation ?

Related

Azure powershell deployment - credentials management and expiration

I am automating deployment of a solution to Azure for CI purposes in powershell. I will be using WebDeploy to deploy websites and webjobs. I plan to create the CI user in Azure AD once for all environments, attach him to the subscription, download appropriate publishprofile file and put this file in the repository. Then use Import-AzurePublishSettingsFile while deployment is running on CI. Is this the optimal way to do it? Can I assume that the credentials stored in this file won't expire?
Since the .publishsettings file mechanism is no longer been worked on, you should create an Azure Active Directory Service Principal to grant access for your CI environment to Azure.
Import-AzurePublishSettingsFile is using a .publishsettings file that has been downloaded using the Get-AzurePublishSettingsFile. This command will create a certificate in your subscription.
You can login the Azure Classic Portal.
Click Settings > Management certificates, and search with the downloaded .publishsettings file name.
You will be able to get the expire date of the certificate. It's usually one year long. I am not sure if it's long enough for you.
If your need a longer term, I suggest you to upload your own certificate, and use certificate instead. For more information, see Upload an Azure Management API Management Certificate
For more detail about how to use the uploaded certificates, see Getting Started with Azure PowerShell Cmdlets–Subscription Management

How to ask customer to apply for APNS push certification (no MDM capability)

I followed instruction to generate a development APNS certificate and I am able to send the push notification successfully to my iPhone. Our application would be deployed on premise in customer environment, so I am looking for what instruction I should give customer to generate the APNS production certificate. Based on my search at this point, it is all about MDM APNS certificate generation and here is from Apple MDM web site:
1.Contact your MDM vendor to request a signed Certificate Signing Request (CSR). Your vendor will sign a CSR and deliver it to you.
2.Once you have a signed CSR from your vendor, visit identity.apple.com/pushcert and sign in with a verified Apple ID.
3.Click "Create a Certificate” and agree to the Terms of Use.
4.Select your signed CSR and click upload. After a moment, your certificate will be available for download.
5.This certificate can now be uploaded to your MDM server for use with the Apple Push Notification service.
However we don't want to be a MDM vendor, we just want to send push notification from server application to our iOS app which would be used by customer.
So do we have other choices? Or should we just package our production certificate with our solution to deploy in customer env? Somehow I didn't find information on internet for my case.
Since no one is answering, I am answering myself.
Based on this link Multiple Servers Connecting to APNS with same SSL certificate, we just need to distribute our production APNS certificate to customer. I guess we would need to update the production certificate on customer site when it is about to expire. By the way, it is also possible to have different production APNS certificates for different customer see link, I guess challenge would be how to manage those certificates when there are a lot.
It is highly welcome for any comments if you have experience in this area.

Apple Push Notification - change from developer to production. What do to?

this week I will submit my App to the Appstore.
I have tested the push notification service with my developer- certificate on several devices. Everything works fine.
So what are the next steps?
Generate a Distribution Provisioning Profile and download to xcode.
Download the Production-Push-Certificate and generate a pem file.
use gateway.push.apple.com
?
Thanks a lot!
Chris
Generate your production push certificate, then generate your distribution provisioning profile. When you want to send a push notification to a production user, send the JSON payload to gateway.push.apple.com using the production certificate.

Submitting a Certificate Signing Request for Approval

I've looked at the "How To" docs provided in the Provisioning portal and under the "Submitting a Certificate Signing Request for Approval" link. It says that by clicking on Certificates > Development I can upload the CSR for approval but when I click on Certificates > Development I only can view the "Current Development Certificates" and "Team Signing Requests (0)".
Why can't I find a way to upload a CSR in the Provisioning Portal, Could it be that I dont have the right permissions I am using the companies login to the portal as they want the app to be submitted through their account.
The member I'm logging in with is the team agent (apparently), could this be causing the problem or is there something else i'm missing?
Thanks
Brett
Because your are login with the team agent credentials you see your team agent's development certificate. Because this certificate has not expire yet, you cannot upload a new CSR to create a new certificate. You have three different options to solve this problem, I will order them from the best to the worst :
Ask your team agent to register you as a new team member and, after login with your new credentials, create your own development certificate.
Download your team agent's development certificate and ask your team agent to export his development private key for you in order to use the certificate properly.
Revoke you team agent's development certificate and create a new one. You will have to export your new certificate and your new private key to other members of your team.
I hope this helps.

Some questions about push notificatons?

I am working with my first app for iphone and last part is push notifications. Its my first iphone app and firs time i am dealing with push notifications. In development phase everything is working fine. now i have some questions for productions phase.
Whats difference between Development push SSL certificate and
production push SSL certificate? Can i use the same certificate
which i used in development phase or do i have to buy a new
certificate?
I made an app on urban for production push notifications and used
its credentials in my source code. Is it enough or do i have to make
more changes at urban airship's app or in my source code?
I tried alot to find some kind of document or tutorial which shows
how to change development push notifications app to production push
notifications app. But unfortunately i couldn't find any. Can you
send me some tutorial or document which shows how to do that?
1- Whats difference between Development push SSL certificate and production push SSL certificate? Can i use the same certificate which i used in development phase or do i have to buy a new certificate?
Answer - There are two kind of push SSL certificates. Development and Production. Development push SSL certificate will only work if you attach your iPhone with your mac and directly compile on your device. When you use Development Push SSL certificate Apple's demo server will be used to send notifications. Whereas when you create the app file or .ipa file and install that on device you need to use production push SSL certificate. You can not mix and match these certificate.
2- I made an app on urban for production push notifications and used its credentials in my source code. Is it enough or do i have to make more changes at urban airship's app or in my source code?
Answer - Actually you just need to download production push SSL certificate from provision portal, export this certificate in .p12 file then then upload it to urbanairship. You don't need to change any code in your App.
3- I tried alot to find some kind of document or tutorial which shows how to change development push notifications app to production push notifications app. But unfortunately i couldn't find any. Can you send me some tutorial or document which shows how to do that?
Answer - follow this guide - http://urbanairship.com/docs/getting_started_ios_push.html
Edited to answer comment -
no you dont need to buy a new certificate. you can create multiple apps and their push ssl certificate from your developer account. See this image - http://urbanairship.com/docs/_images/apns-certificate.png .
Here are the instruction on how to create a push ssl certificate and export it.
1) Just create a new app and click on configure link.
2) Then click on "Enable for Apple Push Notification service ".
3) click on development or production configure certificate.
4) follow the instruction and download the push ssl certificate.
5) double click on it to install it in keychain access.
6) open keychain and locate this certificate, right click on it and select export.
7) choose a password and save the .p12 file.
8) you need to upload this file on urbanairship portal.
Note - you never need to change any code or also you dont need to put this certificate in your resource folder. This certificate needs to be send to apple server with your push notification(which urban air ship is doing).