title: HTTPS on Bitbucket server server certificate verification failed when git clone
body: <p>when I try to clone on bitbcuket server only have the HTTP Option and on my server.xml I configured the ssl:
  server.xml :</p>
  
  <pre><code>&lt;Connector port="8443" 
  maxHttpHeaderSize="8192" 
  SSLEnabled="true"
  maxThreads="150" 
  minSpareThreads="25" 
  maxSpareThreads="75"
  enableLookups="false" 
  disableUploadTimeout="true" 
  useBodyEncodingForURI="true"
  acceptCount="100" 
  scheme="https" 
  secure="true"
  clientAuth="false" 
  sslProtocol="TLS"
  redirectPort="443"
  proxyName="dev-services.domainname.es"
  proxyPort="443"
  keystorePass="keystorePassword"
  keyPass="keyPassword"
  keyAlias="le-55fd1606-33ed-47fd-b23c-11443dc6f5ec"
  keystoreFile="/etc/nginx/cert/bitbucket.jks" /&gt;
  </code></pre>
  
  <p>we have a nginx running and configuration is as follows:</p>
  
  <pre><code>server {
    listen 443;
    server_name dev-services.domainname.es;
    ssl on;
    ssl_certificate /etc/nginx/cert/cert.crt;
    ssl_certificate_key /etc/nginx/cert/cert.rsa;
    ssl_session_timeout 5m;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers on;
    location /
    { 
       proxy_pass https://localhost:8443;
       proxy_set_header Host $host;
       proxy_set_header X-Forwarded-Proto $scheme;
       proxy_set_header X-Forwarded-   Host $host;
       proxy_set_header X-Forwarded-Server $host;
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       proxy_set_header X-Real-IP $remote_addr; proxy_redirect off;
     }
  }
  </code></pre>
  
  <p>All works fine but when we try to make git clone It shows:
  server certificate verification failed. CAfile: /etc/nginx/cert/ca-certificates.crt CRLfile: none</p>
  
  <p>And when we go to clone on the bitbucket server we only have http (inside has https)
  <a href="https://i.stack.imgur.com/nWrXX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nWrXX.png" alt="enter image description here"></a></p>
  
  <p>NOTE: we have a wildcard certificate "*.domainname.es"</p>