Description
I tried to run the following openssl command:
openssl pkcs12 -in .p12 -clcerts -nokeys -out signerCert.pem -passin pass:
in Nodejs looks like this:
openssl(['pkcs12', '-config', { name:'cer.p12', buffer: buffervar }, '-clcerts', '-nokeys', '-out', 'Cer.pem', '-passin', 'pass:password'], function (err, buffer) {
console.log(err.toString(), buffer.toString());
});
I get always the errror
OpenSSL process ends with code 1
[💻] Usage: pkcs12 [options]
[💻] where options are
[💻] -export output PKCS12 file
[💻] -chain add certificate chain
[💻] -inkey file private key if not infile
[💻] -certfile f add all certs in f....
If I do it without password, then I get the same error. Where is my issue?
At the terminal it runs.
Thanks in advance.