zsh: command not found: pkcs12 in mac

Solved! Go to solution
ayagaidi1995
Helper

zsh: command not found: pkcs12 in mac

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

4 REPLIES 4
ayagaidi1995
Helper

Re: zsh: command not found: pkcs12 in mac

i solve it with
add password to command as
openssl pkcs12 -export -in cert.pem -inkey "privateKey.pem" -certfile cert.pem -out myProject_keyAndCertBundle.p12 -password pass:**********
API_Products
Visa Developer Support Specialist

Re: zsh: command not found: pkcs12 in mac

Hi @ayagaidi1995,

 

Thanks for letting us know how you solved the problem!  😀




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

Miasm1
Newbie

Re: zsh: command not found: pkcs12 in mac

Hello,

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.

Thanks

Mia
ayagaidi1995
Helper

Re: zsh: command not found: pkcs12 in mac

i solve it with
add password to command as
openssl pkcs12 -export -in cert.pem -inkey "privateKey.pem" -certfile cert.pem -out myProject_keyAndCertBundle.p12 -password pass:**********