x509 Signature with WSE1.0
-
Hi all, I am new to WSE and Signatures, so I apologize in advance if this is a dumb question... The Goal: Create an ASP.NET web that consumes a web service (presently hosted on the same machine). Use an x509 certificate (which I made) to sign the soap request from the client so that the service can trust that the content is unaltered. The problem: When I try to create the signature
X509SecurityToken t = this.GetSecurityToken (); ... requestContext.Security.Elements.Add (new Signature (t));
I get an Exception stating "Cannot find the certificate and private key for decryption" I assume this is because ASP.NET (running under the SYSTEM account) does not have access the the certificate's private key. The certificate is in this root of the localmachine storeX509CertificateStore store = X509CertificateStore.LocalMachineStore(X509CertificateStore.RootStore);
I've tried granting access to C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys but that does not solve the problem. Are the private keys for localmachine certificates stored in a different place? Any ideas about where to look will be appreciated. I've gotten this far by going through the WSE doc's but I am at a lose... Thanks in advance, Bill -
Hi all, I am new to WSE and Signatures, so I apologize in advance if this is a dumb question... The Goal: Create an ASP.NET web that consumes a web service (presently hosted on the same machine). Use an x509 certificate (which I made) to sign the soap request from the client so that the service can trust that the content is unaltered. The problem: When I try to create the signature
X509SecurityToken t = this.GetSecurityToken (); ... requestContext.Security.Elements.Add (new Signature (t));
I get an Exception stating "Cannot find the certificate and private key for decryption" I assume this is because ASP.NET (running under the SYSTEM account) does not have access the the certificate's private key. The certificate is in this root of the localmachine storeX509CertificateStore store = X509CertificateStore.LocalMachineStore(X509CertificateStore.RootStore);
I've tried granting access to C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys but that does not solve the problem. Are the private keys for localmachine certificates stored in a different place? Any ideas about where to look will be appreciated. I've gotten this far by going through the WSE doc's but I am at a lose... Thanks in advance, Bill