Use below command to extract Public Key from SSL Certificate PFX file
openssl pkcs12 -in SSLCertificate.pfx -nocerts -out SSLCertificate-chain.key
Use below command to extract Public Key from SSL Certificate PFX file
openssl pkcs12 -in SSLCertificate.pfx -nocerts -out SSLCertificate-chain.key