FreeKB - Import a certificate into an IBM Key Database file
Import a certificate into an IBM Key Database file

Home > Search


This assumes you have reviewed IBM GSKit (Global Security Kit) - Getting Started (command line) or IBM iKeyman - Getting Started (GUI) and that you have created a key database.

 


GSKit (command line)

You can use either the -add or -import options to add a certificate into the Key Database.

  • The -add option can be used when the certificate being added exists in a .cer, .crt, or .pem file.
  • The -import option can be used when the certificate being added exists in a .p12 or .pfx file. 

Add.

ihs_home/gsk8/bin/gsk8capicmd_64
-cert
-add
-file "source crt cer pem file"
-label "certificate name"
-db "key database kdb file"
-stashed or -target_pw "key database password"

 

Import - Notice the source password is not wrapped in double quotes. Wrapping the source password in double quotes can cause the import to fail.

ihs_home/gsk8/bin/gsk8capicmd_64
-cert
-import
-file "source p12 or pfx file"
-pw source password
-type "source file type - cms | kdb | pkcs7 | pkcs12 | p12"
-target "target file - cms | kdb | pkcs11 | pkcs12 | p12"
-target_pw "target file password" or -stashed
-target_type "target file type - cms | kdb | pkcs11 | pkcs12 | p12"
-label "certificate name in source file"
-new_label "certificate name - optional"

 


iKeyman (GUI)

Create a new key database file, or open an existing key database file. Select Import. Select the file that contains the certificate you want to import. If prompted, provide the password to the file that contains the certificate you want to import. 

In this example, the certficates in key.p12 will be imported into the key database file.



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments