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

Org.BouncyCastle.X509.Extension.AuthorityKeyIdentifierStructure

Create an AuthorityKeyIdentifier using the passed in certificate's public key, issuer and serial number.

Create an AuthorityKeyIdentifier using just the hash of the public key.