luana.fernandes | Posts: 9

Digital Certificate/PIV Card authentication

0 votes

Hi all,

I'm trying to use digital certificate authentication (with PIV card) for my signers, but I can't figure out how to format this in my JSON. Any ideas?


Duo_Liang | Posts: 3776

Reply to: Digital Certificate/PIV Card authentication

0 votes

Hi Luana,

 

Role Verifications like "Personal Certification" or customized external signer verification methods is not part of the package JSON. In order to configure digital certification authentication, you need an additional API call:

POST ​/api​/packages​/{packageId}​/roles​/{roleId}​/verification

With payload 

{"typeId":"personalCertificateSigning","payload":""}

You can also refer to the API Specification here.

 

Duo


luana.fernandes | Posts: 9

Reply to:

0 votes

Hi Duo. Thanks for your reply. I am getting this error when I try it:

{

    "messageKey": "error.forbidden.cannotEditDeletePkg",

    "technical": "package: zk5WtsvOfQ2jsoTMlwjRCo44dj0= cannot be edited.",

    "message": "Cannot edit or delete package.",

    "code": 403,

    "name": "Access Denied"

}


Duo_Liang | Posts: 3776

Reply to: Digital Certificate/PIV Card authentication

0 votes

Hi Luana,

 

Just had a quick check with support team, seems your package "zk5WtsvOfQ2jsoTMlwjRCo44dj0=" in US2 sandbox is in status "SENT", in which case you won't be able to edit the package.

Change the status to DRAFT before any edits:

PUT /api/packages/{packageId}

with payload

{"status":"DRAFT"}

 

Duo


luana.fernandes | Posts: 9

Reply to:

0 votes

Thank you so much @Duo!

Now I am getting a different error:

{

    "messageKey": "error.validation.signerVerification.featureDisabled",

    "code": 400,

    "cause": {

        "present": false

    },

    "message": "A Business validation has failed."

}


Duo_Liang | Posts: 3776

Reply to: Digital Certificate/PIV Card authentication

0 votes

Hi Luana,

 

Seems you haven't turned on the feature on your this account. (The other account with your company domain has been enabled) Kindly submit a support ticket and requesting for that.

 

Duo


luana.fernandes | Posts: 9

Reply to:

0 votes

Hi Duo. Thank you! That is weird because I am logging in with my work account.

Thanks, I will try to see how can I send this request using the correct account.


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off