[ https://issues.apache.org/jira/browse/FINERACT-778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16881414#comment-16881414 ]
Michael Vorburger.ch commented on FINERACT-778: ----------------------------------------------- {noformat}$ keytool -importkeystore -srckeystore fineract-provider/src/main/resources/keystore.jks -destkeystore fineract-provider/src/main/resources/keystore.jks Enter source keystore password: Entry for alias selfsigned successfully imported. Import command completed: 1 entries successfully imported, 0 entries failed or cancelled Warning: The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore fineract-provider/src/main/resources/keystore.jks -destkeystore fineract-provider/src/main/resources/keystore.jks -deststoretype pkcs12".{noformat} but this does NOT make the Warning shown above (NB on {{./gradlew clean tomcatRun}}, not {{./gradlew integrationTest}}) go away... but perhaps the {{-destkeystore}} is wrong - it does not show up on {{keytool}}. This problem may also have nothing at all to do with the original issue. > sun.security.validator.ValidatorException: PKIX path building failed: > sun.security.provider.certpath.SunCertPathBuilderException: unable to find > valid certification path to requested target > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: FINERACT-778 > URL: https://issues.apache.org/jira/browse/FINERACT-778 > Project: Apache Fineract > Issue Type: Bug > Reporter: Michael Vorburger.ch > Priority: Major > > as part of FINERACT-700, when running under OpenJDK Java 8, I hit this when > running "./gradlew integreationTest", found in > {{build/reports/tests/integrationTest/classes/org.apache.fineract.integrationtests.AccountNumberPreferencesTest.html}} > : > {noformat}Failed tests: testAccountNumberPreferences > java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: > sun.security.validator.ValidatorException: PKIX path buil > ding failed: sun.security.provider.certpath.SunCertPathBuilderException: > unable to find valid certification path to requested t > arget > at > org.apache.fineract.integrationtests.common.Utils.loginIntoServerAndGetBase64EncodedAuthenticationKey(Utils.java:75) > at > org.apache.fineract.integrationtests.AccountNumberPreferencesTest.setup(AccountNumberPreferencesTest.java:94) > (...) > Caused by: javax.net.ssl.SSLHandshakeException: > sun.security.validator.ValidatorException: PKIX path building failed: > sun.security.provider.certpath.SunCertPathBuilderException: unable to find > valid certification path to requested target > at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) > at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946) > at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316) > at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310) > at > sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1639) > at > sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223) > at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037) > at sun.security.ssl.Handshaker.process_record(Handshaker.java:965) > at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1064) > at > sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367) > at > sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395) > at > sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379) > at > org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:553) > at > org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:412) > at > org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:179) > at > org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:328) > at > org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:612) > at > org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:447) > at > org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:884) > at > org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) > at > org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) > at org.apache.http.client.HttpClient$execute$0.call(Unknown Source) > ... > Caused by: sun.security.validator.ValidatorException: PKIX path building > failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to > find valid certification path to requested target > at > sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397) > at > sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302) > at sun.security.validator.Validator.validate(Validator.java:262) > at > sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) > at > sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) > at > sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) > at > sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621) > ... 137 more > Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable > to find valid certification path to requested target > at > sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) > at > sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) > at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) > at > sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392) > ... 143 more > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)