Unable to verify the first certificate error

I’m developing a plugin with Atlassian Forge , it integrates Jira Cloud and our product ALM Server.

I use Fetch API of @forge/api to access my ALM Server, but I get the error in the below picture. It may be the SSL certificate trust issue.

So I add the code to the Fetch options below:

options.agent = new https.Agent({
rejectUnauthorized: false
});

But from the logs I printed, the ‘rejectUnauthorized’ property is ignored directly. Is it because of the Forge Fetch API?

Can someone tell me why?

Thanks in advance.

image

This looks like the same problem as here:

Make sure that your ALM server has a valid certificate & the chaining is all correct, then try again.

1 Like