<please note the following, after resolved can be used as "how to" document>
Before writing what errors I get let me say
I am having trouble understanding the process
Let's assume I have 2 different apps
both apps need to use APN for develop and production
let me explain what I did:
on first app:
1. Created 2 IOS certificates, 1 for dev and 1 for production, this created the files:
ios_development
ios_distribution
2. Created app id, choose push notification, from the app id - edit, I created 2 certificates 1 for dev 1 for production. so now in app id I see "green light" for dev and for production.
this created 2 APS certificates:
aps_development.cer
aps_production.cer
3. Created 2 provision profiles type "APN's" 1 for dev, 1 for production, this created the files:
App1Dev.mobileprovision
App1Prod.mobileprovision
4. I also have
b4i.p12
b4i.keystore
certSigningRequest.csr
Total 9 files.
5. on app code I wrote:
#CertificateFile: ios_development.cer
#ProvisionFile: App1Dev.mobileprovision
#If RELEASE
#CertificateFile: ios_distribution.cer
#ProvisionFile: App1Prod.mobileprovision
* I must use ios cer, since getting error if trying to use aps certificates
6. Compiling debug mode, looks ok
7. Trying to create "Push Keystore" getting error:
"There should be exactly one aps certificate file" - WHY?
8. temporary removing aps_development.cer (not sure if this is ok or not, if so how can it work in debug mode)
trying again to create "Push Keystore" getting error:
"error creating key: error: No certificate matches private key" - WHY?
9. temporary removing aps_production.cer (so how can it work in production mode?)
trying again to create "Push Keystore" - this is OK
but will it work on production?
-------- Second app -------
1. Changed key folder app to app2
2. Copied:
ios_development
ios_distribution
b4i.p12
b4i.keystore
certSigningRequest.csr
since as I understand it, the ios certificates is my ios certificates that need to be used on all my apps
3. created 2 aps, as described above app1 section #2
4. created 2 provisions, as described above app1 section #3
5. added code:
#CertificateFile: ios_development.cer
#ProvisionFile: App2Dev.mobileprovision
#If RELEASE
#CertificateFile: ios_production.cer
#ProvisionFile: App2Prod.mobileprovision
#End If
6. Compiling debug mode, looks ok
7. temporary removing aps_production.cer OR aps_development.cer as described on app1 section#8, #9
8. Trying to create "Push Keystore" - getting error on both tries:
"error creating key: error: No certificate matches private key"
so I am unable to create "Push Keystore" for second app
Please address all open questions here
Thanks
Before writing what errors I get let me say
I am having trouble understanding the process
Let's assume I have 2 different apps
both apps need to use APN for develop and production
let me explain what I did:
on first app:
1. Created 2 IOS certificates, 1 for dev and 1 for production, this created the files:
ios_development
ios_distribution
2. Created app id, choose push notification, from the app id - edit, I created 2 certificates 1 for dev 1 for production. so now in app id I see "green light" for dev and for production.
this created 2 APS certificates:
aps_development.cer
aps_production.cer
3. Created 2 provision profiles type "APN's" 1 for dev, 1 for production, this created the files:
App1Dev.mobileprovision
App1Prod.mobileprovision
4. I also have
b4i.p12
b4i.keystore
certSigningRequest.csr
Total 9 files.
5. on app code I wrote:
#CertificateFile: ios_development.cer
#ProvisionFile: App1Dev.mobileprovision
#If RELEASE
#CertificateFile: ios_distribution.cer
#ProvisionFile: App1Prod.mobileprovision
* I must use ios cer, since getting error if trying to use aps certificates
6. Compiling debug mode, looks ok
7. Trying to create "Push Keystore" getting error:
"There should be exactly one aps certificate file" - WHY?
8. temporary removing aps_development.cer (not sure if this is ok or not, if so how can it work in debug mode)
trying again to create "Push Keystore" getting error:
"error creating key: error: No certificate matches private key" - WHY?
9. temporary removing aps_production.cer (so how can it work in production mode?)
trying again to create "Push Keystore" - this is OK
but will it work on production?
-------- Second app -------
1. Changed key folder app to app2
2. Copied:
ios_development
ios_distribution
b4i.p12
b4i.keystore
certSigningRequest.csr
since as I understand it, the ios certificates is my ios certificates that need to be used on all my apps
3. created 2 aps, as described above app1 section #2
4. created 2 provisions, as described above app1 section #3
5. added code:
#CertificateFile: ios_development.cer
#ProvisionFile: App2Dev.mobileprovision
#If RELEASE
#CertificateFile: ios_production.cer
#ProvisionFile: App2Prod.mobileprovision
#End If
6. Compiling debug mode, looks ok
7. temporary removing aps_production.cer OR aps_development.cer as described on app1 section#8, #9
8. Trying to create "Push Keystore" - getting error on both tries:
"error creating key: error: No certificate matches private key"
so I am unable to create "Push Keystore" for second app
Please address all open questions here
Thanks