gitlab SSL configuration / certificate verification failed

Solution 1:

Ok, I just found my mistake. I have used cert.pem instead of fullchain.pem.

Explained here: https://stackoverflow.com/questions/34189199/how-do-i-use-let-s-encrypt-with-gitlab