Rsa 2048 key
`I have imported the .cer certificate through IIS manager->Server Certificates-> import I want to extract the public key from a .cer certificate and encrypt a string using the public key(RSA 2048 bit) extracted from the certificate,the method used should be RSA with ECB and PKCS1Padding. edit:added the below code