2014-04-17 215 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.