Bug 29449 - Не находит корневой сертификат
Summary: Не находит корневой сертификат
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: golang (show other bugs)
Version: unstable
Hardware: all Linux
: P3 major
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL: https://code.google.com/p/go/issues/d...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-10 02:33 MSK by Slava Dubrovskiy
Modified: 2013-10-10 16:25 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Slava Dubrovskiy 2013-10-10 02:33:52 MSK
Собрал docker
Пытаюсь получить имидж и получю воттакую ошибку:
[root@alt-sisyphus-1 ~]# docker -D pull centos
Pulling repository centos
2013/10/10 02:21:00 Get https://index.docker.io/v1/images/centos/ancestry: x509: failed to load system roots and no roots provided

Эта ошибка описана в https://code.google.com/p/go/issues/detail?id=6391
в src/pkg/crypto/x509/root_unix.go
// Possible certificate files; stop after finding one.
var certFiles = []string{
        "/etc/ssl/certs/ca-certificates.crt",     // Linux etc
        "/etc/pki/tls/certs/ca-bundle.crt",       // Fedora/RHEL
        "/etc/ssl/ca-bundle.pem",                 // OpenSUSE
        "/etc/ssl/cert.pem",                      // OpenBSD
        "/usr/local/share/certs/ca-root-nss.crt", // FreeBSD
}

Нашего /usr/share/ca-certificates/ca-bundle.crt нет.
Копирование его в один из вышеперечисленных путей решает проблему. Думаю нужно добавить наш путь.
Comment 1 Repository Robot 2013-10-10 12:07:18 MSK
golang-1.1.2-alt1 -> sisyphus:

* Thu Oct 10 2013 Alexey Gladkov <legion@altlinux> 1.1.2-alt1
- New version (1.1.2).
- Fix ssl certs search path (ALT#29449).