Taming SSL Certificates for Non-RFC-Compliant Hostnames in Java

I was working on integrating with a new version of a vendor’s API. They claimed that authentication and everything like that remained the same across API versions. However, upon updating my code to point to their new API, I hit all kinds of SSL issues. The old hostname: api.vendor.com The new host: next_api.vendor.com The issue? Why it’s that underscore, of course! I was using Clojure for this project and the JVM was incredibly upset about this. ...

March 21, 2026 · 4 min