Hello Everyone,
I am working on an application which needs to encrypt and decrypt data using
PKI over HTTP. Our clients application is written in Java and we are
developing our side of the application in C#. They have supplied me with
their public key in PEM format. I have two questions...
1. How do I generate a public and private key pair in PEM Format so I can
provide my client with our public key. The only way I know is to use Open
SSL to do this, can this be done through vs.net. I used the
RSACryptoServic eProvider to generate the key pair and then dumped the keys
into a text file using the ToXmlString() Method. but this gives me the
Modules, Exponent, D, P,Q, ect. values in the file. How can I convert these
into a PEM Format?
2. How can I use the public key in PEM Format that was provided to me by my
client to decrypt the message.
Thanks in advance for all your help
-Zubin
I am working on an application which needs to encrypt and decrypt data using
PKI over HTTP. Our clients application is written in Java and we are
developing our side of the application in C#. They have supplied me with
their public key in PEM format. I have two questions...
1. How do I generate a public and private key pair in PEM Format so I can
provide my client with our public key. The only way I know is to use Open
SSL to do this, can this be done through vs.net. I used the
RSACryptoServic eProvider to generate the key pair and then dumped the keys
into a text file using the ToXmlString() Method. but this gives me the
Modules, Exponent, D, P,Q, ect. values in the file. How can I convert these
into a PEM Format?
2. How can I use the public key in PEM Format that was provided to me by my
client to decrypt the message.
Thanks in advance for all your help
-Zubin