mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
17 lines
478 B
Go
17 lines
478 B
Go
package cert
|
|
|
|
import (
|
|
"github.com/0xJacky/Nginx-UI/internal/helper"
|
|
"github.com/go-acme/lego/v4/certcrypto"
|
|
)
|
|
|
|
type ConfigPayload struct {
|
|
ServerName []string `json:"server_name"`
|
|
ChallengeMethod string `json:"challenge_method"`
|
|
DNSCredentialID int `json:"dns_credential_id"`
|
|
KeyType certcrypto.KeyType `json:"key_type"`
|
|
}
|
|
|
|
func (c *ConfigPayload) GetKeyType() certcrypto.KeyType {
|
|
return helper.GetKeyType(c.KeyType)
|
|
}
|