In my first Dynamics 365 for Operations project we had to implement an integration between the Azure hosted Dynamics 365 for Operations Retail Server and an on premise web api server (for more information on the overall Retail Topology do refer this link MPOS Technical Architecture).
The integration worked fine in our Development environment but when promoted to UAT sandbox the integration broke with the following error
“Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.”
and initially we could not understand why, after some investigation we could find out the cause being that Dynamics 365 for Operations configuration enforced a TLS 1.2 protocol while the destination server supported only TLS 1.0 and 1.1.
The following resources were very helpful to arrive at the conclusion
https://docs.microsoft.com/en-us/dynamics365/unified-operations/retail/retail-peripherals-overview
https://blogs.perficient.com/microsoft/2016/04/tsl-1-2-and-net-support/
Last but not the least, an excellent resource was the following link by John Louros.
https://www.johnlouros.com/blog/disabling-cryptographic-protocols-for-pci-compliance
In this blog, John has provided a nifty console application which was extremely helpful in understanding what was going wrong in the integration, by trying all combinations of TLS protocols between the source and destination it lets you know which protocol is supported and which one is not.
-Hitesh Manglani