|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
SignedCms.ComputeSignature(CmsSigner) - Keyset does not existI have searched quite a bit and could not find an answer to this error
I am getting. ContentInfo contentInfo = new ContentInfo(msgBytes); SignedCms signedCms = new SignedCms(contentInfo); CmsSigner cmsSigner = new CmsSigner(Certificate); // pass X509 certificate signedCms.ComputeSignature(cmsSigner); // throws error right here The error is "Keyset does not exist". Any idea why? Is the private key for that certificate installed in your local crypto store
and does the current account have the necessary permissions on it? You can't sign something without the private key. Joe K. -- Show quoteHide quoteJoe Kaplan-MS MVP Directory Services Programming Co-author of "The .NET Developer's Guide to Directory Services Programming" http://www.directoryprogramming.net -- "kplkumar" <kplku***@gmail.com> wrote in message news:1163774836.183061.253400@h54g2000cwb.googlegroups.com... >I have searched quite a bit and could not find an answer to this error > I am getting. > > > ContentInfo contentInfo = new ContentInfo(msgBytes); > > SignedCms signedCms = new SignedCms(contentInfo); > > CmsSigner cmsSigner = new CmsSigner(Certificate); // pass X509 > certificate > > signedCms.ComputeSignature(cmsSigner); // throws error right here > > > The error is "Keyset does not exist". > Any idea why? > this is the typical error message when you don't have access to the priv
key - you can use this tool to set ACLs: http://www.leastprivilege.com/HowToGetToThePrivateKeyFileFromACertificate.aspx --- Dominick Baier, DevelopMentor http://www.leastprivilege.com Show quoteHide quote > Is the private key for that certificate installed in your local crypto > store and does the current account have the necessary permissions on > it? You can't sign something without the private key. > > Joe K. >
Need help with DirectorySearcher FILTER using SID.
how to add "Authorization: Basic" for a web service call Winform: Call a vbscript with elevated privileges Redirect when User is Unauthorized Do i need to got Https:// throught the website ??? How to decrypt CAPICOM data i .NET 2.0 How do I use windowsIdentity to start a process in .net? LocalSystem network access problem IE C# ActiveX without permissons How to show the windows 'Connect To' dialog from C# |
|||||||||||||||||||||||