Versions Compared

Key

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

Table of Contents
typeflat

Background

The sample scripts use some software components(jq, base64, etc.) that might not be possible to install or use (due to system restrictions or variations in their features or way of executing).

For those cases, and if docker is available, the easiest solution would be to generate a docker image with the required components, and then set up a sh script to allow the execution of the WIPO sourced scripts.

Docker image

The following dockerfile, would allow to generate a simple image with the most common software tools that are needed for the execution of the scripts. 

...

Code Block
 docker build ./ -t <image_name>

Execute scripts

To generate the asymmetric keys:

See a.1.- Generation of (ES256) asymmetric keys for more info.

...

Code Block
docker run -it --rm -v $(pwd):/src <image_name> sh /src/scripts/private_key_jwt_generation.sh output_folder private_es256_key_name.pem public_es256_key_name.pem


To retrieve the authentication tocken:

See a.2.- Sample authentication script (using JWT private key)

...