Versions Compared

Key

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

New DAS exchange API

Table of Contents
maxLevel5
typeflat

Page Tree
expandCollapseAlltrue
rootNew DAS exchange API
startDepth0
pagea.- Initial private_key_jwt registration process

openssl command can be used to generate ES256 asymmetric keys as required by the FAPI part 2 specification. Office will keep the private key and share the public key for registration with WIPO. Below is an example of script to generate ES256 asymmetric keys.

Code Block
languagebash
themeRDark
titleprivate_key_jwt_generation.sh script
collapsetrue
#!/bin/bash
# Set the environment
OUTPUT_FOLDER=$1
PRIVATE_KEY_ES256="${OUTPUT_FOLDER}/${2}"
PUBLIC_KEY_ES256="${OUTPUT_FOLDER}/${3}"
CLIENT_NAME=DAS

#create output folder if it does not exist

mkdir -p "${OUTPUT_FOLDER}"

# Generates the ES256 keys
openssl ecparam -genkey -name prime256v1 -noout -out "${PRIVATE_KEY_ES256}"
 
# Extracts the public key
openssl ec -in "${PRIVATE_KEY_ES256}" -pubout -out "${PUBLIC_KEY_ES256}"
 
# Generates an x509 certificate 
CERT_KEY_ES256="${OUTPUT_FOLDER}/es256_cert.pem"
OPENSSL_CONF="${OUTPUT_FOLDER}/openssl.cnf"
CERT_CN="${CLIENT_NAME} private_key_jwt authentication"
# Build the certificate config file  
printf '[ req ]\n' > "${OPENSSL_CONF}"
printf 'prompt = no\n' >> "${OPENSSL_CONF}"
printf 'distinguished_name = req_distinguished_name\n' >> "${OPENSSL_CONF}"
printf '[ req_distinguished_name ]\n' >> "${OPENSSL_CONF}"
printf 'CN = %s\n' "${CERT_CN}" >> "${OPENSSL_CONF}"
# Creates the x509 certificate 
openssl req -x509 -new -config "${OPENSSL_CONF}" -key "${PRIVATE_KEY_ES256}" -out "${CERT_KEY_ES256}"

...

Files

...

Description

...

New DAS exchange API

Children Display
pageNew DAS exchange API