Keystore explorer command line code#
The keystore is now complete and can be used for signing code or deploying on a Java based web server depending on the product you ordered. Keytool -import -trustcacerts -alias mydomain -file mydomain.crt -keystore KeyStore.jks The alias here must match the alias of the private key in the first command. Use the same alias as the private key so it associates them together. Download & import your new certificateĭownload your new certificate save it as mydomain.crt. Keytool -import -trustcacerts -alias intermediate -file intermediate.crt -keystore KeyStore.jksĥ. Keytool -import -trustcacerts -alias root -file root.crt -keystore KeyStore.jks Click on File and then Save to finish creating the new keystore. Select the BCFKS (Bouncy Castle FIPS Key Store) option for the keystore type and click OK. Once the main screen displays click on the Create a new KeyStore icon. Make sure you specify the correct alias of "root" and "intermediate" respectively. To start KeyStore Explorer simply double click on the keystore-explorer.bat file in the \utilities directory. Import the root certificate first, followed by the intermediate. Import the root & intermediate certificates into your keystore. While the order processes, download the root & intermediate certificates for your order. You can identify the correct root & intermediate certificate based on hash algorithm and product type.Ĥ. You should now have a file called mydomain.csr which can be used to order or reissue a digital certificate from GlobalSign.ģ. Press Enter to use the same password as the keystore, alternatively specify a separate password and press enter. Keytool -certreq -alias mydomain -keystore KeyStore.jks -file mydomain.csrĪnswer each question when prompted. Use the chart below to guide you through the process:Ĭonfirm or reject the details by typing "Yes" or "No" and pressing Enter Generate a CSR based on the new keystore: Keytool -genkey -alias mydomain -keyalg RSA -keystore KeyStore.jks -keysize 2048Ģ. Pay close attention to the alias you specify in this command as it will be needed later on.
Keystore explorer command line full#
Open a command prompt in the same directory as Java keytool alternatively, you may specify the full path of keytool in your command. Or, you can check the step by step guidelines below. You can watch the video below for a tutorial. This article covers the creation of a new Java keystore using Java keytool. Java Keytool - Create Keystore Introduction