I am trying to access my website from Java using HttpsUrlConnection but I am getting
javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_required
This does not happen when I test my code from my personal computer running windows. But the error does occur when I run the code from my linux computer, the same computer the website is hosted on. I have my SSL/TLS encryption mode on FULL
I now think that this is caused because my java truststore does not contain cloudflare’s certificates. I added my website origin certificate but that has not solved the issue yet.
Should I add some cloudflare certificate to my truststore? If so, where do I find this certificate?