Will staying up late affect getting a health certificate?

Generally speaking, it doesn't matter, but because you don't sleep for a long time, your heartbeat will be unbalanced, which may have some influence on your chest X-ray. But you said it was a health certificate, so it's not a big problem. Don't worry too much, but you should take care of yourself in the future, because health is the capital of the revolution!