-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Certificate should contain "push" keyword #46
Comments
Out of curiosity, what does your certificate’s CN say? Please mask out the bundle ID, team ID and anything else that’s sensitive.
… On 20 Jun 2018, at 19:52, rohitsahay2000 ***@***.***> wrote:
Hi,
The apns cert that we are using to send notification doesn't contain"push" keyword for CN. You have a check present for "push" keyword while validating the certificate and there are many others where you check specific strings to be present in the apns cert.
Due to this issue we are not able send notifications because cert validation fails. Please help what we can do here.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
That's not the point. All sensitive information is masked out. Why the strings are hardcoded ? ` if (!cn.toLowerCase().contains("push")) {
` The certs need not contain the strings that are hardcoded in the cert validation which is being done. |
CN is like this: CN=APSP:0226d278-d925-4044-af07-a346da05e2c5/C=IN As you can see this doesn't contain any strings against which validation is being done. For example: "push", "apple development ios push services","apple production ios push services". Please let us know what we can do to get this working. Would be a great help!! |
@rohitsahay2000 Until now, all the certificates issued by Apple have contained those strings. It validates the certificate and ensures that you don't accidentally try to use your developer certificate (which has happened many times in the past). I'll issue a new certificate for APNs tomorrow and check the CN on it. |
@judepereira : Did you check? Have we removed the hardcoding? |
any update on this? I just downloaded a production certificate and it has CN=Apple Development IOS Push Services: myBunldleId I doubled checked. It is the production certificate and it has development in it. |
VoIP Push certification not working... |
hi |
It would be great to be able to change behavior with some boolean flag. (include verifying or not) |
Hi,
The apns cert that we are using to send notification doesn't contain"push" keyword for CN. You have a check present for "push" keyword while validating the certificate and there are many others where you check specific strings to be present in the apns cert.
Due to this issue we are not able send notifications because cert validation fails. Please help what we can do here.
The text was updated successfully, but these errors were encountered: