Create a .jks File for Windows
If a JKS file containing just the needed certificate already exists, skip this section.
- Log in to an that contains the certificate.
- Go to Setup > Certificate and Key Management.
- Open the certificate and note the Unique Name field value.
- Go back to the Certificate and Key Management page.
- Click the Export to Keystore button. This will create a JKS file containing all the certificates listed on the Certificate and Key Management page.
- Create a password for the new JKS file and click Save.
- Find the folder on the computer where the Java KeyTool (keytool.exe) is located. It’s provided as a part of the Java Development Kit (JDK). If keytool.exe isn’t on the computer, download and install the latest JDK version.
- Copy the JKS file into that folder.
- Run CMD as an administrator.
- Use the cd command to navigate to the keytool folder.
- Run the following command and replace keystore.jks with the name of the JKS file before running the command:
- keytool -list -keystore keystore.jks
- Enter the keystore password.
- Locate certificate aliases in the output. The aliases in the output are lowercase Unique Name field values of certificates in the org. All certificates except for the one being moved to a new
- Run the following command and replace keystore.jks with the name of the JKS file and selfsignedcert_28jan2021_153812 with the alias of the certificate to delete before running the command:
- keytool -delete -alias selfsignedcert_28jan2021_153812 -keystore keystore.jks
- Repeat the previous steps to delete extra certificates until only the correct certificate is left in the JKS file.
Next Procedure
Was this helpful?
No