Signer.Digital
User guide (Under Construction)
×
Menu
Index
Certificate and Signing API
 
IMPORTANT NOTE: While calling Sign API, if you had set OTP Authentication for Key uses, you need to first call GenKeyAuthOTP and SetKeyAuthOTP to enable key uses.  The related error codes are: 'OA03A' or 'OA03B' or 'OA04' If these error codes are returned then call GenKeyAuthOTP and to submit received OTP call SetKeyAuthOTP API before trying to call Sign API again.
 
 
GetProfileCert action
 
GetProfileCert action is used to get the Certificate referred to by Certificate Profile.
 
HTTP Method: GET
 
Headers: As per common headers listed at Kluis API Headers
 
Query String Param:
Property
Description
Data Type
CertProfileName
Certificate Profile Name.
String
 
Sample Url:
https://api.signer.digital/signer/CertificateV1/GetProfileCert?CscId=<===YourCscId===>&Password=<== Pwd ==>&CertProfileName=InvoiceProfile
Please note that CscId and Password may be in headers.
 
Response: SigningCertResp
Property
Description
Data Type
Status_cd
"1" for success, "0" for Failure.
String
Certificate
Base64 of Certificate bytes.
String
 
 
SignPDF action
 
SignPDF action is used to get the PKCS7 container suitable for PDF injection.
 
HTTP Method: POST
 
Headers: As per common headers listed at Kluis API Headers
 
Query String Param: None
 
BODY: Type HashSignReq
Property
Description
Data Type
DataHash
Hash of PDF to be signed. Use pdf component / library to get hash.
String
AppProfileName
Client application profile name.
String
CertProfileName
Kluis Certificate Profile Name.
String
TokenPin
Token PIN. This is set at the time of Token Initialization.
String
HashAlgorithm
Algorithm. ex: "SHA-256"
String
 
Sample Url:
https://api.signer.digital/signer/CertificateV1/SignPDF
 
Response: APIResp
Property
Description
Data Type
Status_cd
"1" for success, "0" for Failure.
String
Data
Base64 of CMS PKCS7 Signature bytes. This is signature container suitable for adding to pdf file.
String
 
 
SignHash action
 
SignHash action is used to get RSA PKCS1 signature of Hash.
 
HTTP Method: POST
 
Headers: As per common headers listed at Kluis API Headers
 
Query String Param: None
 
BODY: Type HashSignReq
Property
Description
Data Type
DataHash
Hash to be signed.
String
AppProfileName
Client application profile name.
String
CertProfileName
Kluis Certificate Profile Name.
String
TokenPin
Token PIN. This is set at the time of Token Initialization.
String
HashAlgorithm
Not used in SignHash Action.
String
 
Sample Url:
https://api.signer.digital/signer/CertificateV1/SignHash
 
Response: APIResp
Property
Description
Data Type
Status_cd
"1" for success, "0" for Failure.
String
Data
Base64 of RSA PKCS1 Signature bytes.
String