Tomcat SSL证书地址不匹配

时间:2018-08-01 10:48:35

标签: java ssl ssl-certificate virtualhost tomcat8

在tomcat 8中,我们有2个应用程序在2个虚拟主机中运行

If ((Split-Path -Leaf (Split-Path $script:MyInvocation.MyCommand.Path)) -match '^(\d+) (.*)$'){
    $NewName = "{0:00000} - {1}" -f $Matches[1],$ExtractedFileName
} else {
    "No numbers found in this path"
}

我为每个域都有2个pxf格式的SSL证书。我将两个pfx文件都以不同的别名(ga1server,ga2server)导入了JKS中。

Tomcat启动,我可以通过HTTP访问https://ga1.mydomain.com,但是当我尝试访问https://ga2.mydomain.com时,出现地址不匹配错误

如果我先导入ga2域证书,然后再第二次在JKS中导入,则https://ga2.mydomain.com有效,而https://ga1.mydomain.com则抛出不匹配的错误

如何解决此问题。

0 个答案:

没有答案