ncgencert generates TLS server certificates of the form expected by Namecoin.
Prerequisites:
- Ensure you have the Go tools installed.
Option A: Using Go build commands without Go modules (works on any platform with Bash; only Go 1.15-1.16.x; will not work on Go 1.17+):
-
Ensure you have the
GOPATH
environment variable set. (For those not familar with Go, setting it to the path to an empty directory will suffice. The directory will be filled with build files.) -
Run
export GO111MODULE=off
to disable Go modules. -
Run
go get -d -t -u github.com/namecoin/ncgencert/...
. The ncgencert source code will be retrieved automatically. -
If running an old Go version, you may need to enter the
ncgencert
directory andgit checkout
an older tag, e.g. for Go 1.15.x you should checkout thev1.14
tag. -
Run
go get -t -u github.com/namecoin/ncgencert/...
. ncgencert will be built. The binaries will be at$GOPATH/bin/ncgencert
.
Option B: Using Go build commands with Go modules (works on any platform with Bash; Go 1.15+:
-
git clone https://github.com/namecoin/ncgencert
. -
If running an old Go version, you may need to enter the
ncgencert
directory andgit checkout
an older tag, e.g. for Go 1.15.x you should checkout thev1.14
tag. -
Run the following in the ncgencert directory to set up Go modules:
go mod init go mod tidy
-
Run
go install ./...
. ncgencert will be built. The binaries will be at$GOPATH/bin/ncgencert
.
Option C: Using Makefile (non-Windows platforms):
- Run
make
. The source repository will be retrieved viago get
automatically.
License matches the upstream Go standard library's BSD-style license; see LICENSE
for details.