netgolang.org/x/net/internal/testcert Index | Files

package testcert

import "golang.org/x/net/internal/testcert"

Package testcert contains a test-only localhost certificate.

Index

Variables

var LocalhostCert = []byte("" /* 640 byte string literal not displayed */)

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 --ecdsa-curve P256 --host 127.0.0.1,::1,example.com --ca --start-date "Jan 1 00:00:00 1970" --duration=1000000h

var LocalhostKey = []byte(testingKey("" /* 242 byte string literal not displayed */))

LocalhostKey is the private key for localhostCert.

Source Files

testcert.go

Version
v0.35.0 (latest)
Published
Feb 10, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
5 hours ago

Tools for package owners.