SSL-2.1: Certificate or key size is bigger than the immortal buffer

I’m following the Simple Resty example using https connection

I’m trying to use the api.openweathermap, i have added the Weather API - OpenWeatherMap certificates but when i try to get the json i have this error

Caused by: java.security.KeyManagementException: SSL-2.1: Certificate or key size is bigger than the immortal buffer used to process certificates and keys. Increase the maximum certificate and key size

I’m not sur where and how i’m suppose to change the key size.

Hello,

You can increase the max certificate and key size in the configurations of your launcher.
In your SDK, go to Run > Run configurations. Then select your MicroEJ application.
Go to the configuration tab and Librairies > SSL.
You can change the Max certificate and key size here:

Have a good day,
Corentin

1 Like