Encrypt payloads
- Last Updated: June 16, 2026
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
To protect the payload of the JSON Web Token (JWT), configure PAS for OpenEdge to encrypt the
payloads using JSON Web Encryption (JWE).
Note: The OpenEdge Advanced Security add-on is required to
use JWE tokens.
JWE uses asymmetric public key encryption to secure the
payload. The PAS for OpenEdge security administrator must create the keystore containing
a public key and private key pair. You must share the public key with the authentication
server so that it can use the public key to encrypt the payload. When PAS for OpenEdge
receives the encrypted payload, PAS for OpenEdge uses a corresponding private key to
decrypt the payload.The steps to configure payload encryption
include the following:
- Create a keystore containing a public and private key pair.
- Provide the public key certificate to the authentication server to encrypt the message.
- Configure PAS for OpenEdge to locate the private key to decrypt the message.
For more information on asymmetric public key encryption, see Asymmetric public key cryptography.
Create a keystore containing a public and private key pair
This example uses the default keystore included with PAS for OpenEdge. Production systems must generate a secure keystore based on your company-specific certificates.
For more general information on creating a keystore, see Use the keytool utility
Provide the public key certificate to the authentication provider to encrypt the message
To provide the necessary certificates
needed to encrypt the payload, you have two options:
-
Provide the URL of the keystore to the authentication server
-
Use the tools of the authentication server to locate public key certificate
Provide the URL of the keystore to the authentication server
You can share a URL to the keystore containing the public key
certificate for development and test systems. Configure PAS for OpenEdge to share
the default URL:
|
The authorization server uses the URL to get the keys.
|
Note: The
hostname and port identify the machine and
port of the PAS for OpenEdge instance.
Use the tools of the authentication
server to locate public key certificate
For production systems, it is more secure to limit the access to the public key
certificate by sharing it directly with the vendor. Typical steps include:
- Export the key certificate using the keytool utility.
keytool -exportcert -keystore C:\OpenEdge\WRK\oepas1\ablapps\oepas1\conf\oepas1.p12 -storepass password -alias defaultkey -file myCertificate.crtNote: This example uses the defaultkeystore,alias, andpassword. - Locate the certificate using the API, user interface, or tools of the authentication server.
Configure PAS for OpenEdge to locate the private key to decrypt the message
To decrypt the payload, configure PAS for OpenEdge to use the appropriate keystore containing the private key by configuring the following:- Set the related JWE properties in the relevant
oeablSecurity.propertiesfile.## "jwe": JWT Encryption jwtToken.keystore.jwe.key.selector=pkcs12EncKeySelector jwtToken.keystore.jwe.path=keystorePath jwtToken.keystore.jwe.pwd=keystorePassword jwtToken.keystore.jwe.alias=keystoreAlias jwtToken.keystore.jwe.cache=trueNote: ThekeystorePath,keystorePassword, andkeystoreAliasare unique to your system.Table 1. JWE properties Property Description jwtToken.keystore.jwe.key.selectorIdentifies the key selector. The valid values are: noJWEKeySelectorpkcs12EncKeySelector
jwtToken.keystore.jwe.pathjwtToken.keystore.jwe.pathPath to the local key store with private keys. Default: none. jwtToken.keystore.jwe.pwdEncrypted keystore password similar to jwtToken.keystore.pwdto access the keystore store defined byjwtToken.keystore.jwe.path. Default: none.jwtToken.keystore.jwe.aliasList of private key aliases in the JWE keystore. Default: none. jwtToken.keystore.jwe.cacheDefines whether to cache JWE private keys or extract them from the keystore every time. The default value is true.Note: This example uses apkcs12EncKeySelectoravailable with PingFederate. - Save the file.