Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top level gradle build fails with ssl certificate error in downloadJS task #154

Open
natashadsilva opened this issue May 24, 2018 · 0 comments

Comments

@natashadsilva
Copy link
Member

Clone the repository,
Build all : ./gradlew build
Fails building the PatientMonitoringDemo:

:samples:PatientsMonitoringDemo:downloadJS FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':samples:PatientsMonitoringDemo:downloadJS'.
> javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is: 
        java.security.cert.CertPathValidatorException: The certificate issued by CN=DST Root CA X3, O=Digital Signature Trust Co. is not trusted; internal cause is: 
        java.security.cert.CertPathValidatorException: Certificate chaining error

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED


From this line: https://github.com/IBMStreams/streamsx.health/blob/develop/samples/PatientsMonitoringDemo/build.gradle#L38

I worked around it by adding the acceptAnyCertificate parameter, but some investigation is needed to see if that's the best solution.

import de.undercouch.gradle.tasks.download.Download
task downloadJS(type: Download) {
		src([
			'https://code.jquery.com/jquery-3.1.1.min.js',
			'http://cdn.pydata.org/bokeh/release/bokeh-0.12.0.min.js',
			'http://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.0.min.js',
			'https://cdnjs.cloudflare.com/ajax/libs/numeral.js/2.0.4/numeral.min.js',
			'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'
			])
		acceptAnyCertificate true
		dest 'etc/html/health/assets/js'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant