Generating keystores and certificates for Rational DOORS Web Access

You can use the Java keytool utility to generate cryptographic keystores and certificates for Rational DOORS Web Access.

About this task

To enable Rational DOORS Web Access to use SSL or TLS, you need a keystore that contains a security certificate. You can purchase a keystore and certificate from a trusted certificate authority. Or for testing purposes, you can generate a keystore and certificate by using the Oracle Corporation Java™ keytool utility. As an alternative to that utility, you can use many resources on the Internet to create a certificate and install it on the Apache Tomcat server.

Keytool is a key and certificate management utility that is included with Java SE capability. Keys ensure data integrity and enable authentication services by using digital signatures. Certificates are digitally signed statements that indicate that the public keys and related information of an entity have a particular value. When data is digitally signed, the signature can be verified to check the data integrity and authenticity. Key certificates can be cached for an application's communicating peers.

The -genkeypair command in the keytool utility generates a key pair. The key pair includes a public key and associated private key. The -genkeypair command wraps the public key into an X.509 v3 self-signed certificate, which is stored as a single-element certificate chain. This certificate chain and the private key are stored in a new keystore entry that is identified by an alias.

Note: The -genkeypair command was named -genkey in releases before Java SE 6. This old name is still supported, but the new name is preferred.

Procedure

To create a keystore and certificate, type the keytool command, as shown in this example:

keytool -genkeypair {-alias alias} {-keyalg keyalg} {-keysize keysize} {-sigalg sigalg}
where

For more information, search the Internet for Oracle keytool. For a list of basic commands and their options, on a command line, type keytool -help.

Feedback