/// <summary> /// Get private key of xml format from certificate file. /// </summary> /// <param name="certFile">The string path of certificate file.</param> /// <param name="password">The string password of certificate file.</param> /// <returns>String private key of xml format.</returns> public static RsaKey GeneratePrivateKeyFromFile(string certFile, string password) => Factory.GeneratePrivateKeyFromFile(certFile, password);