Hi, I need to use a self-signed ssl certificate in...
# compose-desktop
u
Hi, I need to use a self-signed ssl certificate in my compose desktop application. How to do it?
s
You can use okhttp
m
You can do it with code, or if you ship your app with Conveyor (disclosure: my product) you can do it at packaging time. The latter is simple and works with any SSL stack transparently https://conveyor.hydraulic.dev/14.3/configs/jvm/#appjvmadditional-ca-certs but if you don't want to use that then you'll have to configure the java ssl stack yourself (or switch to a different http stack like okhttp that also supports this)
u
And you know how i configure the java ssl stack by myself?
s
u
@Sabeeh thanks but I prefer not to allow the certificate in the http client, because it does not work with some external libraries like coil