Not able to generate Access Token using Java Code: JWT without SDKs
Hi ,
I am trying to get the Access Token using Java code through JWT without SDKs.
But am getting Error: [main] DEBUG o.jose4j.jwa.AlgorithmFactoryFactory - Initialized jose4j in 678ms
Received fatal alert: protocol_version @CloseableHttpResponse httpResponse = httpClient.execute(request); statement.
Workarounds -
Tried by adding System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");
Please let me know the solution to get rectify this issue.
Thanks in Advance!!
-
Hi ,
What version of JRE are you currently using? If it's < 1.8 can you update to at least 1.8 (which supports TLS 1.2) and try again please?
For TLS connections, Box blocks TLS 1.0 communication, will be blocking TLS 1.1 after March 31st 2020. The standard version to use is TLS 1.2 for all API communication. TLS 1.3 is also being looked at for integration support, but I don't believe it's currently supported. The reason I say this is because you'll want to force TLS 1.2 otherwise you'll receive a connection error.
- Jon
Please sign in to leave a comment.
Comments
1 comment