Token Registration (PKI) API

Call this function to register a PKI token. You can specify the token status during the registration.

Below is the URL to access the API functions:

PUT /CentagateWS/webresources/cert/register/pkcs7/{admin_username}

Parameters

NoParametersOccurrenceDescriptions
1usernameRequiredThe user's username
2SignatureRequiredThe PKCS #7 attached signature encode in base64
3AlgorithmOptionalThe algorithm used during the signing. Valid values are 0 = sha1, 1 = sha256, 2 = sha384, 3 = sha512
4timestampRequiredUnix Timestamp In Millisecond When User Register The Certificate. Server Will Reject The Request If The Request Is 5 Minutes More Or Less Than The Server Current Time.
5StatusRequiredToken status which required are 1 = Pending, 2 = Valid, 3 = Temp Deactivated, 4 = Deactivated
6cenTokenRequiredThe hmac value calculated using sha256 with SecretCode as Key and plaintext from admin Username + AuthToken

Sample Code

As in below there are some examples of source code of access the API functions: