我正在iOS上进行MDM设置,我们按照以下博客来设置MDM与iOS。我们已经创建了所有文件,当尝试在设备中安装配置文件时,它会抛出一个错误“服务器ceritifcate for url无效”。
网址:http://avibirnale.blogspot.in/2013/05/mdm-development-configuration-for-ios.html
请查看以下日志以详细查看错误
Oct 28 11:14:23 iPhone4S profiled[219] <Notice>: (Error) MC: Connection to https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin failed with error: NSError:
Desc : The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
US Desc: The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
Domain : MCHTTPTransactionErrorDomain
Code : 23002
Type : MCFatalError
Params : (
"https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin"
)
Oct 28 11:14:23 iPhone4S profiled[219] <Notice>: (Error) MDM: Cannot Authenticate. Error: NSError:
Desc : The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
US Desc: The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
Domain : MCHTTPTransactionErrorDomain
Code : 23002
Type : MCFatalError
Params : (
"https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin"
)
Oct 28 11:14:23 iPhone4S profiled[219] <Notice>: (Error) MC: Cannot install MDM “Mobile Device Management”. Error: NSError:
Desc : The payload “Mobile Device Management” could not be installed.
Sugg : The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
US Desc: The payload “Mobile Device Management” could not be installed.
US Sugg: The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
Domain : MCInstallationErrorDomain
Code : 4001
Type : MCFatalError
Params : (
"Mobile Device Management"
)
...Underlying error:
NSError:
Desc : The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
US Desc: The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
Domain : MCHTTPTransactionErrorDomain
Code : 23002
Type : MCFatalError
Params : (
"https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin"
)
Oct 28 11:14:23 iPhone4S profiled[219] <Notice>: (Error) MC: Rolling back installation of profile “com.Test.mdm.profile”...
Oct 28 11:14:23 iPhone4S profiled[219] <Notice>: (Error) MC: Installation of profile “com.Test.mdm.profile” failed with error: NSError:
Desc : The profile “Test MDM Profile” could not be installed.
Sugg : The payload “Mobile Device Management” could not be installed.
US Desc: The profile “Test MDM Profile” could not be installed.
US Sugg: The payload “Mobile Device Management” could not be installed.
Domain : MCProfileErrorDomain
Code : 1009
Type : MCFatalError
Params : (
"Test MDM Profile"
)
...Underlying error:
NSError:
Desc : The payload “Mobile Device Management” could not be installed.
Sugg : The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
US Desc: The payload “Mobile Device Management” could not be installed.
US Sugg: The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
Domain : MCInstallationErrorDomain
Code : 4001
Type : MCFatalError
Params : (
"Mobile Device Management"
)
...Underlying error:
NSError:
Desc : The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
US Desc: The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
Domain : MCHTTPTransactionErrorDomain
Code : 23002
Type : MCFatalError
Params : (
"https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin"
)
Oct 28 11:14:23 iPhone4S profiled[219] <Notice>: (Error) MC: Profile “com.Test.mdm.profile” failed to install with error: NSError:
Desc : Profile Failed to Install
Sugg : The profile “Test MDM Profile” could not be installed.
US Desc: Profile Failed to Install
US Sugg: The profile “Test MDM Profile” could not be installed.
Domain : MCInstallationErrorDomain
Code : 4001
Type : MCFatalError
...Underlying error:
NSError:
Desc : The profile “Test MDM Profile” could not be installed.
Sugg : The payload “Mobile Device Management” could not be installed.
US Desc: The profile “Test MDM Profile” could not be installed.
US Sugg: The payload “Mobile Device Management” could not be installed.
Domain : MCProfileErrorDomain
Code : 1009
Type : MCFatalError
Params : (
"Test MDM Profile"
)
...Underlying error:
NSError:
Desc : The payload “Mobile Device Management” could not be installed.
Sugg : The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
US Desc: The payload “Mobile Device Management” could not be installed.
US Sugg: The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
Domain : MCInstallationErrorDomain
Code : 4001
Type : MCFatalError
Params : (
"Mobile Device Management"
)
...Underlying error:
NSError:
Desc : The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
US Desc: The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
Domain : MCHTTPTransactionErrorDomain
Code : 23002
Type : MCFatalError
Params : (
"https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin"
)
Oct 28 11:14:24 iPhone4S Preferences[141] <Warning>: -[VPNConnectionStore reloadVPN]: The active VPN configuration has changed from to (null)
Oct 28 11:14:24 iPhone4S Preferences[141] <Warning>: -[VPNBundleController _vpnConfigurationChanged:] (0x15e531d0:<VPNBundleController: 0x15e531d0>): _serviceCount(0), serviceCount(0), toggleInRootMenu(0), RootMenuItem(1)
Oct 28 11:14:24 iPhone4S profiled[219] <Error>: __MKBAssertionFinalize: __MKBAssertionFinalize(0x14565fa0)
Oct 28 11:14:24 iPhone4S profiled[219] <Notice>: (Error) MC: Installation failed. Error: NSError:
Desc : Profile Installation Failed
Sugg : Profile Failed to Install
US Desc: Profile Installation Failed
US Sugg: Profile Failed to Install
Domain : MCInstallationErrorDomain
Code : 4001
Type : MCFatalError
...Underlying error:
NSError:
Desc : Profile Failed to Install
Sugg : The profile “Test MDM Profile” could not be installed.
US Desc: Profile Failed to Install
US Sugg: The profile “Test MDM Profile” could not be installed.
Domain : MCInstallationErrorDomain
Code : 4001
Type : MCFatalError
...Underlying error:
NSError:
Desc : The profile “Test MDM Profile” could not be installed.
Sugg : The payload “Mobile Device Management” could not be installed.
US Desc: The profile “Test MDM Profile” could not be installed.
US Sugg: The payload “Mobile Device Management” could not be installed.
Domain : MCProfileErrorDomain
Code : 1009
Type : MCFatalError
Params : (
"Test MDM Profile"
)
...Underlying error:
NSError:
Desc : The payload “Mobile Device Management” could not be installed.
Sugg : The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
US Desc: The payload “Mobile Device Management” could not be installed.
US Sugg: The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
Domain : MCInstallationErrorDomain
Code : 4001
Type : MCFatalError
Params : (
"Mobile Device Management"
)
...Underlying error:
NSError:
Desc : The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
US Desc: The server certificate for “https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin” is invalid.
Domain : MCHTTPTransactionErrorDomain
Code : 23002
Type : MCFatalError
Params : (
"https://ec2-54-172-70-197.compute-1.amazonaws.com/MDM_Server/mdm/checkin"
)
Oct 28 11:14:25 iPhone4S mc_mobile_tunnel[218] <Notice>: (Note ) MC: mc_mobile_tunnel shutting down.
答案 0 :(得分:0)
我通过在该配置文件的Credentials有效内容中上传server.p12和server.crt来修复此问题。