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.
Click to show internal directories.
Click to hide internal directories.