2014-04-17 220 views
0

我试图连接一个安装在OSX机器上的Jaspersoft Studio 5.5在SSL下运行的JasperServer 5.5。我得到的错误:OSX Jaspersoft Studio SSL握手

javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIX路径建设失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到有效的认证路径要求目标

这个wiki Using SSL certificate in Jaspersoft Studio 5.5解释了如何通过将证书添加到Jaspersoft Studio专有持有者的安全证书中来解决问题,在已包括的JRE中,确切的位置在链接中。但它没有奏效。也许这只是Windows安装的解决方案。

最后经过这么多的努力,我在默认的java文件夹中安装了SSL证书,它工作。

/Library/Java/Home/lib/security 

尽管过程有效,但我想确保这是正确的方式,因此我可以将其应用于其他机器。

问:

  • 这是安装了碧玉工作室证书的正确方法吗?
  • Jasper Studio是否在OSX中运行时忽略其包含的JRE安装?

如果有人想知道我是如何创建和安装证书:

使用本网站http://miteff.com/install-cert下载IntallCert java应用程序并执行对服务器。

java InstallCert server.domain.com 

这将连接到您的SSL网站并创建证书文件。询问更多数据时,请按Enter键。

它会创建jssecacerts文件。将此文件复制到文件夹/Library/Java/Home/lib/security

现在您将能够从Jaspersoft Studio访问您的SSL JasperServer。

回答

0

我提出的解决方案是迄今为止最好的答案。

Using this website http://miteff.com/install-cert download the IntallCert java application and execute it against the server.

java InstallCert server.domain.com

This will connect to your SSL website and create the certificate file. Just press Enter when asked for more data.

It will create the jssecacerts file. Copy this file to the folder /Library/Java/Home/lib/security

Now you will be able to access your SSL JasperServer from Jaspersoft Studio.