EldoS | Feel safer!

Software components for data protection, secure storage and transfer

how can I remove the tag xades:Cert

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#25784
Posted: 07/24/2013 05:37:02
by massimiliano nonnis (Standard support level)
Joined: 07/24/2013
Posts: 9

Hy
use secureblackbox for framework 3.5 with VS 2008 in C# how can I remove the tag xades:Cert in the xades:QualifyingProperties?
#25785
Posted: 07/24/2013 06:26:46
by massimiliano nonnis (Standard support level)
Joined: 07/24/2013
Posts: 9

the TElXAdESSigner has a property or method for remove the tag xades:Cert from signature xml?
#25788
Posted: 07/24/2013 08:58:06
by Dmytro Bogatskyy (EldoS Corp.)

Thank you for contacting us!

Are you talking about SigningCertificate\Cert element? If you don't need SigningCertificate, then don't add it. It is controlled using TElXAdESSigner.SigningCertificates property.
In the AdvancedSigner sample ensure that you don't add any additional "Signing Certificates" and "Include Signing Certificate" checkbpx is off.
#25789
Posted: 07/24/2013 11:05:06
by massimiliano nonnis (Standard support level)
Joined: 07/24/2013
Posts: 9

i use this code
TElMemoryCertStorage CertStorage = new TElMemoryCertStorage();
CertStorage.Add(Cert, true);
XAdESSigner.SigningCertificates = CertStorage;
Signer.Signature.SignedInfo.SigPropRef.DigestMethod = SBXMLSec.Unit.xdmSHA256;
Signer.Signature.SignedInfo.CanonicalizationMethod = "http://www.w3.org/2006/12/xml-c14n11#WithComments";
Signer.Signature.SignedInfo.SigPropRef.TransformChain.Add(new TElXMLC14NTransform(SBXMLDefs.Unit.xcmCanonComment_v1_1));
i need set the signing certificate but remove only tag into xml
#25790
Posted: 07/24/2013 11:08:07
by massimiliano nonnis (Standard support level)
Joined: 07/24/2013
Posts: 9

Ok remove this code

TElMemoryCertStorage CertStorage = new TElMemoryCertStorage();
CertStorage.Add(Cert, true);
XAdESSigner.SigningCertificates = CertStorage;

and works
thank's
#25791
Posted: 07/24/2013 11:08:41
by massimiliano nonnis (Standard support level)
Joined: 07/24/2013
Posts: 9

For remove SignaturePolicyIdentifier xml element?
#25807
Posted: 07/25/2013 02:46:26
by massimiliano nonnis (Standard support level)
Joined: 07/24/2013
Posts: 9

XAdESSigner.QualifyingProperties.SignedProperties.SignedSignatureProperties.SignaturePolicyIdentifier.SignaturePolicyImplied = false ;
it's works
Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.

Reply

Statistics

Topic viewed 1193 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!