473,397 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Help with encrypting using certificate public key ...

I'm trying to implement the Handango.com HTTP POST registration method. The
instructions are here:
http://www.handango.com/marketing/de...Model_How2.doc

I'm stuck on how to encrypt a value using the public key in the Handango
certificate.

Does anyone have any suggestions or sample asp.net code on how to implement
this?

Thanks in advance,
Tery
Jun 22 '07 #1
3 2453
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
http://msdn.microsoft.com/msdnmag/is...ETSecurity/#S4

#Encrypting Data
http://msdn2.microsoft.com/en-us/lib...af(VS.80).aspx

#Generating Signatures
http://msdn2.microsoft.com/en-us/library/6yxzeb7e.aspx
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
http://groups.google.com/group/micro...rk.aspnet.secu
rity/browse_thread/thread/1b16028ac9e99ab5/dffce8c815782d4a

#FtpWebRequest with X.509 Authentication Options
http://groups.google.com/group/micro...rk/browse_thre
ad/thread/29cf1bbf51eafd43/426e2c94fd7b6f59

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

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

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
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


Jun 25 '07 #2
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.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.


Jun 27 '07 #3
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.
Jun 30 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: isaac2004 | last post by:
hi i have a basic asp page that acts as an online bookstore. on my cart page i am having trouble generating 3 numbers; a subtotal, a shipping total, and a final price. here is my code i would...
3
by: manmit.walia | last post by:
Hello All, I have been given a file to convert to C# and being my bad luck the file is written in VB6 which I have no idea on how to convert the file to C#. I first thought that I would try the...
2
by: Paul | last post by:
I encrypted a database field using MySQL AES_ENCRYPT() from a mysql command prompt. But I need to encrypt and decrypt at will in the php code as records are added and viewed. I can easily...
13
by: Javad | last post by:
Hello I know that I should get the information of windows internet connections by using "rasapi32.dll" library, and I also have some sample codes, but I can't make them work. My exact need is to...
0
by: =?Utf-8?B?ai5hLiBoYXJyaW1hbg==?= | last post by:
Hi, I'm using MSXML6 in my C++ windows service app. that will be running on Server 2003 (NOT a web server!). I'm new to some of this, so bear with me. I am looking for a means of posting an...
0
by: xexpertdkx | last post by:
I have a pseudo-code and I want to make it VB executable auto run. Can anyone help? if usb = in usb port then prompt password if password = password then enable copy/paste etc 'decrpyted else...
1
by: vbsoft | last post by:
Hello My Name is Mike Am from Nigeria a student of computer Science, Pls i want your You to help in Using VISUAL BASIC 6.0 AND MS SQL SERVER AS DATABASE AS A CLIENT SERVER SIDE pLS: I...
2
by: Alexnb | last post by:
Okay, I am not sure if there is a better way of doing this than findAll() but that is how I am doing it right now. I am making an app that screen scapes dictionary.com for definitions. However, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.