We presume you are compiling for an AMD64 architecture
env GOOS=linux GOARCH=amd64 go build -o entcsr-lnx -tags osusergo,netgo entcsr.go
env GOOS=darwin GOARCH=amd64 go build -o entcsr-osx -tags osusergo,netgo entcsr.go
env GOOS=windows GOARCH=amd64 go build -o entcsr-win.exe -tags osusergo,netgo entcsr.go
./entcsr cert-name
This will produce two files:
- cert-name-key.key -> the private key
- cert-name-cert-sign-request.csr -> the certificate signing request
- cert-name-cert.crt -> the certificate