This script:
- Generates a PASSporT
- Generates an STI-CPS publish authentication token
- Publishes the PASSporT to the TransNexus CPS using an HTTP POST
- Generates an STI-CPS retrieve authentication token
- Retrieves the PASSporT from the TransNexus CPS using an HTTP GET
The TransNexus CPS is a completely free STI-CPS that can be used by any service provider with a SHAKEN certificate issued by an STI-PA approved STI-CA.
This script requires a private key and a config file to function. 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
}