我正在做一个MDM供应商设置,并在完成所有步骤之后为same.But设置苹果企业帐户,当我试图在iPhone.We上安装iPhone配置实用程序文件时遇到问题时,收到警告说“配置文件安装失败”.Please提示您怀疑wrong.Following可能是我创建配置文件时遵循的步骤。
供应商的:
vendor.csr的厂商csr。
电子邮件:我的企业帐户电子邮件。
共同名称:我的公司名称。
保存到磁盘上。vendor.csr文件上载到企业帐户,并从帐户下载mdm.cer文件。private.p12文件。openssl pkcs12 -in private.p12 -nocerts -out key.pemopenssl pkcs12 -in private.p12 -clcerts -nokeys -out cert.pemopenssl x509 -in cert.pem -inform PEM -out mdm.cer -outform DES8.从私钥中删除密码:openssl rsa -in key.pem -out private.key
客户:
Python代码:
链接:https://github.com/grinich/mdmvendorsign
我从上面的链接中获得python代码,从上面生成的文件中获取plist编码文件,即private.key, push.csr, mdm.cer.I根据下面的命令重命名我的文件,并生成一个plist编码文件。
命令: python mdm_vendor_sign.py --csr user_submitted_CSR.csr --key mdm_vendor_private.key --mdm mdm_certifiate_from_apple.cer
推送证书:
iPhone配置实用程序:
我实现了iPCU的三个部分。对于服务器设置,我使用RapidSSL来设置服务器。
导出iPCU -> None/SignConfigurationProfile (尝试两者兼而有之)。
现在,当我通过邮件发送该文件时,该文件无法在设备上安装,而且我从日志中了解到该设备无法连接到failed.What,这说明我如何解决这个问题。
设备日志:
Nov 27 19:02:21 iPhone profiled[114] <Notice>: (Note ) MC: Checking for MDM installation...
Nov 27 19:02:21 iPhone profiled[114] <Notice>: (Note ) MC: ...finished checking for MDM installation.
Nov 27 19:02:21 iPhone profiled[114] <Notice>: (Note ) MC: Beginning profile installation...
Nov 27 19:02:21 iPhone profiled[114] <Error>: SecTrustEvaluate [leaf AnchorTrusted]
Nov 27 19:02:23 iPhone locationd[63] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Nov 27 19:02:24 iPhone locationd[63] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Nov 27 19:02:24 iPhone profiled[114] <Error>: SecTrustEvaluate [leaf AnchorTrusted]
Nov 27 19:02:26 iPhone profiled[114] <Notice>: (Error) MDM: Cannot Authenticate. Error: NSError:
Desc : A connection to the server could not be established.
US Desc: A connection to the server could not be established.
Domain : MCHTTPTransactionErrorDomain
Code : 23001
Type : MCFatalError
Params : (
"https://mdm.myCompanyName.com/Service1.svc",
500
)
Nov 27 19:02:26 iPhone profiled[114] <Notice>: (Error) MC: Cannot install MDM “Mobile Device Management”. Error: NSError:
Desc : The payload “Mobile Device Management” could not be installed.
Sugg : A connection to the server could not be established.
US Desc: The payload “Mobile Device Management” could not be installed.
US Sugg: A connection to the server could not be established.
Domain : MCInstallationErrorDomain
Code : 4001
Type : MCFatalError
Params : (
"Mobile Device Management"
)
...Underlying error:
NSError:
Desc : A connection to the server could not be established.
US Desc: A connection to the server could not be established.
Domain : MCHTTPTransactionErrorDomain
Code : 23001
Type : MCFatalError
Params : (
"https://mdm.myCompanyName.com/Service1.svc",
500
)
Nov 27 19:02:26 iPhone profiled[114] <Notice>: (Error) MC: Rolling back installation of profile “com.myCompanyName.mdm.profile”...
Nov 27 19:02:26 iPhone profiled[114] <Notice>: (Error) MC: Installation of profile “com.myCompanyName.mdm.profile” failed with error: NSError:
Desc : The profile “myCompanyName” could not be installed.
Sugg : The payload “Mobile Device Management” could not be installed.
US Desc: The profile “myCompanyName” could not be installed.
US Sugg: The payload “Mobile Device Management” could not be installed.
Domain : MCProfileErrorDomain
Code : 1009
Type : MCFatalError
Params : (
"myCompanyName"
)发布于 2014-12-12 23:06:42
您从Apple用MDM供应商证书生成的证书不用于设备身份验证。它用于特定服务器向APN发送通知。
iPCU中的标识(很久以前就被废弃了)是用于客户端证书的。还请记住,所有TLS证书都必须是有效的和可信的。您的服务器正在使用HTTP 500拒绝客户机,因此我将开始研究服务器日志的原因。
尽管如此,如果您正在开发自己的MDM解决方案,我会与苹果( Apple )发生DTS事件。API文档只发布给中的人员,不公开。而不是在这里,MDM部分的苹果开发者论坛可能是一个更好的地方讨论它。
https://stackoverflow.com/questions/27172802
复制相似问题