Convert the public certificate that you had generated to a Java KeyStore file on your machine because your ServiceNow instance supports a Java KeyStore file. After generating, you must upload the file to your ServiceNow
instance.
始める前に
Role required: admin
手順
-
Open the command prompt on your machine.
-
Use the cd command to change the directory to the location where you had generated the public certificate.
-
On the command prompt, execute the command openssl pkcs12 -export -in publickey.cer -inkey private.key -out <your-file-name>.p12 -name "<your-custom-name>”.
-
In the Enter Export Password prompt, create an export password.
-
In the Verifying - Enter Export Password prompt, reenter the export password you had created.
The P12 file is created.
-
Copy the P12 file to the respective JDK/bin folder of your machine.
注: Depending on the OS of your machine, the location of the JDK/bin folder might vary.
-
Copy the path to the JDK/bin folder.
-
In the command prompt, use the cd command to change the current directory to the JDK/bin folder.
-
To convert the P12 file to a Java KeyStore file, execute the command keytool -importkeystore -srckeystore <P12-file-name>.p12 -srcstoretype pkcs12 -destkeystore
<Java-KeyStore-filename>.jks.
-
In the Enter destination keystore password prompt, create a password.
-
In the Re-enter new password prompt, reenter the destination keystore password you had created.
-
In the Enter source keystore password prompt, enter the same password that you had created to generate the P12 file.
The Java KeyStore file is created in the JDK/bin location.