Post

pkgsrc (Certificates)

This post is an automatic translation from French. You can read the original version here.

Just a quick little follow-up, because I ran into this and it might help others!

Some pkgsrc operations are done over HTTPS, and it can happen that it complains about X509 certificate signers.

For example:

$ make show-go-modules
# get https://proxy.golang.org/github.com/russross/blackfriday/v2/@v/v2.1.0.mod
# get https://proxy.golang.org/github.com/russross/blackfriday/v2/@v/v2.1.0.mod:
	Get "https://proxy.golang.org/github.com/russross/blackfriday/v2/@v/v2.1.0.mod": x509: certificate signed by unknown authority
# get https://proxy.golang.org/github.com/russross/blackfriday/v2/@v/v2.1.0.info
# get https://proxy.golang.org/github.com/russross/blackfriday/v2/@v/v2.1.0.info:
	Get "https://proxy.golang.org/github.com/russross/blackfriday/v2/@v/v2.1.0.info": x509: certificate signed by unknown authority
go: http://github.com/russross/blackfriday/v2@v2.1.0:
	Get "https://proxy.golang.org/github.com/russross/blackfriday/v2/@v/v2.1.0.info": x509: certificate signed by unknown authority
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wip/go-md2man

All you need to do is install a package, and it will work:

sudo pkgin in ca-certificates

I know myself: this is the kind of essential detail I’ll stumble on again sooner or later.

If you’re like me, I hope this quick little post will help you :)

Rancune

This post is licensed under CC BY 4.0 by the author.