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

DotNetUtilities

public static class DotNetUtilities
A class containing methods to interface the BouncyCastle world to the .NET Crypto world.

public static RSA ToRSA(RsaKeyParameters rsaKey)

public static RSA ToRSA(RsaKeyParameters rsaKey, CspParameters csp)

public static RSA ToRSA(RsaPrivateCrtKeyParameters privKey)

public static RSA ToRSA(RsaPrivateCrtKeyParameters privKey, CspParameters csp)

public static RSA ToRSA(RsaPrivateKeyStructure privKey)

public static RSA ToRSA(RsaPrivateKeyStructure privKey, CspParameters csp)

Create an System.Security.Cryptography.X509Certificate from an X509Certificate Structure.