The argument to ImportPublicKey key is an IBuffer. The easiest way to get this is using the
ToBuffer extension method for a byte[].
Use the override of ImportPublicKey that takes both an IBuffer and a CryptographicPublicKeyBlobType, specifically CryptographicPublicKeyBlobType.X509SubjectPublicKeyInfo. Pass in the subject public key info field from the certificate.