Check out example codes for "add certificate to java truststore". It will help you in understanding the concepts better.

Code Example 1

# Copy the certificate into the directory Java_home\Jre\Lib\Security
# Change your directory to Java_home\Jre\Lib\Security>
# Import the certificate to a trust store.

keytool -import -alias ca -file somecert.cer -keystore cacerts -storepass changeit [Return]

Trust this certificate: [Yes]

Learn ReactJs, React Native from akashmittal.com