cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Error: unable to get local issuer certificate in IRPA

AakashN24
Participant
2,246

I Made a simple bot to get data form the service using custom script

but I'm getting this error while running the bot,

I have checked the service on postman it's working fine.

Custom script :

const options = { resolveBodyOnly : true, responseType: 'json', url: '<URL>', method: 'GET', headers: { 'Accept' : 'application/json', 'Content-Type': 'application/json' }, ignoreClientCertificate: true,
};const response = await irpa_core.request.call(options);irpa_core.core.log(response);return response;

Please help me in resolving this error.

View Entire Topic
Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert

Hi rameshraghu005

You have 2 ways to solve it

1.Add parameter useWinCa : true in your custom script.Attached is the screen shot for your reference.

2. You can set a string certificate in the options parameter .

options.https.certificateAuthority = [...arrayCertificatString]

DonaldD
Discoverer
0 Kudos

Hi Chaitanya,

Just want to say that option 1 worked for me.

Thank you very much

Thanks Aakash for raising this concern. 🙂