Solving the “PKIX path building failed” “unable to find valid certification path to requested target”

This week I’ve come across the following stacktrace in a Java application while connecting to a web service over HTTPS. The exception was thrown due to certificate not being valid. The message says that Java is unable to find a valid certification path. But the browser marks the certificate as valid. This happened because the app was running on an older version of Java that did not recognize this root certificate authority (CA)....

June 12, 2021

Micronaut 2.0 REST API Swagger UI with Maven and Kotlin

I was playing around with Micronaut framework 2.0 which was released a couple of days ago (June 26th) for a personal project, a web service with a REST API. I wanted to use Swagger UI, but Micronaut’s documentation does not cover how to set it up with Maven and Kotlin. It went something like this. Generate a new Micronaut 2.0 project. Add some REST endpoints. Follow the Micronaut OpenAPI/Swagger docs (1....

July 9, 2020