Enable https in gitlab and Certificate should be valid

How can i enable https on gitlab and how to make certificate valid on the website?

You can refer to the official guide Configure SSL for the GitLab Linux package | GitLab