Unable to run SetupForDevelopment.sh script on Windows. I get the following error and I’m unable to install the git hooks.
Setting up git hooks...
fatal: unable to access 'https://gitlab.kitware.com/utils/gitsetup.git/': SSL certificate problem: self signed certificate in certificate chain
Failed to install hooks
Based on the error messages it’s failing here in the code:
# Populate ".git/hooks".
echo 'Setting up git hooks...' &&
git_dir=$(git rev-parse --git-dir) &&
mkdir -p "$git_dir/hooks" &&
cd "$git_dir/hooks" &&
if ! test -e .git; then
git init -q || die 'Could not run git init for hooks.'
fi &&
git fetch -q "$url" "$branch" &&
git reset -q --hard FETCH_HEAD || die 'Failed to install hooks'
* Connected to gitlab.kitware.com (66.162.65.214) port 443 (#0)
* found 417 certificates in /etc/ssl/certs
* ALPN, offering h2
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_256_GCM_SHA384
* server certificate verification OK
* server certificate status verification SKIPPED
* common name: *.kitware.com (matched)
* server certificate expiration date OK
* server certificate activation date OK
* certificate public key: RSA
* certificate version: #3
* subject: C=US,ST=New York,L=Clifton Park,O=Kitware\, Inc.,CN=*.kitware.com
* start date: Thu, 12 Nov 2020 00:00:00 GMT
* expire date: Sat, 04 Dec 2021 23:59:59 GMT
* issuer: C=US,O=DigiCert Inc,CN=DigiCert TLS RSA SHA256 2020 CA1
* compression: NULL
* ALPN, server accepted to use h2
If the issuer is different, you may have a SSL decrypting Firewall or Proxy, otherwise it’s a MITM attack.
Do you also have the problem if you try to clone manually? How do you fetch CMake or have you disabled https verification there?
Try this in your CMake clone directory:
I just checked and I’m unable to clone. I must have messed up something in my setup. I’m trying to being able to contribute to both open source via github/gitlab so my setup is a little screwy.