Class CMCSharedToken

java.lang.Object
com.netscape.cmstools.CMCSharedToken

public class CMCSharedToken extends Object
A command-line utility used to take a passphrase as an input and generate an encrypted entry for ldap entry
 IMPORTANT:  The issuance protection certificate file needs to be created to
 contain the certificate in its PEM format.
 

Author:
cfu
  • Field Details

    • verbose

      public boolean verbose
  • Constructor Details

    • CMCSharedToken

      public CMCSharedToken()
  • Method Details

    • createOptions

      public static org.apache.commons.cli.Options createOptions()
    • printHelp

      public static void printHelp()
    • printError

      public static void printError(String message)
    • getPrivateKey

      public static PrivateKey getPrivateKey(String tokenName, String nickname) throws Exception
      Throws:
      Exception
    • getCertificate

      public static org.mozilla.jss.crypto.X509Certificate getCertificate(String tokenName, String nickname) throws Exception
      Throws:
      Exception
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception