apple push notifications - APNS certificate expiry date error with MobileFirst Platform 7.0 -
when deploying apns certificate in .wlapp file in mfp 7.0, i'm seeing null-pointer exception when validates end-date, though has one. ( openssl pkcs12 -in apns-certificate-sandbox.p12 | openssl x509 -noout -enddate
returns valid date in future). seems others have made work, i'm guessing must doing wrong...has else resolved similar issues valid apple push notification service certs failing deployed on mfp relevant lines log:
947: "com.ibm.worklight.admin.services.applicationservice e fwlse3000e: server error detected.", "948: com.ibm.worklight.admin.common.util.exceptions.validationexception: fwlse3119e: apns certificate validation failed. see additional messages details.", "949: @ com.ibm.worklight.admin.util.pushenvironmentutil.validateapnsconfiguration(pushenvironmentutil.java:232)", "950: @ com.ibm.worklight.admin.util.pushenvironmentutil.validatepushconfiguration(pushenvironmentutil.java:220)", [ ... lots more trace here .. ] "1030: caused by: java.lang.nullpointerexception", "1031: @ java.io.bytearrayinputstream.(bytearrayinputstream.java:117)", "1032: @ com.ibm.worklight.admin.util.pushenvironmentutil.getcertificateexpirydate(pushenvironmentutil.java:362)", "1033: @ com.ibm.worklight.admin.util.pushenvironmentutil.validateapnsconfiguration(pushenvironmentutil.java:230)",
initial hurdle .wlapp file not being built, no apns certificate in file (it in .zip format meta directory should hold .p12 file). underlying issue tag's password field in application-descriptor.xml wasn't right: following example "push notifications in ios applications" @ https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-0/notifications/push-notifications-native-ios-applications/ :
<pushsender password="apns-certificate-p12 password"/>
when should have password:
<pushsender password="password"/> </code></pre>
with file named either apns-certificate-sandbox.p12 or apns-certificate-production.p12 depending on server used.
double dumbass on me not checking official docs @ http://www-01.ibm.com/support/knowledgecenter/sshs8r_7.0.0/com.ibm.worklight.dev.doc/devref/c_the_application_descriptor.html , has described correctly.
moral: "when in doubt, rtfm"
Comments
Post a Comment