Signing VSIX Packages
You can add a digital signature to a VSIX package, and ensure that the signature meets the OPC Data Access Specification, by using the PackageDigitalSignatureManager.Sign method.
Remarks
To meet the requirements of the signing policy, all the parts and relationships in the package must be signed. The Sign method takes a list of package parts and relationships so that you can sign them all at the same time. However, the addition or removal of any part or relationship in the package requires that it be signed again by using a revised list.
For an example about how to apply a digital signature, see the Sign method documentation. For a complete signing tool, see the Creating a Package with a Digital Signature Sample on the Code Gallery Web site.
See Also
Reference
System.IO.Packaging.PackageDigitalSignature