PKI Question

From: mm (mehulbv_at_hotmail.com)
Date: 09/29/03


Date: Sun, 28 Sep 2003 21:26:07 -0400


Hello Everyone,

I am working on an application which needs to verify digitally signed MD5
Hashes sent to us over HTTPS. 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
RSACryptoServiceProvider 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 do I import the public key supplied to us in PEM format into an
instance of RSACryptoServiceProvider so I can use the
RSAPKCS1SignatureFormatter class to verify the message (MD5 Hash)

Thanks in advance for all your help

-Zubin



Relevant Pages

  • RE: Cannot decrypt files encrypted using Crypto API on a different
    ... We have a desktop application which is used by many clients. ... send it over to the clients (we don't know anything about their public key). ... from step 2, hExpKey is NULL, blob type is PUBLICKEYBLOB) and send this blob ... encrypt your data with this key ...
    (microsoft.public.platformsdk.security)
  • Is this Possible?
    ... clients including new applications that as of yet do not have any web ... One of our concerns using HTTPS to secure our transactions is ... gets the public key of the server's certificate to encrypt the data ... The server then uses its private key to decrypt ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Distributed Public Key
    ... > enviroment will contain multiple subnets all with access to NIS. ... > I would like to do is store the public key file for a machine in some ... > should be able to use NIS to distribute this data to the clients using ... How do you "install" your machines? ...
    (comp.security.ssh)
  • Re: PKI Question
    ... PEM format for private keys varies a bit. ... To instantiate an RSACryptoServiceProvider from a PEM public key, ... will discuss this in great detail (showing how to get this from certificate files, or any CryptoAPI ...
    (microsoft.public.dotnet.security)
  • Re: Storage of Client Certificates
    ... So you end up with a private Session key on both ... > I guess I would not have to store their public key if they send the public ... only if you identitfy your clients through public keys. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)