Problem Statement:
Whenever you are using IIS ARR with URL Rewrite for Reverse proxy.
HTTPS to HTTPS. You might receive following error.
Error: IIS 7.5 Detailed Error - 502.3 - Bad Gateway security error code 0x80072f8f
Casue of Problem:
IIS where you configured ARR it doesn't trust the BackEnd IIS Server certificate.
Solution:
Please export the Back End IIS Server certificate and Import it into IIS-ARR local machine under
Trusted Store.
Reference: http://blog.lint.at/iis-as-reverseproxy-with-ssl-offloading/