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

PKI devepment

11
Hi,
For digital signature we use senders private key and verify using senders public key by the receiver.
Now we want to use senders private key and receivers public key for digital signature.So how can we use it in our application.

thankyou
hirannya@gmail.com
Dec 1 '06 #1
2 1508
nmsreddi
366 256MB
hello

can i know what application you are doing is it related to embedded one,

which technology and language you are using can you give some sample

specification of your application



regards

nmsrddi
Dec 2 '06 #2
Summa
11
Hi nmsrddi,
thanks 4 ur reply.

We are developing a PKI Web application using Microsoft Visual Studio.Net 2003(ASP.net-C#) integrated with WSE 1.0 and IIS. We use Windows 2003 Server for user management through Active directory and to issue X.509 certificates for the client.

We use ActiveX to get client's certificate details and to create the XML the digital signature using senders private key.

nmsrddi,
What i want yo know is to sign the document not only using senders private key as well as from receivers public key.Then only specifis receiver can veiw the document.
It is difficult to get the receiver's public key.How can i do it?
i attached some code below.
Hope u'l help me with this.

Thanku you.
Hirannya

to sign the document we use

Microsoft.Web.Services.Security.X509.X509Certifica te Cert=Store.Certificates[0];
RSA key =Cert.Key;
if(SignXmlFile(_Path+@"\"+_TEFNo+".xml", key))
{blnSigned=true;
}

in SignXmlFile method we use ComputeSignature.

// Create a SignedXml object.
System.Security.Cryptography.Xml.SignedXml signedXml = new System.Security.Cryptography.Xml.SignedXml(doc);
// Add the key to the SignedXml document.
signedXml.SigningKey = Key;
// Create and append the data object
System.Security.Cryptography.Xml.DataObject dataObject = new System.Security.Cryptography.Xml.DataObject();
dataObject.Data = doc.ChildNodes;
//dataObject.Data = c.ChildNodes;
dataObject.Id = "SignVerify";
System.Security.Cryptography.Xml.Reference reference = new System.Security.Cryptography.Xml.Reference();
reference.Uri ="";

XmlDsigEnvelopedSignatureTransform env = new XmlDsigEnvelopedSignatureTransform();

reference.AddTransform(env);
signedXml.AddReference(reference);

// Create a new KeyInfo object.
KeyInfo keyInfo = new KeyInfo();
keyInfo.AddClause( new RSAKeyValue(Key) );

signedXml.KeyInfo=keyInfo;
signedXml.AddObject(dataObject);
// Compute the signature.
signedXml.ComputeSignature();


hello

can i know what application you are doing is it related to embedded one,

which technology and language you are using can you give some sample

specification of your application



regards

nmsrddi
Dec 5 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Ville Vainio | last post by:
http://digitoday.fi/showPage.php?page_id=9&news_id=40179 Literal translation for those who can't read Finnish: Nokia has published the Open Source Python language for Series 60 based mobile...
4
by: Champika Nirosh | last post by:
Hi All, We have developed stand alone application and it was started small and now has become big and we are on our way to structure it. (Thought a backward process we got to do it) So right...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

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.