Page History
...
Display feature availability | ||
---|---|---|
|
Usage
When defining the job either:
...
- specify the
JITL
job class andcom.sos.jitl.jobs.encrypt.EncryptJob
Java class name.
Example:
Download (upload .json) The workflow configuration can be downloaded from here: encryptionValue.workflow.json
This example workflow includes 3 jobs
- job_encrypt: For encrypting a value. The certificate is assigned directly as a string value. The value for the certificate can also be provided by a job resource.
- job_result: to display the result of the encryption.
- decrypt_secret: to decrypt the encrypted value. Decryption is performed with the script
js7_decrypt.sh.
Please refere to https://kb.sos-berlin.com/x/Qx1SC
To create the job job_encrypt
you can use the job wizzard like this.
Explanation:
- Add an empty job from the instruction panel.
- Specify a name and a label for the job.
- Select an Agent.
In a next step invoke the job wizard that you find in the upper right corner of the job property editor. The wizard brings up the following popup window:
Explanation:
- From the list of available job templates select the EncryptJob.
...
Then hit the Next button to make the job wizard display available arguments:
When hitting the Submit button the wizard adds the required arguments to the job which should look like this:
Documentation
The EncryptJob class accepts the following arguments:
Name | Description |
---|---|
encipherment_certificate | The CA signed or self-signed X.509 certificate. Alternatively the public key can be specified. This variable is normally provided via a job resource that is managed with the certificate management. |
in | Specifies the input value that should be encrypted, typically a secret. One of the options 'in' or 'infile' has to be specified. |
infile | Specifies the path to a file that should be encrypted. One of the options 'in' or 'infile' has to be specified. This option requires use of the 'outfile' . |
outfile | Specifies the path to the output file that will be created holding the encrypted content of the input file. The option is used if 'infile' is specified. |
...
Name | Description |
---|---|
js7EncryptedValue | When infile is specified the value contains
When infile is not specified.
The value is needed for decoding:
|
in | Specifies the input value that should be encrypted, typically a secret. One of the options 'in' or 'infile' has to be specified. |
infile | Specifies the path to a file that should be encrypted. One of the options 'in' or 'infile' has to be specified. This option requires use of the 'outfile' . |
outfile | Specifies the path to the output file that will be created holding the encrypted content of the input file. The option is used if 'infile' is specified. |
Using in a workflow
This example workflow includes 3 jobs
- job_encrypt: For encrypting a value. The certificate is assigned directly as a string value. The value for the certificate can also be provided by a job resource.
- job_result: to display the result of the encryption.
- decrypt_secret: to decrypt the encrypted value. Decryption is performed with the script
js7_decrypt.sh.
Please refere to https://kb.sos-berlin.com/x/Qx1SC
Further Resources
- JS7 - JITL Common Variables
- JS7 - How to make a global Business Date variable available to jobs
- JS7 - How to update a Job Resource using Unix Shell
...