Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fms-api-client - unable to verify the first certificate, local server #106

Closed
0-don opened this issue Feb 3, 2021 · 1 comment
Closed

Comments

@0-don
Copy link

0-don commented Feb 3, 2021

I am using the filemaker data api 18 with nodejs v14.15.4 and latest fms-api-client package.

I have a local filemaker server which doesnt have a real SSL certificate, when I try to use the package I always get a problem with the ssl verification since Filemaker server comes with a default SSL certificate which is not valid I get this error message:

{ code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', message: 'unable to verify the first certificate' }

I found a workaround but its not ideal it works but I always get a Nodejs warning message.

process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0

I think there is a real workaround which I didnt find yet in the fms-api-client package, I tried to use an option from the library which didnt seem to work.

agent: {rejectUnauthorized: false}

@0-don
Copy link
Author

0-don commented Feb 8, 2021

installed a lets encrypt ssl now it works fine

@0-don 0-don closed this as completed Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant