Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions gencerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ package testcerts
// GenerateCerts generates a x509 certificate and key.
// It returns the certificate and key as byte slices, and any error that occurred.
//
// If no domains are provided, the returned certificate is a self-signed Certificate Authority
// certificate that contains no Subject Alternative Names. If domains are provided, the certificate
// is a leaf certificate for those domains signed by a newly generated Certificate Authority, and
// that Certificate Authority is not returned.
//
// cert, key, err := GenerateCerts()
// if err != nil {
// // handle error
Expand Down
Loading