Extract private key and certs from pfx

openssl

( _fd_pfx="cert.pfx" ; _fd_pem="key_certs.pem" ; \
openssl pkcs12 -in ${_fd_pfx} -nodes -out ${_fd_pem} )
click the source code to copy install openssl on any operating system with command-not-found.com