i trying send push notifications iphone via python described here getting following error:
traceback (most recent call last): file "<console>", line 1, in <module> file "/home/omat/ca/server/ca/models.py", line 193, in push c.connect((host_name, 2195)) file "/usr/lib/python2.6/ssl.py", line 307, in connect self.ca_certs) sslerror: [errno 336265225] _ssl.c:337: error:140b0009:ssl routines: ssl_ctx_use_privatekey_file:pem lib
the error raised within python ssl module traceback says message doesn't sing me. ideas on might wrong?
thanks,
omat
edit:
the certificate used created certificate , private key follows:
openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12 openssl pkcs12 -nocerts -out apns-dev-key.pem -in apns-dev-key.p12 cat apns-dev-cert.pem apns-dev-key.pem > apns-dev.pem
here how working:
from within keychain export following both in p12
format, without giving password:
apple development push services
certificatecert.p12
primary key
underapple development push services
pkey.p12
in terminal go directory have exported certificates , convert p12
files pem
format , concatenate them follows:
$ openssl pkcs12 -in pkey.p12 -out pkey.pem -nodes -clcerts $ openssl pkcs12 -in cert.p12 -out cert.pem -nodes -clcerts $ cat cert.pem pkey.pem > iphone_ck.pem
iphone_ck.pem
certificate need.
Comments
Post a Comment