未考虑我的nodejs应用程序SSL证书(IBM CLOUD) [英] My nodejs app SSL certificate is not taken into account (IBM CLOUD)

查看:74
本文介绍了未考虑我的nodejs应用程序SSL证书(IBM CLOUD)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ibm云上有一个nodejs Web应用程序:MYAPP.eu-de.mybluemix.net。

我希望可以通过 https://MYSUB.MYDOMAIN.IO

我拥有MYDOMAIN.IO,并将此CNAME条目添加到了我的dns提供程序中:MYSUB.MYDOMAIN .IO。 0 CNAME MYAPP.eu-de.mybluemix.net。

我购买了SUB.MYDOMAIN.IO的证书,在我的组织中添加了域,并上传了证书。请注意,这不是通配符。我很早以前就读过,bluemix只接受通配符,但是我可以上传单个证书而不会出现问题。

我还添加了到应用程序的路由,因此在设置中有2条路由,都带有绿色的挂锁:

MYAPP.eu-de.mybluemix.net

MYSUB.MYDOMAIN.IO

I have one nodejs web app on ibm cloud: MYAPP.eu-de.mybluemix.net.
I want it to be reachable over https on https://MYSUB.MYDOMAIN.IO
I own MYDOMAIN.IO, and added this CNAME entry in my dns provider: MYSUB.MYDOMAIN.IO. 0 CNAME MYAPP.eu-de.mybluemix.net.
I purchased a certificate for SUB.MYDOMAIN.IO added the domain in my organisation, and uploaded the certificate. Note it is not a wildcard. I read that long ago bluemix only accepted wildcards, but I could upload my single certificate without issue.
I also added the route to the app so I have 2 routes in the settings, both with the padlock green:
MYAPP.eu-de.mybluemix.net
MYSUB.MYDOMAIN.IO

毕竟,当我导航时到 https://SUB.MYDOMAIN.IO ,我最终进入应用程序页面(重定向工作),但我得到安全警告,因为证书仍然是bluemix之一,而不是我的。

我在做什么错了??

After all this, when I navigate to https://SUB.MYDOMAIN.IO, I end up on the app page (redirection working), BUT I get the security warning because the certificate is still the one of bluemix, not mine.
What am I doing wrong???

推荐答案

在经过过时的ibm doc游泳之后,它得到了排序,我发现要使用自定义域,DNS配置应该是特定域名的CNAME。就我而言,是
,不是 MYAPP.eu-de.mybluemix.net ,而是 MYAPP.eu-de.cf.appdomain.cloud

ok got it sorted after swimming in an ocean of outdated ibm doc, I found that to use custom domain, the DNS config should be a CNAME to a specific domain name. in my case, not MYAPP.eu-de.mybluemix.net but MYAPP.eu-de.cf.appdomain.cloud

此URL始终在可用域列表中,但是很难找到它的用途。

This URL was always there in the list of available domain, but it was hard to find its use.

https://cloud.ibm.com/docs/apps?topic=creating-apps-ssl_csr#ssl_csr?cm_mmc=TonyErwin- -Data - -WW_WW -_- SSLCerts

https://cloud.ibm.com/docs/apps?topic=creating-apps-ssl_csr#ssl_csr?cm_mmc=TonyErwin--Data--WW_WW-_-SSLCerts

这篇关于未考虑我的nodejs应用程序SSL证书(IBM CLOUD)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆