title: Azure Application Gateway Backend Setting Certificate error - ApplicationGatewayTrustedRootCertificateInvalidData
body: <p>I am trying to create a Backend Settings object during the Application Gateway using the portal interface. As part of this, it asks for the backend certificate. The backend certificate was issued internally within our organization. However it fails on validation with the following error -</p>
  <p>&quot;code&quot;: &quot;<strong>ApplicationGatewayTrustedRootCertificateInvalidData</strong>&quot;,</p>
  <p>&quot;message&quot;: &quot;Data for certificate /subscriptions/<em>subscription-id</em>/resourceGroups/<em>rgname</em>/providers/Microsoft.Network/applicationGateways/<em>new-gw-name</em>/trustedRootCertificates/<em>besname</em> is invalid.&quot;</p>
  <p>I have attempted using the X509 base64 encoded .cer version of the</p>
  <ol>
  <li>site certificate,</li>
  <li>combined cert with all intermediate certs, as well as,</li>
  <li>root certificate.</li>
  </ol>
  <p>But none of these work. All fail with the same error. Any idea on what is wrong?</p>
  <p>Thanks in advance!</p>