const x509 = require('x509'); var SegfaultHandler = require('segfault-handler'); SegfaultHandler.registerHandler("crash.log"); var entry = x509.parseCert('/root/test/cert.pem'); console.log('done'); console.log(entry);