PKIX errors to a clean mTLS + Feign + IAM demo

From PKIX errors to a clean mTLS + Feign + IAM demo

Why this post I started this mini‑project after seeing a common roadblock: PKIX path building failed when calling HTTPS services with OpenFeign. The goal was to create a tiny, runnable example that eliminates guesswork, shows how to configure client certificates and trust properly, and layers basic IAM policies on top. Reference: https://stackoverflow.com/questions/79835509/unable-to-configure-ssl-context-for-open-feign-client-getting-pkix-error What’s inside the example Two Spring Boot apps: Server: HTTPS on 8443, requires client certs (mTLS), and recognizes/authorizes callers with Spring Security’s X.509 support. Client: Spring Cloud OpenFeign calling the server via Apache HttpClient5 with a custom SSLContext. A one‑command cert toolchain (local CA → server/client certs → PKCS#12 keystores/truststores). An automated test script that runs a positive call (expected 200) and a negative call with an unauthorized client (expected 403). Project (ready to publish here): ...

December 5, 2025 · 3 min · Özkan Pakdil

Graalvm to run wasm from spring boot

Graalvm is AOT compilation advanced JDK, I am following the project since 2019, Project’s first target was AOT now lately I start seeing more about multi language support. It supports Python, JS, Ruby, Wasm more details here And WASM is getting popular day by day, WASM is a new binary file for web. There are many cool examples of WASM Doom game in the browser with graalvm Postgres database in the browser I was wondering how to run WASM code in simple spring boot application, ...

November 4, 2024 · 1 min · Özkan Pakdil

How to build spring boot native binary

In short I am explaining why we should use ./mvnw -Pnative native:compile and what error comes otherwise and why. I was preparing this answer. And I was having problem with the class not found errors while building because I was using this command ./mvnw native:compile ... Error: Please specify class (or <module>/<mainclass>) containing the main entry point method. (see --help) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.448 s [INFO] Finished at: 2024-09-01T21:24:32+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.graalvm.buildtools:native-maven-plugin:0.10.2:compile (default-cli) on project env-variables: Execution of C:\sdkman\candidates\java\21.0.2-graal\bin\native-image.cmd @target\tmp\native-image-2373453772169200185.args returned non-zero result -> [Help 1] [ERROR] Then remembered the profile thing and finally get rid of this error, used below command ...

September 1, 2024 · 1 min · Özkan Pakdil