I'm running some automation tests, using azure SDK. It works fine at first, after a couple of tries to authenticate(each test performs new authentication), getting the below error. What could be the reason?
08:39:45 [jsystem] [pool-54-thread-1] INFO com.microsoft.aad.adal4j.AuthenticationAuthority - [Correlation ID: 5ceb4f83-441b-4263-8134-b91a69101b2d] Instance discovery was successful
08:39:46 [jsystem] [pool-54-thread-1] ERROR com.microsoft.aad.adal4j.AuthenticationContext - [Correlation ID: 5ceb4f83-441b-4263-8134-b91a69101b2d] Execution of class com.microsoft.aad.adal4j.AcquireTokenCallable failed.
08:39:46 [jsystem] javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate ECDH keypair
08:39:46 [jsystem] at sun.security.ssl.Alert.createSSLException(Unknown Source)
08:39:46 [jsystem] at sun.security.ssl.TransportContext.fatal(Unknown Source)
08:39:46 [jsystem] at sun.security.ssl.TransportContext.fatal(Unknown Source)
08:39:46 [jsystem] at sun.security.ssl.TransportContext.fatal(Unknown Source)
08:39:46 [jsystem] at sun.security.ssl.SSLSocketImpl.handleException(Unknown Source)
08:39:46 [jsystem] at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
08:39:46 [jsystem] at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
08:39:46 [jsystem] at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
08:39:46 [jsystem] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
08:39:46 [jsystem] at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source)
08:39:46 [jsystem] at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
08:39:46 [jsystem] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
08:39:46 [jsystem] at com.microsoft.aad.adal4j.AdalOAuthRequest.configureHeaderAndExecuteOAuthCall(AdalOAuthRequest.java:145)
08:39:46 [jsystem] at com.microsoft.aad.adal4j.AdalOAuthRequest.send(AdalOAuthRequest.java:83)
08:39:46 [jsystem] at com.microsoft.aad.adal4j.AdalTokenRequest.executeOAuthRequestAndProcessResponse(AdalTokenRequest.java:87)
08:39:46 [jsystem] at com.microsoft.aad.adal4j.AuthenticationContext.acquireTokenCommon(AuthenticationContext.java:930)
08:39:46 [jsystem] at com.microsoft.aad.adal4j.AcquireTokenCallable.execute(AcquireTokenCallable.java:70)
08:39:46 [jsystem] at com.microsoft.aad.adal4j.AcquireTokenCallable.execute(AcquireTokenCallable.java:38)
08:39:46 [jsystem] at com.microsoft.aad.adal4j.AdalCallable.call(AdalCallable.java:47)
08:39:46 [jsystem] at java.util.concurrent.FutureTask.run(Unknown Source)
08:39:46 [jsystem] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
08:39:46 [jsystem] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
08:39:46 [jsystem] at java.lang.Thread.run(Unknown Source)
08:39:46 [jsystem] Caused by: java.lang.RuntimeException: Could not generate ECDH keypair
08:39:46 [jsystem] at sun.security.ssl.ECDHKeyExchange$ECDHEPossession.(Unknown Source)
08:39:46 [jsystem] at sun.security.ssl.ECDHClientKeyExchange$ECDHEClientKeyExchangeProducer.produce(Unknown Source)
08:39:46 [jsystem] at sun.security.ssl.ClientKeyExchange$ClientKeyExchangeProducer.produce(Unknown Source)
08:39:46 [jsystem] at sun.security.ssl.SSLHandshake.produce(Unknown Source)
08:39:46 [jsystem] at sun.security.ssl.ServerHelloDone$ServerHelloDoneConsumer.consume(Unknown Source)
08:39:46 [jsystem] at sun.security.ssl.SSLHandshake.consume(Unknown Source)
08:39:46 [jsystem] at sun.security.ssl.HandshakeContext.dispatch(Unknown Source)
08:39:46 [jsystem] at sun.security.ssl.HandshakeContext.dispatch(Unknown Source)
08:39:46 [jsystem] at sun.security.ssl.TransportContext.dispatch(Unknown Source)
08:39:46 [jsystem] at sun.security.ssl.SSLTransport.decode(Unknown Source)
08:39:46 [jsystem] at sun.security.ssl.SSLSocketImpl.decode(Unknown Source)
08:39:46 [jsystem] at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)