0
到目前爲止,這是我的代碼,但我不知道如何着手傳遞一個org.bouncycastle.asn1.ASN1TaggedObject編碼字符串到Web服務方法
var theBytes = getSignedBytesFrom("Some string");
var ci = new ContentInfo(theBytes);
var signedCms = new SignedCms(ci);
var cmsSigner = new CmsSigner(myCert);
signedCms.ComputeSignature(cmsSigner);
signedCms.Encode();
//I dont know how to encode as org.bouncycastle.asn1.ASN1TaggedObject
var ASN1TaggedObject = ?
var result = Convert.ToBase64String(ASN1TaggedObject);
var wsResponse = webs.passCms(result);
請指點。
該文件可能是一些對你有用的 http://www.afterlogic.com/mailbee-net/docs-itextsharp/html/a54f8e2b-1be0-a8de-d52b-d6eeed9a71ce.htm HTTP:/ /www.bouncycastle.org/csharp/ –