package testcert

import "net/http/internal/testcert"

Package testcert contains a test-only localhost certificate.

Index

Variables

var LocalhostCert = []byte("" /* 1201 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 --rsa-bits 2048 --host 127.0.0.1,::1,example.com,*.example.com --ca --start-date "Jan 1 00:00:00 1970" --duration=1000000h

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

LocalhostKey is the private key for LocalhostCert.

Source Files

testcert.go

Version
v1.24.0 (latest)
Published
Feb 10, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
6 minutes ago

Tools for package owners.