<PackageReference Include="BouncyCastle.Cryptography" Version="2.4.0" />

PkiArchiveControlBuilder

public PkiArchiveControlBuilder(PrivateKeyInfo privateKeyInfo, GeneralName generalName)

Basic constructor - specify the contents of the PKIArchiveControl structure.

Add a recipient generator to this control.

Build the PKIArchiveControl using the passed in encryptor to encrypt its contents.