Java Key Generator Config (pre 6.2)
Key Generator configuration required for all versions of KeyMaster prior to version 6.2.
From KeyMaster 6.2, OpenSSL is used to generate keys. For more information, see Installing KeyMaster. |
Key Generator Configuration
To generate the public, DER and private keys a properties file must be supplied to the KeyGenerator class as its first argument. This file must include ALL of the following properties in the table below. A sample configuration file is provided with the KeyMaster installation - this file is located within the examples directory of the KeyMaster distribution and is called keygen.props.
property | Example | Description |
---|---|---|
key.generator.private. key.store.filename |
|
The name and location of the file that the private key will be stored in. |
key.generator.public. key.store.filename |
|
The name and location of the file that the public key will be stored in. |
key.generator.public. key.der.filename |
|
The name and location of the DER The file name must end in '.der' |
|
|
The size of the generated key. Both the public and private keys use this size |
key.generator.security. provider.class.name |
|
The fully qualified name of the JCE provider’s Java class that generates the encryption key pairs. This class must also be in the Java classpath of the KeyMaster Key Generator servlet (it is usually in a JAR file that is included in the classpath – see Generating the Required Keys ). |
key.generator.security. provider.name |
|
The name of the provider of the Java class used to generate the encryption key pairs. |
|
|
Specifies the java.util.logging.Level required. The standard Java levels for logging messages are:
In a production system it is recommend that the logging level normally be set to SEVERE or WARNING. |
key.generator. FilenameAttribute |
|
Specifies the name of the file to log messages to. The file is NOT appended to. The existing log file will be overwritten. The file is created relative to the users current location. |
Only change the following settings if you have customised KeyMaster to use a different encryption class.
|
Example keygen.props file:
key.generator.private.key.store.filename=privatekey.store key.generator.key.size=1024 key.generator.public.key.store.filename=publickey.store key.generator.public.key.der.filename=publickey.der key.generator.security.provider.class.name=org.bouncycastle.jce.provider.BouncyCastleProvider key.generator.security.provider.name=BC key.generator.Level=ALL key.generator.FilenameAttribute=keygen.log
See also: