Laurent Hinoul

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” - John F. Woods

Category: Framework

How to fix Unirest General SSLEngine problem

I tried to post data to a rest service using Unirest (unirest.io). But when I tried to post to an HTTPS url, I got the following error:

To fix this, you could use the following code:

Then, you need to execute the code below before useing Unirest itself:

Hopefully this works for you too. Enjoy

How to create a vertx fat-jar with maven

If you use Vertx, It could be helpful to create a jar or war where Vertx is included. If you use maven. You can add the following code in your pom.xml:

If you integrated Spring, you need to add extra transformers. You can use the following code in your pom.xml for that:

Don’t forget to change ‘com.laurenthinoul….ApplicationMainClass’ to…