Based on the mocha tests and my own experiments openssl pkcs12 command seems not be supported? Buffer parameter defaults to in/infile? opensslAsync('pkcs12', buffer, { clcerts: true, nokeys: true, out: 'filename.crt', }) .then(data => console.log(data))