Skip to content

cmd/pprof: add --insecure flag to fetch from https endpoints with self signed certificates #11468

Closed
@roberthbailey

Description

@roberthbailey

Right now the output looks like:

go tool pprof https://host:port/debug/pprof/profile
Fetching profile from https://host:port/debug/pprof/profile
Please wait... (30s)
http fetch https://host:port/debug/pprof/profile: Get https://host:port/debug/pprof/profile: x509: certificate signed by unknown authority

It would be awesome to be able to pass a --insecure option (like when using curl) so that you don't need to add the self signed certificate to the system's trusted root certificate store to collect profiles.

/cc @bradfitz

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions