mozilla / tls-observatory

An observatory for TLS configurations, X509 certificates, and more.
Mozilla Public License 2.0
534 stars 88 forks source link

panic: runtime error: index out of range [0] with length 0 #407

Open gvijayakumar-16 opened 4 years ago

gvijayakumar-16 commented 4 years ago

I am getting the below error when I am trying to scan an internally hosted site. This site has a self signed certificate.

2020/04/15 14:40:58 /opt/cipherscan/cipherscan --no-tolerance -j --curves -servername app.mysite.com 101.16.11.243:443
time="2020-04-15T14:41:03Z" level=info msg="Running workers" count=10 scan_id=19
panic: runtime error: index out of range [0] with length 0

goroutine 56 [running]:
github.com/ /tls-observatory/worker/ocspStatus.ocspStatus.Run(0xc00425bb60, 0x18, 0x1d8, 0xc0042ba060, 0x26, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /go/src/github.com/mozilla/tls-observatory/worker/ocspStatus/ocspStatus.go:100 +0x126a
created by main.scanner.scan
    /go/src/github.com/mozilla/tls-observatory/tlsobs-scanner/main.go:263 +0x17a1

When I built a local version of tlsobs after removing the above lines of code, it did print out a proper output.

Any suggestions as to why this error? Am I missing some configurations?

PS: I am running a local api and scanner and scanning using the command tlsobs -r -observatory http://localhost:8083 app.mysite.com