【问题标题】:The server ceritifcate for "url" is invalid, working on MDM in iOS“url”的服务器证书无效,在 iOS 中的 MDM 上工作
【发布时间】:2014-10-28 05:59:26
【问题描述】:

我正在 iOS 上进行 MDM 设置,我们按照以下博客在 iOS 上设置 MDM。我们已经创建了所有文件,当尝试在设备中安装配置文件时,它会抛出错误“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.

【问题讨论】:

  • 如果你会阅读你提到的那篇博文,你可以在博文下面找到解决方案:错误#1
  • @SharonNathaniel:我们这样做了,目前我们只使用 JKS 文件。

标签: ios ssl https mdm


【解决方案1】:

我通过在该配置文件的凭据有效负载中上传 server.p12 和 server.crt 来解决此问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-06-01
    • 2013-09-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-01
    相关资源
    最近更新 更多