Extract .pub file from a P12 certificate with C#

In cryptography, PKCS #12 defines an archive file format for storing many cryptography objects as a single file. It is commonly used to bundle a private key with its X.509 certificate or to bundle all the members of a chain of trust. When working with Oauth2 you may find that the client_credentials grant type supports the user of P12 files. […]