Re: PKI Question

From: Ivan Medvedev [MS] (ivanmed_at_online.microsoft.com)
Date: 09/29/03

  • Next message: fabian: "Internet Explorer & Windows Explorer"
    Date: Mon, 29 Sep 2003 10:30:54 -0700
    
    

    Zubin -
    .NET Framework does not have any built-in functionality for working with PEM
    format. Unless somebody has already done it and put on the Internet, you
    will probably have to study the format and write the conversion utility
    yourself.
    --Ivan
    http://blogs.gotdotnet.com/ivanmed
    This message is provided "AS IS" with no

    "mm" <mehulbv@hotmail.com> wrote in message
    news:ei4RpiihDHA.2296@TK2MSFTNGP09.phx.gbl...
    > 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
    >
    >


  • Next message: fabian: "Internet Explorer & Windows Explorer"

    Relevant Pages

    • Re: Exporting public key from RSACryptoServiceProvider in ASN.1 format
      ... RSACryptoServiceProvider in ASN.1 format? ... public key - the private one will only be used by .NET applications. ... If it's possible to export RSACryptoServiceProvider public keys as ASN.1, ... is exporting public key in ASN.1 ...
      (microsoft.public.dotnet.security)
    • Re: Format of the Public/Private key BLOB
      ... I have a PEM file with private key to decrypt it. ... CryptAPI and Linux using Openssl. ... default DER format? ...
      (microsoft.public.platformsdk.security)
    • Re: convert plain text rsa keys to pem or der format
      ... > pem or der format. ... Netscape Navigator was able to load a certificate holding ...
      (comp.os.linux.security)
    • Re: Exporting public key from RSACryptoServiceProvider in ASN.1 format
      ... RSACryptoServiceProvider in ASN.1 format? ... public key - the private one will only be used by .NET applications. ... If it's possible to export RSACryptoServiceProvider public keys as ASN.1, ... is exporting public key in ASN.1 ...
      (microsoft.public.dotnet.security)
    • Re: CryptAPI(encryption/decryption)
      ... Unfortunately the Microsoft CSPs do not support importing keys in pem ... You would need to convert your key to the blob format described in ... How can I import this into CSP and decrypt the data which is encrypted ...
      (microsoft.public.pocketpc.developer)