OESECTOOL utilities
- Last Updated: January 23, 2026
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
OESECTOOL includes general utilities to configure OAuth2 and SAML resources needed for
development and testing. These utilities can:
- List available commands.
- Generate a sample configuration command.
- Check port availability.
- Generate and parse tokens.
- Import and export certificates.
The utilities use this syntax:
|
Note: If a command requires a password, you are prompted to enter
a valid password.
Commands
- command
- The utility commands include:
| Command | Description |
|---|---|
| catalina_opts | Provides a command template for System Administrators to set the PAS for OpenEdge
instance truststore to the OESECTOOL-created truststore containing
self-signed certificates for testing purposes, when using HTTPS
requests.
|
| checkports | Checks port availability.
|
| expcert | Exports a public key
certificate. |
| genjwe | Generates a JWE token.
|
| genjws | Generates a JWS token.
|
| help | Provides a list of commands. |
| impcert | Imports a public key
certificate. |
| parsejwe | Decrypts a JWE token to extract a JWS token and validates the JWS
signature. |
| parsejws | Parses and validates a JWS token.
|
Note: The OpenEdge Advanced
Security add-on is required to use JWE tokens.
parameter- The utility parameters include:
| Parameter | Description |
|---|---|
| -alias | Certificate alias |
| -askoverwrite | Optional. Asks whether to overwrite message, yes or no. The default value is
yes. |
| -cert certificatefilepath | Path to a certificate file |
| -encalg encryptionalgorithm | Encryption algorithm |
| -encalias encryptionkeyalias | The encryption key alias supplied by the PAS for OpenEdge System Administrator and added to the keystore. |
| -encmethod encryptionmethod | Encryption method |
| -jwe jwetokenfilepath | JWE token file path |
| -jws jwsfilepath | JWS token file path |
| -keystore keystorefilepath | Path to keystore file |
| -payload jsonpayloadfilepath | Payload JSON file path |
| -port portnumber | Port number for HTTP requests |
| -ports portnumber | Port number for HTTPS requests |
| -sigalias signaturekeyalias | Signature key alias |
| -sigalg signaturealgorithm | Signature algorithm |
Import certificates
To import a public key certificate, use:
|
Export certificates
To export a public key certificate, use:
|
|
Creating keys and certificates
For more information about creating keys and certificates, see Manage OpenEdge Keys and Certificates.
Generate a JWS token example
To generate a JWS token, use:
|
Note: The command has been reformatted.
The
generated jwsToken file is:
|
For more details on the payload required by this command, see Sample Payload for OAuth2.
Generate a JWE token example
To generate a JWE token, use:
|
The generated
jweToken file is:
|
Sample Payload
This is an example of a JSON payload file:
|
Parse a JWE token
To decrypt a JWE token, extract a JWS token, and then validate the JWS signature by
using:
|
The output is:
|
Parse a JWS token
To parse and validate a JWS token, use:
|
The output is:
|