Convert pfx to cert.crt and private.key to use in Debian

#Private key
openssl pkcs12 -in mail.acb.com.pfx -nocerts -out mail.acb.com.key.pem -nodes
openssl rsa -in mail.acb.com.key.pem -out mail.acb.com.key
#Public cert
openssl pkcs12 -in mail.acb.com.pfx -nokeys -out mail.acb.com.cert.pem
openssl x509 -inform pem -in mail.acb.com.cert.pem -pubkey -out mail.acb.com.crt -outform pem