Issues with generating certificates


#1

Hi Guys,
I don’t know if I’m asking wrong questions or it just this group is not what it was used to be any more? What I liked about this group is the quick and accurate answers.
It is because I am know to Linux system but I’m learning and I think this is what its about, right?

I have some issues generating the certificates and I’m not sure why or where is the problem?

I started by installing CFSSL, however when I execute

go get -u github.com/cloudflare/cfssl/cmd/cfssl

I got:

root@debian:~# go get -u github.com/cloudflare/cfssl/cmd/cfssl

runtime

/usr/local/go/src/runtime/map.go:64:2: bucketCntBits redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:64:18
/usr/local/go/src/runtime/map.go:65:2: bucketCnt redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:65:23
/usr/local/go/src/runtime/map.go:69:2: loadFactorNum redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:69:18
/usr/local/go/src/runtime/map.go:70:2: loadFactorDen redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:70:18
/usr/local/go/src/runtime/map.go:76:2: maxKeySize redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:76:17
/usr/local/go/src/runtime/map.go:77:2: maxValueSize redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:77:17
/usr/local/go/src/runtime/map.go:82:2: dataOffset redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:85:4
/usr/local/go/src/runtime/map.go:91:2: empty redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:91:19
/usr/local/go/src/runtime/map.go:92:2: evacuatedEmpty redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:92:19
/usr/local/go/src/runtime/map.go:93:2: evacuatedX redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:93:19
/usr/local/go/src/runtime/map.go:93:2: too many errors

and the same thing for ( go get -u github.com/cloudflare/cfssl/cmd/cfssljson)

Then, I cloned (https://github.com/brocaar/loraserver-certificates)
and when I execute (make) I got:

root@debian:~/go/src/github.com/brocaar/loraserver-certificates# make
mkdir -p certs/ca
cfssl gencert -initca config/ca-csr.json | cfssljson -bare certs/ca/ca
/bin/sh: 1: cfssl: not found
/bin/sh: 1: cfssljson: not found
Makefile:10: recipe for target ‘certs/ca’ failed
make: *** [certs/ca] Error 127

Then when I go to (/root/go/src/github.com/brocaar/loraserver-certificates/certs) there is only one empty folder (ca).

Could anyone please let me know what the problem is?

Thanks


#2

An ideas please?

Thanks