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