Command Line Tools Guide
Red Hat Certificate System                                                            

Previous
Contents
Index
Next

Chapter 1

Command-Line Tools


Red Hat Certificate System (CS) is bundled with various command-line utilities. This chapter summarizes these utilities and provides pointers to chapters that further explain them.

Table 1-1 summarizes the command-line utilities that are bundled with Certificate System.

Table 1-1 Summary of command-line utilities  
Utility/Tool
Function
Batch/Shell Scripts located under <server_root>/bin/cert/tools/ (requires <server_root>/bin/cert/jre/bin/java): :
AtoB
(ASCII to Binary Tool)
Converts ASCII base-64 encoded data to binary base-64 encoded data. For details, see Chapter 8 "ASCII to Binary Tool."
AuditVerify
(Signed Audit Verification Tool)
A command line utility utilized to verify signatures in signed audit log files. For details, see Chapter 4 "AuditVerify."
BtoA
(Binary to ASCII Tool)
Converts binary base-64 encoded data to ASCII base-64 encoded data. For details, see Chapter 9 "Binary to ASCII Tool."
CMCEnroll
(CMC Enrollment Utility)
A command line utility used to sign a certificate enrollment request with an agent's certificate. For details, see the CMC Enroll Utility in the Administrator's Guide.
CMCRequestl
(CMC Request Utility)
 
A command line utility used to construct a Certificate Management Messages over CMS (CMC) request For details, see the CMC Request Utility in the Administrator's Guide..
CMCResponse
(CMC Response Utility)
 
A command line utility used to parse a CMC response. For details, see the CMC Response Utility in the Administrator's Guide..
CMCRevoke
(CMC Revocation Utility)
A command line utility used to sign a revocation request with an agent's certificate. For details, see the CMC Revoke Utility in the Administrator's Guide.
CRMFPopClient
(CRMF Pop Request Tool)
A command line utility used to generate CRMF requests with proof of possession (POP).
ExtJoiner (Extension Joiner Tool)
A command line utility utilized to join a sequence of extensions together so that the final output can be used in the configuration wizard for specifying extra extensions in default certificates (i. e. - CA certificate, SSL certificate). For details, see Chapter 6 "Extension Joiner Tool."
GenExtKeyUsage (Key Usage Extension Tool)
A command line utility utilized to generate a DER-encoded Extended Key Usage extension. The first parameter is the criticality of the extension, true or false. The OIDs to be included in the extension are passed as command-line arguments. The OIDs are described in RFC 2459. For example, the OID for code signing is 1.3.6.1.5.5.7.3.3.
GenIssuerAltNameExt (Issuer Alternative Name Extension Tool)
A command line utility utilized to generate an issuer alternative name extension in base-64 encoding. The encoding output can be used with the configuration wizard, using parameter pairs where the first parameter specifies the general type from among "DNSName", "EDIPartyName", "IPAddressName", "URIName", "RFC822Name", "OIDName", or "X500Name", and the second parameter specifies a general name for this type.
GenSubjectAltNameExt (Subject Alternative Name Extension Tool)
A command line utility utilized to generate a subject alternative name extension in base-64 encoding. The encoding output can be used with the configuration wizard, using parameter pairs where the first parameter specifies the general type from among "DNSName", "EDIPartyName", "IPAddressName", "URIName", "RFC822Name", "OIDName", or "X500Name", and the second parameter specifies a general name for this type.
HttpClient (HTTP/HTTPS Communication)
A command line utility used to communicate with any http/https server.
OCSPClient (OCSP Tool)
A command line utility that verifies certificate status by submitting Online Certificate Status Protocol (OCSP) requests to an instance of an OCSP subsystem.
PKCS10Client (PKCS #10 Tool)
A command line utility that generates a Public Key Cryptography Standards (PKCS) #10 enrollment request.
PasswordCache
(Password Cache Utility)
Manipulates the contents of the single sign-on password cache. For details, see Chapter 3 "Password Cache Utility."
PrettyPrintCert
(Pretty Print Certificate Tool)
Prints the contents of a certificate stored as ASCII base-64 encoded data in a human-readable form. For details, see Chapter 10 "Pretty Print Certificate Tool."
PrettyPrintCrl
(Pretty Print CRL Tool)
Prints the contents of a CRL stored as ASCII base-64 encoded data in a human-readable form. For details, see Chapter 11 "Pretty Print CRL Tool."
Executable tools located under <server_root>/bin/cert/tools:
bulkissuance
(Bulk Issuance Tool)
A command line utility utilized to send either a KEYGEN or CRMF enrollment request to the bulk issuance interface for the automatic creation of certificates.This tool includes an example data file called "bulkissuance.data", which is included in the <server_root>/bin/cert/tools directory.
certutil
(Certificate and Key Database Tool)
View and manipulate the certificate database (cert8.db) and key database (key3.db) contents. For details, check the http://www.mozilla.org/projects/security/pki/nss/tools/. site.
cmsutil
(Cryptographic Message Syntax tool)
A command line tool used to perform basic Cryptographic Message Syntax operations related to encrypting, decrypting, and signing messages using S/MIME. For details, check the http://www.mozilla.org/projects/security/pki/nss/tools/. site.
crlutil
(Certificate Revocation List utility)
A command line tool used to manage CRLs within the certificate database.
pk12util
(PKCS #12 utility)
A command line tool used to import and export keys and certificates between the cert/key databases and files in PKCS #12 format. For details, check the http://www.mozilla.org/projects/security/pki/nss/tools/. site.
revoker (automation utility)
A command line tool which may be conveniently utilized to automate user management scripts used to revoke certificates.
setpin
(PIN Generator tool)
Generates PINs for end users for directory- and PIN-based authentication. For details, see Chapter 5 "PIN Generator Tool." This tool utilizes a configuration file called "setpin.conf", a sample of which is included in the <server_root>/bin/cert/tools directory..
signtool
(Signing Tool)
Digitally signs any file, including log files. For details, check the http://www.mozilla.org/projects/security/pki/nss/tools/. site.
signver
(Signature Verification Tool)
A command line tool used to create digitally-signed jar archives containing files and/or code. For details, check the http://www.mozilla.org/projects/security/pki/nss/tools/. site.
ssltap
(SSL Debugging Tool)
Used to debug SSL applications. For details, check the http://www.mozilla.org/projects/security/pki/nss/tools/. site.
tksTool
(Token Key Service Tool)
A command line tool utilized to construct DES 2 symmetric keys used in conjunction with the CS TKS subsystem.
Batch/Shell Scripts located under <server_root>/bin/cert/upgrade/ (requires <server_root>/bin/cert/jre/bin/java):
Migration Utility
(Migrate an old CS version to a new CS version)
Migrates data from a CS 7.1/CMS 4.1, 4.2, 4.2 (SP 2), 4.5, 6.0, 6.1, 6.2, or 7.0/iCMS 4.7 instance to the latest CS instance. For details, see Chapter 2 "CS Migration Utility."
Batch/Shell Scripts located under <server_root>/cert-<instance> (requires <server_root>/install/perl):
csbackup
(Backup a CS instance)
Copies all of the pertinent data and configuration files for a CS instance, the local Administration Server, and local Red Hat Directory Servers that the instance uses into a compressed archive. For details, see Chapter 7 "Backing Up and Restoring Data." This tool utilizes two Perl support scripts located in <server_root>/bin/cert/tools called "CSBackup.pl" and "CSCommon.pl".
csrestore
(Restore a backed-up CS instance)
Opens a named archive, extracts the data, and uses it to restore the configuration of a CS instance. For details, see Chapter 7 "Backing Up and Restoring Data."This tool utilizes two Perl support scripts located in <server_root>/bin/cert/tools called "CSCommon.pl" and "CSRestore.pl".
Common Criteria Batch/Shell Scripts and executable tools located under <server_root>/bin/cert/tools:
cssuid (execute setuid/setgid program tool)
A command line utility existing ONLY on Solaris platform versions of the CS server used to launch processes as setuid/setgid scripts. This program is intended for use with CS when it must be set up as a Common Criteria Target of Evaluation. This tool utilizes a configuration file called "/etc/cssuid.cfg", a sample of which is included in the <server_root>/bin/cert/tools directory.
toecrle.sh (ld.config Bourne shell script)
A Bourne shell script existing ONLY on Solaris platform versions of the CS server used to configure the "/var/ld/ld.config" database. This script is intended for use with CS when it must be set up as a Common Criteria Target of Evaluation.
toeperms.sh (permissions Bourne shell script)
 
A Bourne shell script existing ONLY on Solaris platform versions of the CS server used to set permissions on various files and directories. This script is intended for use with CS when it must be set up as a Common Criteria Target of Evaluation.
Executable tools located under <server_root>/shared/bin:
modutil
(Security Module Database Tool)
Used for managing the PKCS #11 module information within secmod.db files or within hardware tokens. For details, check the http://www.mozilla.org/projects/security/pki/nss/tools/. site.
Third-party executable tools located under <server_root>/bin/cert/tools:
dumpasn1
(Display the contents of binary base-64 encoded data)
Dumps the contents of binary base-64-encoded data. Note that the tool is freeware that is packaged with Certificate System for your convenience. For more information about this tool, check this site: http://www.cs.auckland.ac.nz/~pgut001/
This tool utilizes a configuration file called "dumpasn1.cfg", a sample of which is included in the <server_root>/bin/cert/tools directory. A statement regarding the licensing of this executable and configuration file is located in the <server_root>/bin/cert/tools directory in a file called "README".
Third-party support tools located under <server_root>:
bin/base/jre/bin/jre
(Client JVM runtime)
Java runtime executable for Red Hat Console (utilizes the Client JVM on platforms other than Red Hat Linux).
bin/cert/jre/bin/jre
(Server JVM runtime)
Java runtime executable for Certificate System (utilizes the Server JVM on platforms other than Red Hat Linux).
bin/cert/tools/unzip
(Decompression utility)
Decompression utility executable. The third-party license for this utility is contained in the <server_root>/bin/cert/tools directory in a file called "infozip_license".
bin/cert/tools/zip
(Compression utility)
Compression utility executable. The third-party license for this utility is contained in the <server_root>/bin/cert/tools directory in a file called "infozip_license".
install/perl
(Perl scripting language)
perl scripting language executable.

The Certificate Database Tool (certutil), Signing Tool (signtool), Signature Verification Tool (signver), PKCS #12 Utility (pk12util), Cryptographic Message Syntax Tool (cmsutil), SSL Debugging Tool (ssltap), and Security Database Tool (modutil) are a part of Network Security Services (NSS) tools. The remaining tools are either CS-specific tools or Third-party support tools.

If you find any problems with NSS tools, you may obtain the source code and build instructions for the very latest version of these tools (and/or potentially a binary image for the newer tool) at the following URL:

http://www.mozilla.org/projects/security/pki/nss/tools/index.html

If you're familiar with older versions of NSS tools, notice that all Key Database Tool functions have now been incorporated into the single tool, Certificate Database Tool, and that several of the command-line options for many of the tools may have changed. Be sure to check back often to obtain the very latest version of the desired security tool, as this site is updated often.




Previous
Contents
Index
Next

© 2001 Sun Microsystems, Inc. Used by permission. © 2005 Red Hat, Inc. All rights reserved.
Read the Full Copyright and Third-Party Acknowledgments.

last updated July 18, 2005