GitLab https server certificate verification failed
I used openssl to generate a ssl certificate file
generating a private key
openssl genrsa -out server.key 2048
generate a Certificate Signing Request
openssl req -new -key gitlab.domain.com.key -out gitlab.domain.com.csr
create a Self-Signed Certificate
openssl x509 -req -days 365 -in gitlab.domain.com.csr -signkey gitlab.domain.com.key -out gitlab.domain.com.crt
then I copied this files into:
cp gitlab.domain.com.key /etc/ssl/private/
cp gitlab.domain.com.key /etc/ssl/certs/
and:
/etc/gitlab/ssl/
in file /etc/gitlab/gitlab.rb
:
external_url 'https://gitlab.domain.com'
nginx['redirect_http_to_https'] = yes
and then I applied gitlab-crt reconfigure
. Everything is ok, when I navegate web way and redirect it from http to https, but in console, when I do a push to server return this error: fatal: unable to access 'https://gitlab.domain.com/user/testing.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
What can this do? I work with Gitlab 10.0 and Debian 9 as OS.