Apple Push Services created instead of Apple Produ

2019-01-22 02:09发布

问题:

I'm trying to create a certificate for Production iOS Push Services. Instead I get an Apple Push Services. How can I create a dedicated Apple Production iOS Push Services certificate?

The top certificate is what I used to get. The bottom one is what I now get.

I use Pusher application to test my push notifications certificate and it cannot read the p12 of the new Apple Push Services.

回答1:

Apple have changed the name of the certificate that is issued. You can now use the same certificate for both development and production. While you can still request a development only certificate you can no longer request a production only certificate.

Since the purpose of the certificate is no longer production only Apple has changed the common name to Apple Push Services. The functionality of the certificate is not affected.

Unfortunately services that validate the CN of the certificate may reject this new name. There is nothing you can do about this until the service updates its verification code. For example, Parse.com had this issue a few days ago but their verification code has now been updated and they will now accept the new certificate name.



回答2:

Apple Change Apple Production IOS Push Services cert name to Apple Push Services if you used pushsharp , you need go to github https://github.com/v-tsymbalistyi/PushSharp download zip and used visual studio recombile because the code change if (production && !subjectName.Contains("Apple Production IOS Push Services") && !subjectName.Contains("Apple Push Services")) throw new ArgumentException("You have selected the Production server, yet your Certificate does not appear to be the Production certificate! Please check to ensure you have the correct certificate!");

            if (!production && !subjectName.Contains("Apple Development IOS Push Services") && !subjectName.Contains("Pass Type ID"))
                    throw new ArgumentException("You have selected the Development/Sandbox (Not production) server, yet your Certificate does not appear to be the Development/Sandbox certificate!  Please check to ensure you have the correct certificate!");            

and you just copy PushSharp.Apple.dll to server then everything OK



回答3:

  1. Login Apple Developer Account.
  2. In Member Center -> click Certificates, Identifiers & Profiles
  3. Choose IOS apps
  4. In Certificates -> click add new(+)
  5. There you can see Apple Push Notification service SSL (Sandbox) [for development] and Apple Push Notification service SSL (Sandbox & Production)
  6. To click on continue , choose Appid(bundle id)
  7. Need to continue. This have the demo to generate csr
  8. Add CSR file
  9. Then it generate APNs. Put the name for it.

Note: You can generate APNS for Development through Apple Push Notification service SSL and Production for Apple Push Notification service SSL (Sandbox & Production).



回答4:

Then click on you App Id in developer account App ID -> Edit -> you will get development and production ssl certificate mode.

Then upload your CSR file=> download aps_production.cer

Then use This link to create PEM file (Which used on server)

There is one simplepush.php file you can test from your mac cmd.

Hope this will help.