Problem installing Julia 1.6

Hi! I’m trying to install Julia 1.6 on a linux server, but am encountering issues with detection of, and cloning from, the registries. Something to do with git issues or an SSL error somewhere? Is this related to an issue regarding permissions on my end?

(@v1.6) pkg> add Dates
  Installing known registries into `~/.julia`
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Types.jl:976
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Types.jl:976
     Cloning registry from "https://github.com/JuliaRegistries/General.git"
ERROR: failed to clone from https://github.com/JuliaRegistries/General.git, error: GitError(Code:ERROR, Class:SSL, failed to load CA certificates: 0xffffde80 - X509 - The CRT/CRL/CSR format is invalid, e.g. different type expected)

This seems to be a problem with the X509 certificate’s validity.

Do you get the same error when you do

git clone https://github.com/JuliaRegistries/General.git

somewhere in a temp directory in the shell?

Which Linux do you use? What’s the git --version and openssl version?

Btw. it could also be that a certificate is somehow corrupted. Those are stored in /etc/ssl/certs, maybe try to look for something with ffffde80, as reported by the error message, but I am just guessing…

EDIT: or simply run something like update-ca-certificates, see here for Ubuntu/Debian: Ubuntu Manpage: update-ca-certificates - update /etc/ssl/certs and certificates.crt

julia> versioninfo()
Julia Version 1.6.0
Commit f9720dc2eb (2021-03-24 12:55 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Xeon(R) Gold 6134 CPU @ 3.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake-avx512)

And

[nwong@boslogin03 ~]$ git --version 
git version 1.8.3.1
[nwong@boslogin03 ~]$ openssl version
OpenSSL 1.0.2k-fips  26 Jan 2017

Alright, so it appears that I needed to use GitError that only occurs in 1.6/nightly · Issue #39289 · JuliaLang/julia · GitHub instead.