Connecting to APNS for iPhone Using Python -
I'm trying to use push notifications to use Python in the iPhone. I have exported my certificate and private key to a p12 file fromChicon Access and then converted it to a PAM file using the following command:
openssl Pkcs12 -in cred P12 -out cert.pem -nodes -clcerts
I'm using Python for connection.
I run the following code:
deviceToken = 'kun \ xaa \ xd ... c0 \ x9c \ xf6 \ xca' # wrap the wrapper = APNS Notification Wrapper ('/ Path / To / cert / cert.pem ', True) # Make message message = APNSNotification () message.token (deviceToken) message.badge (5) # Add message and send for API server wrapper.Apend notify (message) wrapper And then I get the error message:ssl.SSLError: (1, '_ssl.c: 485: error: 140 9 4416: SSL routine: SSL3_READ_BYTES: Sslv3 warning certificate unknown ')Can anyone help me on this Is received?
I have recently done using Django -
can be useful is? It is not already using any other additional libraries included with Python Send_message () Do not take more to remove the method.
Comments
Post a Comment