# Pkg generate error

**URL:** https://discourse.julialang.org/t/pkg-generate-error/127627
**Category:** New to Julia
**Created:** [April 2, 2025, 1:21pm UTC](https://discourse.julialang.org/t/pkg-generate-error/127627 "2025-04-02T13:21:45Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Magnus\_Lilledahl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/magnus_lilledahl/32/51079_2.png) [@Magnus\_Lilledahl](https://discourse.julialang.org/u/Magnus_Lilledahl)
#### Post date: [April 2, 2025, 1:21pm UTC](https://discourse.julialang.org/t/pkg-generate-error/127627/1 "2025-04-02T13:21:45Z")

</div>

I am trying to generate a package using Pkg generate.

`Pkg>generate test`

gave

`ERROR: GitError(Code:ERROR, Class:SSL, Your Julia is built with a SSL/TLS engine that libgit2 doesn't know how to configure to use a file or directory of certificate authority roots, but your environment specifies one via the SSL_CERT_FILE variable. If you believe your system's root certificates are safe to use, you can `export JULIA\_SSL\_CA\_ROOTS\_PATH=“”` in your environment to use those instead.)`

Can anyone explain what this error means and how to solve it?

I tried

`julia>export JULIA_SSL_CA_ROOTS_PATH=""`

at the julia prompt but got the error

`ERROR: syntax: invalid assignment location "export JULIA_SSL_CA_ROOTS_PATH" around REPL[1]:1`

(julia newbie, Pkg noob…:))

---

<div class="post-metadata">

### Author: ![Magnus\_Lilledahl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/magnus_lilledahl/32/51079_2.png) [@Magnus\_Lilledahl](https://discourse.julialang.org/u/Magnus_Lilledahl)
#### Post date: [April 2, 2025, 1:32pm UTC](https://discourse.julialang.org/t/pkg-generate-error/127627/2 "2025-04-02T13:32:32Z")

</div>

I tried

`ENV["JULIA_SSL_CA_ROOTS_PATH"] = ""`

instead of the `export` format suggested in the error and as tried above, and then it seemed to work. Still wondering what the error actually means and why the `export` syntax does not work.

---

<div class="post-metadata">

### Author: ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)
#### Post date: [April 2, 2025, 1:42pm UTC](https://discourse.julialang.org/t/pkg-generate-error/127627/3 "2025-04-02T13:42:29Z")

</div>

I have no idea why specifically `Pkg.generate` would give a `git` error. Do other `Pkg` operations work without the workaround?

The `export` suggestion in the error message refers to “your environment” and rather means “your operating system environment”, i.e. outside of Julia. The `export` syntax is valid in Linux (and possibly Mac).

So, yes, the error message is far from helpful unless you happen to have the right background knowledge.

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [April 2, 2025, 3:01pm UTC](https://discourse.julialang.org/t/pkg-generate-error/127627/4 "2025-04-02T15:01:13Z")

</div>

Maybe fixed by [Don't error when initializing LibGit2 with CA roots path by visr · Pull Request #56924 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/pull/56924)

---

<div class="post-metadata">

### Author: ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)
#### Post date: [April 2, 2025, 3:09pm UTC](https://discourse.julialang.org/t/pkg-generate-error/127627/5 "2025-04-02T15:09:24Z")

</div>

At the very least the confusing error message is removed by that PR. 🙂
