...
...
 
 |  Column | 
|---|
 RequirementsThe script needs to be executed in a linux shell (bash, git, etc), just check that the "shebang" line ('#!/.....' ) matches your system. In order to be able to execute the script, please ensure that the following software is installed in your system: 
 Executing scriptsFor generating the asymmetric key The sample script (  |  
  | 
...
d.1.- Generation of (ES256) asymmetric keys) can be executed as follow: 
 
 |  Code Block | 
|---|
 sh ./private_key_jwt_generation.sh output_folder private_es256_key_name.pem public_es256_key_name.pem  |  
  Image Modified
 Key are then created inside the indicated output folder:  Image Modified
 For generating the authentication tokenThe sample script (  |  
  | 
...
...
das-ib-api-id1authorized_client_id {path_to_private_pem_key}/private_es256_key_name.pem |  
  Image Modified
  |  
  | 
Windows / OSX
As there are some differences between the previously mentioned soft needed for the proper execution of the scripts, it might be better to execute it via docker.
#First create the docker file for the image (with dependencies)
|  Code Block | 
|---|
| language | yml | 
|---|
 | title | dockerfile | 
|---|
 | linenumbers | true | 
|---|
 | collapse | true | 
|---|
 
  | 
FROM debian
# Install required system packages
RUN apt-get update
RUN apt-get -y install  gnupg vim ssh
RUN apt-get -y install git openssh-client less iproute2 procps apt-transport-https coreutils curl gnupg-agent software-properties-common lsb-release jq xxd 
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get -y install nodejs  | 
#build the image
|  Code Block | 
|---|
 docker build ./ -t <image_name>  | 
# execute docker as:
 
 |  Column | 
|---|
  |  |  Page Tree | 
|---|
 | root | a.- New DAS exchange API | 
|---|
 | page | a.- Initial private_key_jwt registration process | 
|---|
 
  |  
  |  
  | 
|  Code Block | 
|---|
| docker run -it --rm -v $(pwd):/src <image_name> sh /src/scripts/jwt-ipo-das.sh client_ID /src/config/client_pem_file.pem 
 
  |