title: WSO2 EMM iOS enrollment error: "The Registration Authority's response is invalid"
body: <p>Setup WSO2 EMM server on a Mac (10.8). Created self-signed certificates according to the iOS server configuration guide:
  <a href="https://docs.wso2.org/display/EMM100/iOS+Server+Configurations" rel="nofollow">https://docs.wso2.org/display/EMM100/iOS+Server+Configurations</a></p>
  
  <p>Was able to successfully download and install the self-signed Root CA on iPad (iOS 7).
  However, getting error on iPad during WSO2 Profile Service installation:</p>
  
  <p>"Profile Installation Failed: The Registration Authority's response is invalid."</p>
  
  <p>Tried with both server domain name as well as IP address as the CN for certificates got the same error.</p>
  
  <p>There is no error log on the MDM server side.</p>
  
  <p>Here is the iOS error log:</p>
  
  <pre><code>Mar 18 11:55:09 XXXXX-iPad profiled[2191] &lt;Notice&gt;: (Error) MC: Cannot retrieve SCEP identity: NSError:
  Desc   : The Registration Authority’s response is invalid.
  US Desc: The Registration Authority’s response is invalid.
  Domain : MCSCEPErrorDomain
  Code   : 22003
  Type   : MCFatalError
  Mar 18 11:55:09 XXXXX-iPad profiled[2191] &lt;Notice&gt;: (Error) MC: Failure occurred while retrieving profile during OTA Profile Enrollment: NSError:
  Desc   : The Registration Authority’s response is invalid.
  US Desc: The Registration Authority’s response is invalid.
  Domain : MCSCEPErrorDomain
  Code   : 22003
  Type   : MCFatalError
  Mar 18 11:55:09 XXXXX-iPad profiled[2191] &lt;Notice&gt;: (Error) MC: Installation failed. Error: NSError:
  Desc   : Profile Installation Failed
  Sugg   : The Registration Authority’s response is invalid.
  US Desc: Profile Installation Failed
  US Sugg: The Registration Authority’s response is invalid.
  Domain : MCInstallationErrorDomain
  Code   : 4001
  Type   : MCFatalError
  ...Underlying error:
  NSError:
  Desc   : The Registration Authority’s response is invalid.
  US Desc: The Registration Authority’s response is invalid.
  Domain : MCSCEPErrorDomain
  Code   : 22003
  Type   : MCFatalError
  Extra info:
  {
     isPrimary = 1;
  }
  </code></pre>