Giter Club home page Giter Club logo

Comments (4)

jessepeterson avatar jessepeterson commented on September 28, 2024 1

Hmm, yeah. Try this:

cd ~/go
mkdir -p src/github.com/micromdm
cd src/github.com/micromdm
git clone [email protected]:micromdm/scep.git
cd scep
make

Maybe our docs need an adjustment..

from scep.

marcinjahn avatar marcinjahn commented on September 28, 2024 1

Ignore my last post, that was caused by my network setup. When I switched to a "normal" network without any proxies, it worked.

@jessepeterson Yes, I think it makes sense to update the README. People who use golang probably don't need it, but for all the rest, it will be really helpful.

from scep.

jessepeterson avatar jessepeterson commented on September 28, 2024 1

@Loreno10 feel free to submit a PR adding the linux ARM target to the Makefile, too :)

from scep.

marcinjahn avatar marcinjahn commented on September 28, 2024

Before running make, I modified Makefile as follows:

VERSION=$(shell git describe --tags --always --dirty)
LDFLAGS=-ldflags "-X main.version=$(VERSION)"
OSARCH=$(shell go env GOHOSTOS)-$(shell go env GOHOSTARCH)

SCEPCLIENT=\
        scepclient-linux-arm \
        scepclient-darwin-amd64 \
        scepclient-freebsd-amd64 \
        scepclient-windows-amd64.exe

SCEPSERVER=\
        scepserver-linux-arm \
        scepserver-darwin-amd64 \
        scepserver-freebsd-amd64 \
        scepserver-windows-amd64.exe

Basically, I changed scepclient-linux-amd64 to scepclient-linux-arm (and analogical change for the server, although in my case I need just client).
Here's what I see when I run make:

pi@rpi:~/go/src/github.com/micromdm/scep $ make
GOOS=linux GOARCH=arm go build -ldflags "-X main.version=v2.1.0-dirty" -o scepclient-linux-arm ./cmd/scepclient
go: github.com/boltdb/[email protected]: Get "https://proxy.golang.org/github.com/boltdb/bolt/@v/v1.3.1.mod": x509: certificate signed by unknown authority
go: downloading github.com/go-kit/kit v0.4.0
go: downloading github.com/pkg/errors v0.8.0
go: downloading go.mozilla.org/pkcs7 v0.0.0-20210730143726-725912489c62
go: downloading github.com/gorilla/mux v1.4.0
go: downloading github.com/groob/finalizer v0.0.0-20170707115354-4c2ed49aabda
go: github.com/boltdb/[email protected]: Get "https://proxy.golang.org/github.com/boltdb/bolt/@v/v1.3.1.mod": x509: certificate signed by unknown authority
make: *** [Makefile:22: scepclient-linux-arm] Error 1

How can I fix it?

from scep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.