+

Search Tips   |   Advanced Search

 

PersonalCertificateCommands command group for the AdminTask object

 

You can use the Jython or Jacl scripting languages to configure security with the wsadmin tool. The commands and parameters in the PersonalCertificateCommands group can be used to create and manage personal or signer certificates. The PersonalCertificateCommands command group for the AdminTask object includes the following commands:

 

createSelfSignedCertificate

The createSelfSignedCertificate command creates a personal certificate in a key store.

Target object None.

Required parameters and return values

-keyStoreName

The name that uniquely identifies the key store configuration object. (String, required)

-keyStoreScope

The scope name of the key store. (String, optional)

-certificateAlias

The name that uniquely identifies the certificate request in a key store. (String, required)

-certificateV

The version of the certificate. (String, required)

-certificateSize

The size of the certificate. (Integer, required)

-certificateCommonName

The common name of the certificate. (String, required)

-certificateOrganization

The organization of the certificate. (String, optional)

-certificateOrganizationUnit

The organizational unit of the certificate. (String, optional)

-certificateLocality

The locality of the certificate. (String, optional)

-certificateState

The state of the certificate. (String, optional)

-certificateZip

The zip code of the certificate. (String, optional)

-certificateCountry

The country of the certificate. (String, optional)

-certificateValidDays

The amount of time in days for which the certificate is valid. (Integer, optional)

Examples

Batch mode example usage:

Interactive mode example usage:

 

deleteCertificate

The deleteCertificate command deletes a personal certificate from a key store.

Target object None.

Required parameters and return values

-keyStoreName

The name that uniquely identifies the key store configuration object. (String, required)

-keyStoreScope

The scope name of the key store. (String, optional)

-certificateAlias

The name that uniquely identifies the certificate request in a key store. (String, required)

Examples

Interactive mode example usage:

 

exportCertificate

The exportCertificate command exports a personal certificate from one key store to another.

Target object None.

Required parameters and return values

-keyStoreName

The name that uniquely identifies the key store configuration object. (String, required)

-keyStoreScope

The scope name of the key store. (String, optional)

-keyStorePassword

The password to the key store. (String, required)

-keyFilePath

The full path to a key store file that is located in a file system. The store from where a certificate will be imported or exported. (String, required)

-keyFilePassword

The password to the key store file. (String, required)

-keyFileType

The type of the key file. (String, required)

-certificateAlias

The name that uniquely identifies the certificate request in a key store. (String, required)

-aliasInKeyStore

(String, optional)

Examples

Interactive mode example usage:

 

extractCertificate

The extractCertificate command extracts the signer part of a personal certificate to a file.

Target object None.

Required parameters and return values

-keyStoreName

The name that uniquely identifies the key store configuration object. (String, required)

-keyStoreScope

The scope name of the key store. (String, optional)

-certificateAlias

The name that uniquely identifies the certificate request in a key store. (String, required)

-certificateRequest FilePath

The full path of the request file that contains the certificate. (String, required)

-base64Encoded

Set the value of this parameter to true if the certificate is ascii base 64 encoded. Set the value of this parameter to false if the certificate is binary. (Boolean, required)

Examples

Batch mode example usage:

Interactive mode example usage:

 

getCertificate

The getCertificate command obtains information about a particular personal certificate in a key store.

Target object None.

Required parameters and return values

-keyStoreName

The name that uniquely identifies the key store configuration object. (String, required)

-keyStoreScope

The scope name of the key store. (String, optional)

-certificateAlias

The name that uniquely identifies the certificate request in a key store. (String, required)

Examples

Interactive mode example usage:

 

importCertificate

The importCertificate command imports a personal certificate from a key store.

Target object None.

Required parameters and return values

-keyStoreName

The name that uniquely identifies the key store configuration object. (String, required)

-keyStoreScope

The scope name of the key store. (String, optional)

-keyFilePath

The full path to a key store file that is located in a file system. The store from where a certificate will be imported or exported. (String, required)

-keyFilePassword

The password to the key store file. (String, required)

-keyFileType

The type of the key file. (String, required)

-certificateAliasFromKeyFile

The certificate alias in the key file from which the certificate is being imported. (String, required)

-certificateAlias

The name that uniquely identifies the certificate request in a key store. (String, required)

Examples

Interactive mode example usage:

 

listPersonalCertificates

The listPersonalCertificates command lists the personal certificates in a particular key store.

Target object None.

Required parameters and return values

-keyStoreName

The name that uniquely identifies the key store configuration object. (String, required)

-keyStoreScope

The scope name of the key store. (String, optional)

Examples

Interactive mode example usage:

 

receiveCertificate

The receiveCertificate command receives a signer certificate from a file to a personal certificate.

Target object None.

Required parameters and return values

-keyStoreName

The name that uniquely identifies the key store configuration object. (String, required)

-keyStoreScope

The scope name of the key store. (String, optional)

-certificateAlias

The name that uniquely identifies the certificate request in a key store. (String, required)

-certificateFilePath

The full path of the file that contains the certificate. (String, required)

-base64Encoded

Set the value of this parameter to true if the certificate is ascii base 64 encoded. Set the value of this parameter to false if the certificate is binary. (Boolean, required)

Examples

Batch mode example usage:

Interactive mode example usage:

 

replaceCertificate

The replaceCertificate command replaces a personal certificate with a new one. Replaces all signer certificates from the personal certificate.

Target object None.

Required parameters and return values

-keyStoreName

The name that uniquely identifies the key store configuration object. (String, required)

-keyStoreScope

The scope name of the key store. (String, optional)

-certificateAlias

The name that uniquely identifies the certificate request in a key store. (String, required)

-replacementCertifi cateAlias

The alias of the certificate that is used to replace a different certificate. (String, required)

-deleteOldCert

Set the value of this parameter to true if you want to delete the old signer certificates during certificate replacement. Otherwise, set the value of this parameter to false. (Boolean, optional)

-deleteOldSigners

Set the value of this parameter to true if you want to delete the old certificates during certificate replacement. Otherwise, set the value of this parameter to false. (Boolean, optional)

Examples

Batch mode example usage:

Interactive mode example usage:




 

Related tasks


Use the AdminTask object for scripted administration

 

Related Reference


Commands for the AdminTask object

 

Reference topic