cancel
Showing results for 
Search instead for 
Did you mean: 

Java EE HTTP Client. A strange error

0 Kudos

Good afternoon, colleagues

I realized the connection to an external server with HTTPs from Java Mapping.

As an example, using the code from the help sap: Get Request Using Basic Authentication Example - SAP NetWeaver Composition Environment Library - SAP...

However, at runtime error occurs:

java.net.SocketException: Default SSL context init failed: java.security.InvalidKeyException: PublicKey algorithm not implemented: ECPublicKey

Does anyone know the reason?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

The error has not been resolved, but an alternative way was found:

View SecureConnectionFactory

Example:

String url = "https://google.com";

HttpURLConnection client = SecureConnectionFactory.getDefault().createURLConnection(url);

Answers (1)

Answers (1)

former_member186851
Active Contributor
0 Kudos

Hello Andrey,

Its an connectivity issue.You have imported the required certificates?

0 Kudos

No... A certificate may be anyone self-signed for this connect... Important. SSL connection through the channel is working properly. Unfortunately, the connection from the Java Mapping through the channel is forbidden

former_member186851
Active Contributor
0 Kudos

Hello Andrey,

Refer the below link and see if its giving you an idea