package testcert
Import Path
net/http/internal/testcert (on go.dev)
Dependency Relation
imports one package, and imported by one package
Involved Source Files
Package testcert contains a test-only localhost certificate.
Package-Level Functions (only one, which is unexported)
Package-Level Variables (total 2, both are exported)
LocalhostCert is a PEM-encoded TLS cert with SAN IPs
"127.0.0.1" and "[::1]", expiring at Jan 29 16:00:00 2084 GMT.
generated from src/crypto/tls:
go run generate_cert.go --rsa-bits 2048 --host 127.0.0.1,::1,example.com --ca --start-date "Jan 1 00:00:00 1970" --duration=1000000h
LocalhostKey is the private key for LocalhostCert.
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)