473,387 Members | 1,529 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,387 software developers and data experts.

Permition certificate private key from webservice

Anybody knows how access private key X509Certificate from CertificateStore
(Microsoft.Web.Services2.Security.X509.X509Certifi cateStore namespace) to
encrypt/decrypt data.

Below code in webservice return error: "Keyset does not exist" (at line
includes ct.Key) ,but in desktop application is ok.
Probably problem concern security context, but how set trust for this code ?

code:
store =

Microsoft.Web.Services2.Security.X509.X509Certific ateStore.LocalMachineStore
(Microsoft.Web.Services2.Security.X509.X509Certifi cateStore.MyStore)

'Open store
If store.OpenRead() Then
'Find some certificate
cc = store.FindCertificateBySubjectString("My Name")
If cc.Count > 0 Then
ct = cc.Item(0)
'Set private key to RSA object
Dim rsar As System.Security.Cryptography.RSA = ct.Key
rsa1 = CType(rsar,
Microsoft.Web.Services2.Security.Cryptography.RSAC ryptoServiceProvider)
rsa1.Encrypt ...
rsa1.Decrypt ...
end if
end if



Nov 21 '05 #1
0 1223

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

Similar topics

7
by: Guangxi Wu | last post by:
Hi all, Happy New Year. I am using SignedXML and an X509 certificate to digitally sign a SOAP message body and put the signature in the SOAP header for a B2B business application. Can you...
0
by: Benne Smith | last post by:
does anyone have some small testprojects, samples or good documentation for this ? i want to have my exe program talk with a webservice (easy), but each exe should have an embedded client...
0
by: Will | last post by:
It seems that I have scoured the net and came up empty handed. I have an ASP.net app that posts xml to another company's servlet. For some transactions, they do not require a certificate, but...
0
by: dinoo | last post by:
I am using SSL enabled website. I used a certificate using makecert utility in .NET. Now I setup my website for Client Certificates. When I tried to use my webservie in internet explorer. I...
0
by: Nikeco | last post by:
Hello, I`m a little new to access and vb But i need to write a webservice client for a certified webservice, My certificate is stored in the keystore of microsoft and i don`t know how to...
1
by: UnkleVo | last post by:
I have a winform app that is consuming WebService via SSL connection. We installed the digital certificate for that and the winform app is loading that cert at run time. Code in VB.net looks...
1
by: Joe | last post by:
Hello, I'm currently using a C# class library which is also converted quickly to a console app by adding a MAIN and adjusting the building configuration. I'm using this page as a reference to the...
2
by: ucb01 | last post by:
Hi, I am working with Visual Studio 2005 in C#. Using makecert I create a self-signed certificate A with a private key then a certificate B based on A. The first is installed in the...
1
by: vaibhavchavan | last post by:
Hi I am doing application for signing of soap message with digital certificate . I am using WSE 2.0 I worte the the simple webservice & deployed it on in our server machine . To make it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.