+

Search Tips   |   Advanced Search

AuditEncryptionCommands (AdminTask)

We can use the Jython scripting language to configure the security auditing system with wsadmin.sh. Use commands in the AuditEncryptionCommands group to encrypt audit records.


createAuditEncryptionConfig

Encrypt audit records. We can import the certificate from an existing key file name containing that certificate or automatically generate a certificate. User must have auditor role.

Target object: None

Required parameters

Optional parameters

Return value

The command returns the shortened form of the reference ID of the created encryption keystore if the system successfully creates the audit encryption configuration, as the following example output displays:

Batch mode example

Interactive mode


createAuditSelfSignedCertificate

Create a self-signed certificate. Automatically generate a certificate for encryption and signing or to import that certificate into the keystore. User must have auditor role.

Target object: None

Required parameters

Optional parameters

Return value

True if the system successfully creates the self-signed certificate.

Batch mode example

Interactive mode


deleteAuditCertificate

Delete a self-signed certificate from an audit keystore. User must have auditor role.

Target object: None

Required parameters

Optional parameters

Return value

Returns true if the system successfully deletes the audit certificate.

Batch mode example

Interactive mode


deleteAuditEncryptionConfig

Delete the encryption model used to encrypt the audit records. The command does not remove keystore files or the certificates. User must have auditor role.

Target object: Non.

Return value

Returns true if the system successfully deletes the audit encryption configuration.

Batch mode example

Interactive mode


disableAuditEncryption

Disable the encryption of audit records. User must have auditor role.

Target object: None

Return value

Returns true if the system successfully disables audit record encryption.

Batch mode example

Interactive mode


enableAuditEncryption

Enable the encryption of audit records. User must have auditor role.

Target object: None

Return value

Returns true if the system successfully enables audit record encyption.

Batch mode example

Interactive mode


exportAuditCertificate

Export a self-signed certificate from a keystore. To use this command...

Target object: None

Required parameters

Optional parameters

Return value

Returns true if the system successfully exports the audit certificate.

Batch mode example

Interactive mode


exportAuditCertToManagedKS

Export a self-signed certificate from an audit keystore to a managed audit keystore. User must have auditor role.

Target object: None

Required parameters

Optional parameters

Return value

Returns true if the system successfully exports the audit certificate.

Batch mode example

Interactive mode


getAuditCertificate

Retrieve the attributes for an audit self-signed certificate in an audit keystore. The user must have the monitor administrative role to run this command.

Target object: Non.

Required parameters

Optional parameters

Return value

The command returns a list of attributes associated with the audit certificate.

Batch mode example

Interactive mode


getAuditEncryptionConfig

Retrieve the encryption model that the system uses to encrypt the audit records. The user must have the monitor administrative role to run this command.

Target object: None

Return value

The command returns a list of attributes associated with the encryption model, as the following example output displays:

Batch mode example

Interactive mode


getEncryptionKeyStore

Retrieve the attributes for the keystore containing the certificate that the system uses to encrypt the audit records. The user must have the monitor administrative role to run this command.

Target object: None

Return value

The command returns a list of attributes for the keystore of interest, as the following example displays:

Batch mode example

Interactive mode


importAuditCertFromManagedKS

Import a self-signed certificate into a keystore from a managed audit keystore. Use this command internally to automatically generate a certificate for encryption or signing and to import a certificate into the keystore. User must have auditor role.

Target object: None

Required parameters

Optional parameters

Return value

Returns true if the system successfully imports the audit certificate.

Batch mode example

Interactive mode


importAuditCertificate

Import a self-signed certificate into a keystore. Use this command internally to automatically generate a certificate for encryption or signing and to import a certificate into the keystore. To use this command

Target object: None

Required parameters

Optional parameters

Return value

Returns true if the system successfully imports the audit certificate.

Batch mode example

Interactive mode


importEncryptionCertificate

Import the self-signed certificate that the system uses to encrypt audit data from the encryption keystore into a managed keystore in security.xml. User must have auditor role.

Target object: None

Required parameters

Optional parameters

Return value

Returns true if the system successfully imports the encryption certificate.

Batch mode example

Interactive mode


isAuditEncryptionEnabled

Determine if audit record encryption is enabled. The user must have the monitor administrative role to run this command.

Target object: None

Return value

Returns true if audit record encryption is enabled.

Batch mode example

Interactive mode


listAuditEncryptionKeyStores

Retrieve the attributes for each configured encryption keystore from the audit.xml file. The command returns attributes for active and inactive keystores. The user must have the monitor administrative role to run this command.

Target object: None

Return value

The command returns a list of attributes for each configured keystore, as the following example output displays:

Batch mode example

Interactive mode


listCertAliases

Retrieve a list of the personal certificates in the keystore, as specified by the keystore name and scope of interest. The user must have the monitor administrative role to run this command.

Target object: None

Required parameters

Optional parameters

Return value

The command returns a list of certificate aliases for the personal certificates configured for the keystore, as the following sample output displays:

Batch mode example

Interactive mode


modifyAuditEncryptionConfig

Modify the encryption model that the system uses to encrypt the audit records. Specify values for the -enableAuditEncryption, -certAlias, and encryptionKeyStoreRef parameters to use an existing keystore. Do not specify the -importCert or -autogenCert parameters if you use an existing keystore. User must have auditor role.

Target object: None

Required parameters None

Optional parameters

Return value

Returns true if the system successfully updates the configuration.

Batch mode example

Interactive mode


renewAuditCertificate

Renew a self signed certificate in an audit keystore. User must have auditor role.

Target object None

Optional parameters

Return value

Returns true if the system successfully updates the configuration.

Batch mode example

Interactive mode

  • AuditKeyStoreCommands (AdminTask)
  • AuditEmitterCommands (AdminTask)
  • AuditSigningCommands (AdminTask)
  • AuditEventFactoryCommands (AdminTask)
  • AuditFilterCommands (AdminTask)
  • AuditNotificationCommands (AdminTask)
  • AuditPolicyCommands (AdminTask)
  • AuditEventFormatterCommands (AdminTask)