CLI doesn't work when remote specified with a port
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
golang-github-cloudflare-cfssl (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi folks,
OS: Ubuntu 20.04 LTS
Apt info:
Package: golang-cfssl
Version: 1.2.0+git201608
Built-Using: golang-1.8 (= 1.8.1-1ubuntu3), golang-
Priority: extra
Section: universe/devel
Source: golang-
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-
Bugs: https:/
Installed-Size: 37.0 MB
Depends: libc6 (>= 2.4), libsqlite3-0 (>= 3.7.15)
Homepage: https:/
Download-Size: 5856 kB
APT-Manual-
APT-Sources: http://
Description: CloudFlare's PKI and TLS toolkit
Info Command:
Expected behaviour: the command "$ cfssl info -remote ipaddress:port" to return info on remote
Actual behaviour:
$ cfssl info -remote 172.17.0.2:8888
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x702a2e]
goroutine 1 [running]:
github.
/build/
github.
/build/
github.
/build/
main.main()
/build/
Actual behaviour without port ($ cfssl info -remote 172.17.0.2) works fine.
Gencert Command (with port):
$ cfssl gencert -remote 172.17.0.2:8888 csr.json
2020/08/12 01:25:02 [INFO] generate received request
2020/08/12 01:25:02 [INFO] received CSR
2020/08/12 01:25:02 [INFO] generating key: rsa-4096
2020/08/12 01:25:06 [INFO] encoded CSR
{"code"
Gencert Command (without):
$ cfssl gencert -remote 172.17.0.2 csr.json
2020/08/12 01:26:12 [INFO] generate received request
2020/08/12 01:26:12 [INFO] received CSR
2020/08/12 01:26:12 [INFO] generating key: rsa-4096
...
(... works as expected...)
I'm not having this issue locally when I've built the tool with versions of Go > 1.12+.