Search code examples
c#pkcs11interop

How to convert ObjectHandle from Pkcs11Interop to X509 Certificate or Pem format?


How to convert Public key from Pkcs11Interop to X509 certificate or pem format


Solution

  • If you want to extract RSA public key value then you need to read CKA_PUBLIC_EXPONENT and CKA_MODULUS attributes.