- Generates a PASSporT
- Checks the TransNexus STI-CPS health
- Prints the health response body
- Generates an STI-CPS publish authentication token
- Publishes the PASSporT to the TransNexus STI-CPS
- Prints the publish response body
- Generates an STI-CPS retrieve authentication token
- Retrieves the PASSporT from the TransNexus STI-CPS
- Prints the retrieve response body
- Prints the latency of each request
The private key must be in the file ./privateKey.pem
. The config file must be ./config.json
. The config file must include all of the fields show below:
{
"certificateRepositoryUrl": "https://certificates.example.com/example.pem",
"serviceProviderCode": "1234",
"callingNumber": "12013776051",
"calledNumber": "19032469103",
"attestationLevel": "A",
"retentionTime": 3
}