Skip to content

verify result is undefined #76

Description

@NathanHazout

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions