Fork me on GitHub
#graalvm
<
2019-08-15
>
borkdude13:08:41

@taylor do you have an example of an app which uses https like this? https://blog.taylorwood.io/2018/10/04/graalvm-https.html

borkdude13:08:13

if I want to allow consumers of my app to use https, how should they set the java property? it's a bit confusing to me

borkdude13:08:03

e.g. if I want to make slurp in https://github.com/borkdude/babashka work with https

taylor13:08:38

Hmm. Haven’t tried this with slurp

borkdude13:08:06

so if I use your precompiled binary, it should work without me setting any paths to a .dylib thingie?

borkdude13:08:23

$ ~/Downloads/clojurl-macOS-0.0.3 -u 
WARNING: The sunec native library, required by the SunEC provider, could not be loaded.

taylor13:08:01

Yeah that file has to be present either in the same directory or in a certain folder under java install

taylor13:08:18

I should make that more obvious

taylor13:08:58

At work we just ship them together along with a different certificate store, for internal use

borkdude13:08:25

maybe it could work if the user sets an environment variable and the program passes that env var into a java property

borkdude13:08:39

because I don't know how to let the user set a java property in a binary

taylor13:08:45

That crypto library may not be on the user’s machine at all though

borkdude13:08:19

right, but then you can add it in the instructions how users can fix it if they want

borkdude13:08:31

unless I'm missing something obvious

taylor13:08:26

No, I’ll update the docs to make this more obvious