SSL的Java代码无法识别SAN

时间:2017-03-28 06:06:41

标签: java ssl

我有一个像xyx.com这样的域名,我也创建了一个子域名,例如dev.xyz.net

我们从权威机构购买了3个子域SSL证书,并在子域中添加了dev.xyz.net

我们的网站托管在Azure上,我将证书附在其上。

然后,我们尝试从Java代码和REST API对REST API进行API调用。但是我们不断收到这个错误:

I/O error on POST request for (https) xyz.net: Certificate for <xyz.net> doesn't match any of the subject alternative names: [*.azurewebsites.net, *.scm.azurewebsites.net, *.azure-mobile.net, *.scm.azure-mobile.net]; nested exception is javax.net.ssl.SSLException: Certificate for <xyz.net> doesn't match any of the subject alternative names: [*.azurewebsites.net, *.scm.azurewebsites.net, *.azure-mobile.net, *.scm.azure-mobile.net]

我不确定上述含义是什么?我如何添加azure作为子域?

0 个答案:

没有答案
相关问题