Hi, I'm trying to create a native image out of a small app that uses clj-http. The app hits an API (at https) and needs client authentication using certs. It runs OK in the jvm, but if I try to create a native image out of it, I'm getting
Error: No instances of <http://javax.net|javax.net>.ssl.SSLContext are allowed in the image heap as this class should be initialized at image runtime. Am I reading that right, that I can't use anything SSL-ish in a native image? That seems kind of a severe limitation.
not sure if it's a good solution but there's borkdude's fork that works with babashka which in theory means it will work with graalvm in general https://github.com/borkdude/clj-http-lite/
unless there's something else going on
(note: I have extremely little idea what I'm talking about)
affirmative, clj-http-lite works with graalvm
Ah, OK. Will try clj-http-lite.
my fork of martinklepsch's fork simply removed an external dependency (slingshot) so babashka didn't have to support that
but other than that it's the same