Writing data into .csv file using apache commons library

If you have a situation where you need to write data into the CSV file, one option should be using apache commons library. If you're using Maven, first you'll need to add dependency into pom.xml:

Read more ...

How to iterate over java.util.Map

If you have map defined as for example HashMap:

Map<String, String> map = new HashMap<String, String>();

You can iterate through it using for loop on following way:

Read more ...

How to create CSR (Certificate Signing Request) using keytool?

If you already have keystore, you can skip step 1.

Step 1. Create keystore with private key in it.

keytool -genkey -alias server -keyalg RSA -keysize 2048 -keystore keystore.jks -dname "CN=p1, O=o1, L=Belgrade, ST=, C=RS"

How to iterate over java.util.Map

If you have map defined as for example HashMap:

Map<String, String> map = new HashMap<String, String>();

You can iterate through it using for loop on following way:

Read more ...