14-08-24 10:56 AM - edited 14-08-24 11:00 AM
Hi All,
I'm currently working on a API, where i have the cert's installed into certmgr, which is required to make the connection. I'm using below actions but unable to resolve the issue, please let me know if anyone has faced similar issues.
1. Using HTTP Utility v10.0.2 - Load Certificate Action
Passing the Subject value of the installed cert from certmgr screen
When i try to run this stage, getting the error that "Could not execute the code stage - object reference not set to a instance of an object"
Can anyone tried referring the cert installed in certmgr via blueprism?
Answered! Go to Answer.
16-08-24 02:47 AM - edited 16-08-24 02:57 AM
Thank you @Brigianakopec for your inputs.
I have already tried providing the values without the CN value but in my case there few more params like CN. So prvoided the values only in comma seperated values but it did not work.
But i have managed to make it work with SubjectKeyIdentifier value, changed the global code from subject to SubjectKeyIdentifier.
Also there are 2 cert stores, one is LocalMachine and another one is CurrentUser. i had to refere the cert from CurrentUser, so updated the code to CurrentUser cert store and it worked.
The changes to be done is into Intialize page Global Code and Load Certificate action.
15-08-24 05:19 PM
Could you provide a screenshot of the parameters you put?
Note: Make sure you enter the subject without the CN:
16-08-24 02:47 AM - edited 16-08-24 02:57 AM
Thank you @Brigianakopec for your inputs.
I have already tried providing the values without the CN value but in my case there few more params like CN. So prvoided the values only in comma seperated values but it did not work.
But i have managed to make it work with SubjectKeyIdentifier value, changed the global code from subject to SubjectKeyIdentifier.
Also there are 2 cert stores, one is LocalMachine and another one is CurrentUser. i had to refere the cert from CurrentUser, so updated the code to CurrentUser cert store and it worked.
The changes to be done is into Intialize page Global Code and Load Certificate action.