<PackageReference Include="BouncyCastle.Cryptography" Version="2.8.0-beta.349" />

Org.BouncyCastle.Cms.SignerInfoGenerator

public class SignerInfoGenerator
Pre-configured CMS SignerInfo for signed-data creation. Build with SignerInfoGeneratorBuilder, then pass to AddSignerInfoGenerator.
public X509Certificate Certificate { get; }

Gets the signer's X.509 certificate when built with one, otherwise null.

public int GeneratedVersion { get; }

Gets the SignerInfo version that will be generated (1 or 3).

Gets the signature factory used to produce the SignerInfo signature value.

Gets the signed-attribute generator, or null for a direct signature over the content.

public SignerIdentifier SignerID { get; }

Gets the signer identifier (issuer/serial or subject key identifier).

Gets the unsigned-attribute generator, if any.

Returns a builder pre-populated with this generator's attribute settings.