How Do You Import A .CER Certificate Into A Java Keystore?

How Do You Import A .CER Certificate Into A Java Keystore? Go to your java_homejrelibsecurity. (Windows) Open admin command line there using cmd and CTRL + SHIFT + ENTER. Run keytool to import certificate: (Replace yourAliasName and pathtocertificate. cer respectively) How do I import a .CER file into keystore? Open a command prompt and change