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

unable to verify LEAF signature #225

Open
SBits2019 opened this issue Jul 9, 2020 · 0 comments
Open

unable to verify LEAF signature #225

SBits2019 opened this issue Jul 9, 2020 · 0 comments

Comments

@SBits2019
Copy link

SBits2019 commented Jul 9, 2020

I am getting this error, when trying to use TLS.

UNABLE_TO_VERIFY_LEAF_SIGNATURE

my tls config is as follows;

const tlsOpts = {
  rejectUnauthorized: true,
  key: fs.readFileSync('./srv/ldapcert/key.pem'),
  cert: fs.readFileSync('./srv/ldapcert/cert.pem'),
};

I am on CentOS. I am using the base cert and the private key. I have been provided the complete cert chain and root + intermediate certs in pem format. I don't know what I am doing wrong, do I need to install the root certs in my trusted store or provide it in the config?

It works if I set rejectUnauthorized to false.

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