am trying to generate pkc12 via command openssl pkcs12 -export -in cert.pem -inkey "privateKey.pem" -certfile cert.pem -out myProject_keyAndCertBundle.p12
and it is give me
zsh: command not found: pkcs12
Solved! Go to Solution
Thanks for letting us know how you solved the problem! 😀
The error "zsh: command not found: pkcs12" suggests that the shell doesn't recognize the command pkcs12, which is likely due to a misinterpretation of the openssl command syntax.
Here's a concise solution:
Your command is mostly correct, but the shell seems to be misinterpreting it. Ensure you're using the correct syntax and there are no inadvertent line breaks. Try running the openssl command with the pkcs12 sub-command:
openssl pkcs12 -export -in cert.pem -inkey privateKey.pem -certfile cert.pem -out myProject_keyAndCertBundle.p12
Make sure OpenSSL is installed, and it's included in your system's PATH. If not, you might need to install or re-install OpenSSL on your Mac.