SSL letsencrypt

Hi,
I was wondering if someone could shed some light on the issue im having on letsencrypt. Currently have working gitlab internally. but i want to to use code.mydomain.com to access with letsencrypt. I was looking at
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-gitlab-on-ubuntu-16-04

and on letsencrypt section this is what i have

external_url 'https://code.mydomain.com'
letsencrypt['enable'] = true

letsencrypt[‘contact_emails’] = sistemas@mydomain.com
letsencrypt[‘group’] = ‘root’
letsencrypt[‘key_size’] = 2048
letsencrypt[‘owner’] = ‘root’
letsencrypt[‘wwwroot’] = ‘/var/opt/gitlab/nginx/www’

then i run this

        gitlab-ctl reconfigure

but when i access https://code.mydomain.com does not show up, but if i use http://code.mydomain.com it works. then i tried using the old guide https://www.digitalocean.com/community/tutorials/how-to-secure-gitlab-with-let-s-encrypt-on-ubuntu-16-04
but i get this

            The client lacks sufficient authorization

any ideas?

Thank you

BUMP? anyone?

Solved: had to disable the email part for it to work