Everything you need is in Crypt-RSA
HTH.
In reply to Re: extract public key from pkcs #12 file by ghenry in thread extract public key from pkcs #12 file by boat73