How to resolve PKIX Path Building Failed in Docker Container

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

How do we do that with docker though?

COPY ./cacerts /usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/lib/security/cacerts

Drawback

--

--

--

Software Developer, Writer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to change django-ckeditor background from Light to Dark

Golem Online Hackathon

The importance of Clean Code

Java-Object Oriented Programming

Beaver Finance Weekly Report #3

Learning to code in English as ESL adults [1]

Scanner Class

Kafka Optimisation in Action — Part I

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yogesh Mali

Yogesh Mali

Software Developer, Writer

More from Medium

Deep Dive into NoSQL Database Types

Managing your queues with IoT: A IoT based Queue Monitoring System

Static and Dynamic

Simple Samples of Java OOP 4 Principles