Imports github.com/stretchr/testify/require github.com/elastic/beats/libbeat/common/x509util github.com/elastic/beats/libbeat/common/mapval Standard library imports crypto/x509 io io/ioutil net/http net/url os strconv strings testing net/http/httptest