using keytool to import a certificate into a keystore
keytool -storepass my-keystore-password -alias myalias -import -file infilename.cer