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

verify result is undefined #76

Open
NathanHazout opened this issue Feb 5, 2019 · 0 comments
Open

verify result is undefined #76

NathanHazout opened this issue Feb 5, 2019 · 0 comments

Comments

@NathanHazout
Copy link

Hello,

Given this snippet of code:

let myCertificatePath = path.join(__dirname, 'nathan.crt');
let caBundlePath = path.join(__dirname, 'ca-bundle.pem');
x509.verify(myCertificatePath, caBundlePath, function(err, result){
    console.log("finished validation");
    if(err){
        console.log("validation error");
        console.log(err);
    } else {
        console.log("validation result");
        console.log(result);
    }
});

My console log prints:

validation result
undefined

What does it mean? What could lead result to be undefined, without any errors?

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