Using the nc_httpcertimport utility
You use the nc_httpcertimport utility
to make it easier to load a certificate from an HTTP server when configuring
the Gateway for Message Bus to
connect to IBM
Operations Analytics - Log Analysis through
Secure Socket Layer (SSL). This topic provides reference information
related to the nc_httpcertimport utility.
NAME
nc_httpcertimport -
Loads a certificate from an HTTP server
COMMAND LINE SYNTAX
nc_httpcertimport [-k keystore_file] -h host_URL
[-p password] [-a certificate_alias]
[-l] [-x] [-v] [-?]
nc_httpcertimport [--keystore keystore_file] --host host_URL
[--password password] [--alias certificate_alias]
[--list] [--accept] [--version] [--help]OPTIONS
| Option | Description |
|---|---|
|
The |
|
The Note: The URI you specify should be an
HTTPS URI. By default, IBM
Operations Analytics - Log Analysis uses
the port
9987. Note also that the URI includes the
name of the application from which to import the certificate, which
in the example is Unity. |
|
The One reason you might not
want to specify the password of the truststore file on the command
line is because the Note: If you are creating
a new trustore file, the
nc_httpcertimport utility
prompts you twice for the password. The password will not echo onto
the display terminal screen. |
|
The
|
|
The |
|
The |
|
The |
|
The |
DESCRIPTION
The nc_httpcertimport utility
loads an SSL certificate from an HTTP server and either adds it to
an existing keystore file, or creates a new keystore file to which
it adds the certificate. Using this utility allows you to avoid having
to manually extract the SSL certificate from a web browser and to
use the Java tooling to add it to a truststore file. The nc_httpcertimport utility
is interactive by default and requires users to accept SSL certificates.
To run the nc_httpcertimport utility with no user
interaction, specify the -p (or --password)
and -x (or --accept) options.
nc_httpcertimport utility
generates a file to store SSL certificates. These SSL certificates
can be used as a keystore file or a truststore file.NOTES
The nc_httpcertimport utility
is supported only on UNIX platforms supported by the gateway. The nc_httpcertimport utility
is not supported on Windows operating systems.
EXAMPLE
$OMNIHOME/bin/nc_httpcertimport -k $OMNIHOME/java/security/cacerts.jks
-p password
-h http://testserver1.xyzcompany.com:7789/unity
--alias scala-hostERROR MESSAGES
The following table describes
the possible error messages that the nc_httpcertimport utility
can generate.
| Error Message | Description and Action |
|---|---|
Command line option option is not recognized. |
You specified an invalid command line option. To
resolve the issue, specify a valid command line option. The valid
command options are described in OPTIONS.
You can also specify the |
The certificate number that you specified is invalid. |
You were running the To
resolve the issue, enter a valid number of a SSL certificate you trust
and want to add to the keystore file. Or, you can specify |
Failed to access the system console. Not able to run in interactive mode. Specify the --help option for details on how to run the utility in non-interactive mode. |
The To run
the You
can also specify the |
You specified an http URI for the host. An https URI is required. |
You specified either the To resolve the issue, the URI
you specify should be an HTTPS URI. Thus, the URI should start with |
The required keystore file keystore_file was not found. Verify that the install is not corrupted. |
You specified either the To resolve the issue ensure
that the keystore file that you specify with the |
Failed to connect to the host due to IO exception. exception |
The To resolve the issue, use the information in exception to identify the specific cause of the error. |
Failed to open keystore file due to IO exception exception |
The One
reason this error can occur is that you are running the To resolve the issue, use the information in exception to identify the specific cause of the error. |
The --list and --accept parameters cannot be specified at the same time. |
You invoked the To resolve the issue, specify either the option to display a list of all the certificates or the option to accept the first server certificate. |
Argument arg_name requires a value. Please use the --help option to check the valid syntax of the command line arguments. There is a missing value. |
You invoked the Or, you
invoked the To resolve the issue, use the |
This utility requires that you set the the NCHOME environment variable. |
The To correct the issue, set the NCHOME environment variable. |
Internal error retrieving the server certificate chain. |
The If this error occurs contact IBM technical support. |
Unable to find a default X509 trust manager for the JVM. |
The Typically, this error would only occur if your environment has an issue with the JVM. The gateway should be picking up the X509 trust manager that delivers with it. If this error occurs contact IBM technical support. |
This utility requires you specify the URI of the server running the application from which you want to add certificates. |
You invoked the To
resolve the issue, you must specify the URI of the server running
the application from which to import the SSL certificate. You can
also specify the |
Specify either a keystore filename or a list of all certificates returned by the server. |
You invoked the
To resolve the issue, you need to specify one of the previously described options. You can also use the |
The passwords that you specified do not match. |
You invoked the To
resolve the issue, invoke the |
The host server URI does not contain a port number. |
You invoked the To resolve
the issue, invoke the You can also
use the |
The SSL connection to the host failed with an SSLException exception. |
The This error indicates that the attempt to create the SSL socket connection to the host specified in host_URL failed because the server is not running, a firewall is in the way, or you incorrectly specified the URI in the host_URL. The SSL exception specified in exception generally provides information about the specific reason for the failure to connect to the server. To resolve the issue, use the information in exception to identify the specific cause of the error. |
The SSL Handshake failed with the following error error. |
The This error indicates that the attempt to create the SSL socket connection to the host specified in host_URL failed because the server is not running, a firewall is in the way, or you incorrectly specified the URI in the host_URL. The error specified in error generally provides information about the specific reason for the failure to connect to the server. To resolve the issue, use the information in error to identify the specific cause of the error. |
The SSL Handshake failed with the following error error. Verify that the keystore file contains certificates. |
The To resolve the issue, ensure that
the keystore file that you specified with the |
Error unable to parse URI: uri. |
You invoked the To
resolve the issue, enter a valid host_URL. Use
the |
Error error reading user response from the standard input. |
You were running the To resolve
the issue, enter a valid number of an SSL certificate you trust and
want to add to the keystore file. Or, you can specify |