# Pkg error: identity of github.com could not be verified

**URL:** https://discourse.julialang.org/t/pkg-error-identity-of-github-com-could-not-be-verified/74079
**Category:** General Usage
**Tags:** pkg
**Created:** [January 5, 2022, 9:55am UTC](https://discourse.julialang.org/t/pkg-error-identity-of-github-com-could-not-be-verified/74079 "2022-01-05T09:55:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![danielw2904](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielw2904/32/10890_2.png) [@danielw2904](https://discourse.julialang.org/u/danielw2904)
#### Post date: [January 5, 2022, 9:55am UTC](https://discourse.julialang.org/t/pkg-error-identity-of-github-com-could-not-be-verified/74079/1 "2022-01-05T09:55:10Z")

</div>

I am having an issue after installing julia 1.7.1 on Ubuntu using Jill.py that Pkg updates result in an error:

```julia
(@v1.7) pkg> update
    Updating registry at `~/.julia/registries/General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
TLS host verification: the identity of the server `github.com` could not be verified. Someone could be trying to man-in-the-middle your connection. It is also possible that the correct server is using an invalid certificate or that your system's certificate authority root store is misconfigured.
┌ Error: Some registries failed to update:
│ — /home/daniel/.julia/registries/General — failed to fetch from repo
└ @ Pkg.Registry /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.7/Pkg/src/Registry/Registry.jl:450

```

There don’t seem to be any open issues for this. Any ideas on whether I did something wrong and how to resolve it?  
Thanks!

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [January 5, 2022, 11:37am UTC](https://discourse.julialang.org/t/pkg-error-identity-of-github-com-could-not-be-verified/74079/2 "2022-01-05T11:37:11Z")

</div>

> [@danielw2904](#):
>
> ```julia
> TLS host verification:
> the identity of the server `github.com` could not be verified.
> Someone could be trying to man-in-the-middle your connection.
> It is also possible that the correct server is using an invalid certificate
> or that your system's certificate authority root store is misconfigured.
> 
> ```

Perhaps your Ubuntu is very old?  
Or you are using a Anti-Virus software which intercepts (man-in-the-middle) your encrypted connections?  
Or you are behind a corporate proxy which does this?

---

<div class="post-metadata">

### Author: ![danielw2904](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielw2904/32/10890_2.png) [@danielw2904](https://discourse.julialang.org/u/danielw2904)
#### Post date: [January 5, 2022, 11:52am UTC](https://discourse.julialang.org/t/pkg-error-identity-of-github-com-could-not-be-verified/74079/3 "2022-01-05T11:52:33Z")

</div>

Thank you for the suggestions! It must be my schools firewall I guess. Ubuntu is current LTS and no antivirus that intercepts. I’ll talk to the network admins.

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [January 5, 2022, 12:25pm UTC](https://discourse.julialang.org/t/pkg-error-identity-of-github-com-could-not-be-verified/74079/4 "2022-01-05T12:25:18Z")

</div>

I found something new about his:  
[https://github.com/JuliaLang/Downloads.jl/issues/108](https://github.com/JuliaLang/Downloads.jl/issues/108)  
So you may try

```julia
ENV["JULIA_SSL_NO_VERIFY_HOSTS"] = "github.com"

```

before

```julia
] up

```

---

<div class="post-metadata">

### Author: ![danielw2904](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielw2904/32/10890_2.png) [@danielw2904](https://discourse.julialang.org/u/danielw2904)
#### Post date: [January 5, 2022, 12:28pm UTC](https://discourse.julialang.org/t/pkg-error-identity-of-github-com-could-not-be-verified/74079/5 "2022-01-05T12:28:04Z")

</div>

Thank you! The network suggestion has worked! 🙂
