mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
New APNS updating cert instructions.
This commit is contained in:
parent
e6c26a78ac
commit
c70d08b384
1 changed files with 3 additions and 2 deletions
|
@ -306,14 +306,15 @@ class MUserFeedNotification(mongo.Document):
|
||||||
|
|
||||||
tokens = MUserNotificationTokens.get_tokens_for_user(self.user_id)
|
tokens = MUserNotificationTokens.get_tokens_for_user(self.user_id)
|
||||||
# To update APNS:
|
# To update APNS:
|
||||||
|
# 0. Upgrade to latest openssl: brew install openssl
|
||||||
# 1. Create certificate signing request in Keychain Access
|
# 1. Create certificate signing request in Keychain Access
|
||||||
# 2. Upload to https://developer.apple.com/account/resources/certificates/list
|
# 2. Upload to https://developer.apple.com/account/resources/certificates/list
|
||||||
# 3. Download to secrets/certificates/ios/aps.cer
|
# 3. Download to secrets/certificates/ios/aps.cer
|
||||||
# 4. Open in Keychain Access:
|
# 4. Open in Keychain Access, Under "My Certificates":
|
||||||
# - export "Apple Push Service: com.newsblur.NewsBlur" as aps.p12 (or just use aps.cer in #5)
|
# - export "Apple Push Service: com.newsblur.NewsBlur" as aps.p12 (or just use aps.cer in #5)
|
||||||
# - export private key as aps_key.p12 WITH A PASSPHRASE (removed later)
|
# - export private key as aps_key.p12 WITH A PASSPHRASE (removed later)
|
||||||
# 5. openssl x509 -in aps.cer -inform DER -out aps.pem -outform PEM
|
# 5. openssl x509 -in aps.cer -inform DER -out aps.pem -outform PEM
|
||||||
# 6. openssl pkcs12 -nocerts -out aps_key.pem -in aps_key.p12
|
# 6. openssl pkcs12 -in aps_key.p12 -out aps_key.pem -nodes -legacy
|
||||||
# 7. openssl rsa -out aps_key.noenc.pem -in aps_key.pem
|
# 7. openssl rsa -out aps_key.noenc.pem -in aps_key.pem
|
||||||
# 7. cat aps.pem aps_key.noenc.pem > aps.p12.pem
|
# 7. cat aps.pem aps_key.noenc.pem > aps.p12.pem
|
||||||
# 8. Verify: openssl s_client -connect gateway.push.apple.com:2195 -cert aps.p12.pem
|
# 8. Verify: openssl s_client -connect gateway.push.apple.com:2195 -cert aps.p12.pem
|
||||||
|
|
Loading…
Add table
Reference in a new issue