Encrypting the Client_Secret Key

After finishing the OAuth server configuration and before you can continue, you need to encrypt the client_secret key. You need this encrypted value to enter in the client_secret parameter in several of the upcoming configuration steps. You must use an AES () tool as described in the instructions here.

Prerequisites: You have completed the steps in Installing and Configuring OAuth. You need the values that you defined in the following parameters of the configuration.properties file:

  • Encryption.Key (32-characters long)
  • Encryption.IV (16-characters long)

To encrypt the client_secret key

  1. Open an AES encryption tool, for example the one at https://www.devglan.com/online-tools/aes-encryption-decryption.
  2. Enter the following values. The values marked with an asterisk (*) are names of parameters in the configuration.properties file. Enter the corresponding value that is defined for that parameter in the configuration file:
    • Text to be encrypted: Client Secret (that you will later also enter when Configuring ServiceNow System Properties)
    • Encryption mode: CBC
    • Key size: 256 (bits)
    • IV () value: Encryption.IV*
    • Secret key: Encryption.Key*
  3. Click Encrypt.
  4. Copy the encrypted output (for example, AMEt9lVcYfWWZNYfNLNnxw==) to a safe place. X

With this encrypted value, you can continue with the next implementation step, Adding the OAuth Configuration to AE Clients.