Static and rotating white dwarfs at finite temperatures