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