aptly-dev / aptly

aptly - Debian repository management tool
https://www.aptly.info/
MIT License
2.56k stars 370 forks source link

unable to fetch mirror #321

Open sapun opened 8 years ago

sapun commented 8 years ago

I am trying create mirror gitlab repo, but see this error.

~$ aptly mirror create gitlab https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty Downloading https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/dists/trusty/InRelease... Downloading https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/dists/trusty/Release... ERROR: unable to fetch mirror: https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/dists/trusty/Release: Get https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/dists/trusty/Release: x509: certificate signed by unknown authority (possibly because of "x509: cannot verify signature: algorithm unimplemented" while trying to verify candidate authority certificate "COMODO RSA Certification Authority")

smira commented 8 years ago

This error comes from https:// certificate being not trusted. aptly is Go program, so it should read common certificates from OS.

smira commented 8 years ago

Probably good time to start using https://github.com/certifi/gocertifi

smira commented 8 years ago

At the same time it works perfectly on OS X.