You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am looking to retrieve SSL certificate expiry date information for a site. I see there is a INFO_CERTINFO argument to Easy GetInfo() method to obtain this information. The call is supposed to return a slist of certificates in the chain (I presume). However, the test code crashes when this parameter to used.
Is there a way around this or some example code to try out? Or, is there any other way to get the same information using a different API call? if err := easy.Perform(); err != nil { fmt.Printf("ERROR: %v\n", err) } else { x, err := easy.Getinfo(curl.INFO_CERTINFO) if err != nil { } fmt.Printf("certinfo:%f", x) }
Hi, I am looking to retrieve SSL certificate expiry date information for a site. I see there is a INFO_CERTINFO argument to Easy GetInfo() method to obtain this information. The call is supposed to return a slist of certificates in the chain (I presume). However, the test code crashes when this parameter to used.
Is there a way around this or some example code to try out? Or, is there any other way to get the same information using a different API call?
if err := easy.Perform(); err != nil { fmt.Printf("ERROR: %v\n", err) } else { x, err := easy.Getinfo(curl.INFO_CERTINFO) if err != nil { } fmt.Printf("certinfo:%f", x) }
goroutine 1 [running]: github.com/andelf/go-curl.(*CURL).Getinfo.func5(0x40743c, 0x0, 0x0) /DIR/pkg/mod/github.com/andelf/[email protected]/easy.go:409 +0x5b github.com/andelf/go-curl.(*CURL).Getinfo(0xc00010a000, 0x400022) /DIR/pkg/mod/github.com/andelf/[email protected]/easy.go:409 +0xe6 main.main() /DIR/gotest/hello/main.go:27 +0xff exit status 2
Thanks and appreciate all the hard work that went into this work!
The text was updated successfully, but these errors were encountered: