8000 Getting SSL certificate expiry date · Issue #80 · andelf/go-curl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Getting SSL certificate expiry date #80
Open
@skogs

Description

@skogs

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/go-curl@v0.0.0-20200630032108-fd49ff24ed97/easy.go:409 +0x5b github.com/andelf/go-curl.(*CURL).Getinfo(0xc00010a000, 0x400022) /DIR/pkg/mod/github.com/andelf/go-curl@v0.0.0-20200630032108-fd49ff24ed97/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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0