Perhaps this might help: Client Side SSL in node.js with fetch. While it uses fs.readFileSync
to read the file, it might still work with require
.
Again I can only speculate as I don’t have anything that requires access as you are attempting so have not attempted.