2

I uploaded my SSL certificate in the section of my custom domain in the space of my organization. I linked the domain with my application and I have created the CNAME record in my DNS to my broken app xxxxx-gb.bluemix.net .eu.

enter image description here

When I try to reach my application through my domain custom, I served me the Bluemix certificate and not mine. enter image description here

I tried to add a proxy on my server (NodeJS) but the situation does not change.

 app.enable('trust proxy');
 app.use(function (req, res, next) {
        if (req.secure) {
                // request was via https, so do no special handling
                next();
        } else {
                // request was via http, so redirect to https
                res.redirect('https://' + req.headers.host + req.url);
        }
  });

How can I fix the problem ? I need my certificate, to call my API, from my mobile application, it is the certificate must necessarily be mine and then TRUSTED

4

1 回答 1

2

您需要将 映射CNAME到您正在使用的 Bluemix 区域的安全端点,在您的情况下应该是secure.eu-gb.bluemix.net.

当收到来自您的自定义域的请求时,Bluemix 会在内部将其映射到您的应用程序。

下面的文档链接中的更多详细信息:

https://new-console.ng.bluemix.net/docs/manageapps/updapps.html#domain

于 2016-06-23T12:11:21.793 回答