A certificate chain could not be built to a trusted root authority.

LSRetailPosis.TransactionServices.EstablishConnection: System.ServiceModel.Security.SecurityNegotiationException: The X.509 certificate CN=TSServerCert chain building failed. The certificate that was used has a trust chain that cannot be verified. Replace the certificate or change the certificateValidationMode. A certificate chain could not be built to a trusted root authority.
—> System.IdentityModel.Tokens.SecurityTokenValidationException: The X.509 certificate CN=TSServerCert chain building failed. The certificate that was used has a trust chain that cannot be verified. Replace the certificate or change the certificateValidationMode. A certificate chain could not be built to a trusted root authority.

Im using Self Signed Certificate at IIS, while accessing Inventory look up in Retail POS above is generated. Right now MS Dynamics 2012 R2 server and Retail POS client is installed on the same machine. I did try to import certificate in Trusted Root Certificate Authority but in vain.

I also faced the similiar problem :

Microsoft.Dynamics.Retail.Pos.SalesOrder.SalesOrder: System.IdentityModel.Tokens.SecurityTokenValidationException: The X.509 certificate CN=retail.contoso.com, OU=IT, O=IT, L=Bellevue, S=WA, C=US chain building failed. The certificate that was used has a trust chain that cannot be verified. Replace the certificate or change the certificateValidationMode. The revocation function was unable to check revocation because the revocation server was offline.

Anyone solution ?