CloudHub HTTPS endpoint not working

3k views Asked by At

I have set up an HTTPS endpoint for my mulesoft flow which is working great in local.

https://'localhost':8081/customerquote

Once I deploy it on CloudHub I am not able to contact the url using https, the URL looks like https://myappname.cloudhub.io/customerquote it is responding only in HTTP reporting an SSL handshake error of course.

Already tried to switch the endpoint port to 443 or 8443 without any results.

Any Idea ?

3

There are 3 answers

0
Andrea M. On BEST ANSWER

I did copy the exactly example reported here and it worked

http://www.mulesoft.org/documentation/display/current/Building+an+HTTPS+Service

3
Seba On

You need to use properties placeholders when you're deploying to CloudHub:
http://www.mulesoft.org/documentation/display/current/Developing+a+CloudHub+Application

If your application requires an externally accessible HTTP or HTTPS port to receive messages, trigger events, or expose a web service or user interface, you must declare the port using the reserved property ${http.port} or ${https.port}. On CloudHub, port ${http.port} or ${https.port} is assigned automatically by the platform services. Traffic on port 80 to your application domain URL will be routed to this port.

0
srikrishna sri On

An HTTPS listener requires a TLS configuration.

Please refer this link https://developer.mulesoft.com/docs/display/current/Building+an+HTTPS+Service