public static IRSA CreateWithPublicKeyFromFile(string certFile) => new RsaFunction(RsaKeyGenerator.GeneratePublicKeyFromFile(certFile));
/// <summary> /// Get public key of xml format from certificate file. /// </summary> /// <param name="certFile">The string path of certificate file.</param> /// <returns>String public key of xml format.</returns> public static RsaKey GeneratePublicKeyFromFile(string certFile) => RsaKeyGenerator.GeneratePublicKeyFromFile(certFile);