a.- Initial private_key (JWT) registration process
...
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
language
bash
theme
RDark
title
private_key_jwt_generation.sh script
collapse
true
#!/bin/bash
# Set the environment
# set the output folder
OUTPUT_FOLDER=$1
$3
#create output folder if it does not exist
mkdir -p "${OUTPUT_FOLDER}"
# Generates the ES256 keys
openssl ecparam -genkey -name prime256v1 -noout -out "${
PRIVATE
FILES_
KEY_ES256}
NAME}_private.pem"
# Extracts the public key
openssl ec -in "${
PRIVATE
FILES_
KEY_ES256}
NAME}_private.pem" -pubout -out "${
PUBLIC
FILES_
KEY_ES256}
NAME}_public.pem"
# Generates an x509 certificate
CERT_KEY_ES256="${