Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Step 2: Make public key available

Copy the public key file to the server(s) hosting the Agent(s) that should encrypt variables:

Code Block
languagebash
titleExample where to copy the public key
linenumberstrue
# navigate to the Agent's <agent-data>/config directory
Set-Location $env:ProgramData/sos-berlin.com/js7/agent/config
# cd %ProgramData%/sos-berlin.com/js7/agent/config

# copy the agent.pub public key file from to the current location using a file transfer tool or your clipboard

Setting up the Example

The example introduces a JS7 - Script Include and a workflow holding two jobs to encrypt and to decrypt variables.

...

  • The CryptoPowerShell Script Include implements the Encrypt-Variable and Decrypt-Variable PowerShell functions.
  • Encryption and decryption is performed without use of external utilities.

Interoperability

Variables can be

  • encrypted by Agents operated for Windows and can be decrypted by Agents operated for Windows and Unix.
  • encrypted by Agents operated for Unix and can be decrypted by Agents operated for Unix.

However, encrypting variables by Agents on Unix and decrypting by Agents operated for Windows is not supported by the proposed implementation.