To resolve the issue follow bellow steps:
You will be able to see the certificate chain on the third tab that looks as the following image.
Select the root certificate from the chain and click on the button "View Certificate".
- A new window will open, go to the second tab and click on the "Save File" button. This will open an export wizard for your ceritficate.
- When exporting, select the X.509 base 64 option and follow the instructions. Save the file.
- Repeat for the intermediate certificate.
- Upload both certificates to your server and import into the keystore following the order - first root, second intermediate and finally your certificate.
Before I imported those certificates, I had to delete the ones that were on my keystore and were not working. To do so, I used the following instructions:
keytool -delete -alias [root] -keystore [keystore file]
If you are not sure what is inside your keytool, you can view by using:
keytool -list -keystore [keystore file]