utilities
Class KeyringDB

java.lang.Object
  |
  +--utilities.KeyringDB

public class KeyringDB
extends java.lang.Object

Java Toolbox key ring management tool. Creates a class file containing a string which holds the encoded key ring structure.

Usage: java com.ibm.sslight.tools.keyrng FullyQualifiedClassName ...

 utilities.KeyringDB FullyQualifiedClassName 
      (-password KeyDatabasePassword)                                 also: -p
       -add [ {--ca BinaryX509CertFile} (--label KeyLabel)] ...             -a, --certificateauthority, -lbl
       -create                                                              -ct
       -verify                                                              -v
       -changepassword                                                      -cp
       -connect host:port                                                   -co
 
Return Codes to Command Line: Successfull : 0 Non Critical Error : 10 Critical Error : 20

Usage Example:

PASSWORD: -password / -p

 java utilities.KeyringDB KeyringDatabase.class -password yourpassord -verify 
Pass in the password to access the KeyringDatabase.class file. Required if not using the default password.

ADD: -add / -a

 java utilities.KeyringDB KeyringDatabase.class -add --ca ca-File.der --lbl MyCA 
Add a certificate from the certificate file given to the KeyringDatabase.class file. The certificate file specified (using the --ca / -- certificateAuthority parameters) should be a Binary X509 Certifificate file. Optionally, when adding a certificate to the database, you may choose a label with the --label/--lbl parameter. If you do not choose a label, one will be created for you with the follwing format: CA-400-Tue Feb 20 20:20:20 CST 2020

CREATE: -create / -ct

 java utilities.KeyringDB KeyringDatabase.class -create 
Creates a new certificate database class with the class name passed in. This database will contain default certificates.

VERIFY: -verify / -v

 java utilities.KeyringDB KeyringDatabase.class -verify 
List out the certificates that exist in the KeyringDatabase.class flie.

CHG PWD: -ChangePassword / -cp

 java utilities.KeyringDB KeyringDatabase.class -ChangePassword 
Change the password for the KeyringDatabase.class file.

CONNECT: -connect / -co

 java utilities.KeyringDB KeyringDatabase.class -connect host:port 
Connects to the given host:port and lists out the available certificates for downloading into the KeyringDatabase.class file. You will be prompted to give a label for the certificate.

DELETE: -delete / -del

 java utilities.KeyringDB KeyringDatabase.class -delete --label Certificate1 
Deletes the certificate associated with the specified label from the KeyringDatabse.class file.


Constructor Summary
KeyringDB()
           
 
Method Summary
static void main(java.lang.String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyringDB

public KeyringDB()
Method Detail

main

public static void main(java.lang.String[] argv)