HttpsUrlConnection SSLHandshakeException certificate_required
I am trying to access my api from java but I get the following error: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_required I do not get this error when I test the code on my personal Windows computer. But this error does occur on my linux production server running Ubuntu with openjdk 11. The server is hosted on that same ubuntu server, and proxied with Cloudflare SSL Full HttpsURLConnection con = null; try { URL url = new URL("https://www.example.com/"); con = (HttpsURLConnection) url.openConnection(); con.addRequestProperty("XF-Api-Key", "key"); con.addRequestProper
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.