PKCS12 pfx files

I would like to know if there will be any method that load a pfx file and give a X509 certificate..