cert

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOrCreateCertForVirtualServer

func GetOrCreateCertForVirtualServer(db *gorm.DB, vserverID uint) (certPEM, keyPEM []byte, err error)

GetOrCreateCertForVirtualServer returns the TLS certificate and key for the given virtual server. If the server has no persisted cert, a new self-signed certificate is generated, saved to the database, and returned. The virtual server must exist; the caller must ensure it before calling.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL