I have added a crt to /etc/pki/ca-trust/source/anchors so the server certificate can trusted by ssl clients. So, for example, when I curl https://<server>
the certificate is trusted automatically.
Is there any way to make a java application to trust the certificates installed on the system?
Is the only way to make it works in java adding the certificate to the jvm truststore?
Regards
I don't know any out of the box solutions for that. I think there're multiple ways to reach your goal:
TrustManager
implementation which is based on the cert directoryIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With