MDM:如何使用APNS证书

4
我已经使用iOS企业开发者帐户收到了APNS证书,该证书格式为.pem。我们从门户网站https://identity.apple.com/pushcert/下载了此mdm证书。
我参考了2011_THE iOS MDM协议文档,用于MDM服务器实现。我能够获得pushmagic和设备标记。
我正在使用“2011_THE iOS MDM Protocol”文档中提供的以下代码作为server.py文件。
class queue_cmd: def GET(self):
global current_command, last_sent global my_DeviceToken, my_PushMagic 
i = web.input() cmd = i.command
cmd_data = mdm_commands[cmd] 
cmd_data['CommandUUID'] = str(uuid.uuid4()) 
current_command = cmd_data last_sent = pprint.pformat(current_command)
wrapper = APNSNotificationWrapper('PlainCert.pem', False) 
message = APNSNotification() 
message.token(my_DeviceToken) 
message.appendProperty(APNSProperty('mdm', my_PushMagic))   
wrapper.append(message)
wrapper.notify()

现在我想知道,我应该使用从门户网站https://identity.apple.com/pushcert/下载的APNS证书,通过在我们的server.py代码中将其重命名为"PlainCert.pem",还是应该通过其他方式生成"PlainCert.pem"?
2个回答

3

1

我为 MDM 生成了推送证书。它的主题有效。当在钥匙串存储中查看时,显示“此证书由未知机构签名”。它也没有关联的私钥。有任何想法出了什么问题吗? - Sahil Khanna

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接