I have look into the stack overflow, they are teaching about assign the encrypted privateKey to x509Certificate2.
However, I only want to assign the abc.key (private key) directly to x509Certificate2.
Anyone know how to do it?
or I have to encrypte the key first?
Thanks