Skip to content

ucrt64 golang doesn't find certificates #20

@konscl

Description

@konscl

When I try to use go in the container, I get the following errors:

# get https://proxy.golang.org/github.com/%21thales%21group/crypto11/@v/v1.4.1.mod: Get "https://proxy.golang.org/github.com/%21thale
s%21group/crypto11/@v/v1.4.1.mod": tls: failed to verify certificate: x509: certificate signed by unknown authority

My Dockerfile

FROM ghcr.io/msys2/msys2-docker-experimental:latest
ENV TZ=Europe/Berlin
RUN msys2 -c "pacman -Syu --noconfirm" && \
    msys2 -c "pacman -S mingw-w64-ucrt-x86_64-go git --noconfirm"
RUN msys2 -c "git config --global --add safe.directory /"

To reproduce run
docker build . -t myimage
docker run -v.:/root/.wine/drive_c/msys64/workdir -it myimage msys2
And then run in the terminal

mkdir 1
cd 1
go mod init test
go get github.com/mattn/go-sqlite3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions