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 Variables (total 2)
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.7.0-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |