The Sun is a strong source of X-rays
(10-5 of the total energy it emits)
It must have ~million degree gas on it
This really hot gas is not on the Sun’s surface - it is above the surface, in localized structures