/// <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) => Factory.GeneratePublicKeyFromFile(certFile);