Openshift Gear to test correct information about secured connection propagation to standard request.isSecure() method.
Standard way how to get information if request is on secured connection is request.isSecure().
Try to deploy this app on Openshift and visit https://{deployed app url}/requestinfo.jsp to see if request.isSecure() return true or false.
Initial discussion in this forum thread.