Help with encrypting using certificate public key ...

Discussion in 'ASP .Net' started by Tery, Jun 22, 2007.

  1. Tery

    Tery Guest

    Tery, Jun 22, 2007
    1. Advertisements

  2. Hi Tery,

    From your description, you're going to build a .net application which will
    interact with a 3rd party service (exposes a http post channel to let you
    submit request and get response data), correct?

    I have had a brief overview on the document you mentioned, my current
    understanding is that you'll get a certificate with the public key from
    that 3rd partry service hoster and you'll need to use it encrypt or verify
    the signature of the service side. For such issue, you can use the .NET
    framework cryptography component to perform data encryption or
    signing(decryptiong or signature verification) and for the publici key, you
    can retrive it from windows certificate store through the .NET
    X509Cerificate specific classes(provided in .NET 2.0). Here are some MSDN
    reference on this(encypting & certificate management):

    #Support Certificates In Your Applications With The .NET Framework 2.0

    #Encrypting Data

    #Generating Signatures

    In addition, I've ever replied in some former threads in the newsgroup
    about using X509 certificate (the associated key in it) to perform crypto
    tasks. You can also refer to them for further information:

    #Encrypt string using SHA1withDSA and X509 certificate Options

    #FtpWebRequest with X.509 Authentication Options

    If you have any more specific questions or anything unclear on this, please
    feel free to let me know.


    Steven Cheng

    Microsoft MSDN Online Support Lead


    Get notification to my posts through email? Please refer to

    Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
    where an initial response from the community or a Microsoft Support
    Engineer within 1 business day is acceptable. Please note that each follow
    up response may take approximately 2 business days as the support
    professional working with you may need further investigation to reach the
    most efficient resolution. The offering is not appropriate for situations
    that require urgent, real-time or phone-based interactions or complex
    project analysis and dump analysis issues. Issues of this nature are best
    handled working with a dedicated Microsoft Support Engineer by contacting
    Microsoft Customer Support Services (CSS) at


    This posting is provided "AS IS" with no warranties, and confers no rights.
    Steven Cheng[MSFT], Jun 25, 2007
    1. Advertisements

  3. Hi Tery,

    How are you doing on this issue? Have you got any progress or does the
    information in my last reply helps you some? If there is anything else we
    can help, please feel free to post here.


    Steven Cheng

    Microsoft MSDN Online Support Lead

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Steven Cheng[MSFT], Jun 27, 2007
  4. Hi Tery,

    I have been working on exactly this issue for several months (it's a
    sideline and I only get a couple hours a week...) but in a php context. I
    have not gotten it to work yet, but I think I am close. I am nearly certain
    that the Handango instructions you referenced contain errors (you want to
    decrypt the signature, not encrypt it) and I suspect that I was given the
    wrong certificate.

    I'd be interested in swapping notes.
    =?Utf-8?B?QW5keQ==?=, Jun 30, 2007
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charles A. Lackman
    Dec 8, 2004
  2. SpamProof
    Oct 21, 2003
  3. pmkatz
    Aug 25, 2004
  4. one
  5. Replies:
    Dominick Baier
    Sep 13, 2006